i've tried to make a code for L2GuardInstance. I wanted add some checks to guard's target list and make them give more hate (focus) on targets that have the proper checks.
Example if a player hit a guard the guard will attack him and by that time a Karma player can move in tower without guard change target and him him.
So basically what i did.
In L2GuardInstance.java i added some small code:
public ScheduledFuture<?> getScheduler()
{
return _schedule;
}
public void setScheduledTask(ScheduledFuture<?> task)
{
_schedule = task;
}
and then i made a ThreadPoolManager (check every 1250 ms)
for (PcInstance player : guard.getKnownList().getKnownPlayers().values)
{
if (player.getKarma > 0)
{
guard.setTarget(player);
guard.dotAttack(player);
}
{
The threadpool is activated upon @Override addKnonwObject and stop at @Override removeKnownObject. (Like bellow)
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
well,thx for your reply...i had solved my problem.its source data errors...the old Armorgrp.dat and Armorgrp-classic.dat exist errors...rly swired.
about skillgrp-classic.dat,i decrypt and encrypt it,it works...but in Grand Crusade i didnot know if it exist Auto-cast.
sell adena
l2rebon signature x1 - 1kk = 1 dollars
l2reborn x10 - 500kk = 4 dollars
E-Global x Lu4 - 1kk = 2 dollars
BOHPTS - x20-x500 TOP PRICE
LINEAGE2DEX - TOP PRICE !!!!!
DISCORD - GODDARDSHOP
TELEGRAM - MMOPROMO
Also on sale are Epic jewelry, Clothes at a very good price
🔴The Power of Long Distance
The best results are achieved over the long run.
In a marathon, the winner is not the one who starts fast, but the one who can keep the pace.
With Vibe SMS, you get a service that works reliably and predictably.
We make sure it’s convenient for you today, tomorrow, and a year from now.
And together with you, we go the distance- step by step, building a strong partnership.
Website link — https://vibe-sms.net/
Our Telegram channel — https://t.me/vibe_sms
Question
Ο Χάρος
Hello people,
i've tried to make a code for L2GuardInstance. I wanted add some checks to guard's target list and make them give more hate (focus) on targets that have the proper checks.
Example if a player hit a guard the guard will attack him and by that time a Karma player can move in tower without guard change target and him him.
So basically what i did.
In L2GuardInstance.java i added some small code:
and then i made a ThreadPoolManager (check every 1250 ms)
The threadpool is activated upon @Override addKnonwObject and stop at @Override removeKnownObject. (Like bellow)
So basically whenever a object enter in knownList, if task == null it will start scheduler.
It didn't work at all.. Any advice or how i should do this?
Edited by Ο Χάρος4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.