Skip to content

Custom Cancel Task (Show Debuff)

Featured Replies

Hello everybody,

 

I have managed to implement Custom Cancel Task from here : http://www.maxcheaters.com/topic/215811-custom-cancel-task-l2jfrozen/?do=findComment&comment=2647837

Everything is working fine, but I want to add this : http://imgur.com/a/12gtv (Maximize the photo)

 

Okay , so as you can see when a player gets debuffed using "Cancellation" from mystic muse or archmage a debuff Icon appears with a countdown, that means the Time for buffs to return in seconds.

For example if I add from config 6 seconds and a players gets debuffed using cancel the countdown starts and ends when the player got the buffs back.

 

If anybody knows how can I add that I will appreciate it very much,

I hope that I gave enough details

 

 

Thank you, have a good day.

yes, easy for frozen example:

((L2PcInstance)target).shortBuffStatusUpdate(1056, 1, 15);
put it after

ThreadPoolManager.getInstance().scheduleGeneral(new CustomCancelTaskManager((L2.............
example:

 

if (cancelledBuffs.size() > 0) {  
((L2PcInstance)target).shortBuffStatusUpdate(1056,1,10);
ThreadPoolManager.getInstance().scheduleGeneral(new CustomCancelTaskManager((L2PcInstance)target, cancelledBuffs), 10 *1000);
}

Edited by wongerlt

  • Author

yes, easy for frozen example:

((L2PcInstance)target).shortBuffStatusUpdate(1056, 1, 15);
put it after

ThreadPoolManager.getInstance().scheduleGeneral(new CustomCancelTaskManager((L2.............
example:

 

if (cancelledBuffs.size() > 0) {  
((L2PcInstance)target).shortBuffStatusUpdate(1056,1,10);
ThreadPoolManager.getInstance().scheduleGeneral(new CustomCancelTaskManager((L2PcInstance)target, cancelledBuffs), 10 *1000);
}

Thank you very much, It's working.

Have a nice day !

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.