Jump to content

Question

Posted

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.

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • 0
Posted

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.


×
×
  • Create New...