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.


  • Posts

    • MoMoProxy Offers $850 for 1TB Plan. anyone interested in can view details as follow: https://momoproxy.com/residential-proxies
    • Yes there are many problems. Im trying to fix there slowly, cause i i put already a lot of work in this files. I think it will not be easy to move the project to other builds
    • You probably wanted to write l2jmobius. I would recommend that you change the build because it has a lot of problems with the movement of npcs and players. Even if you find bots you will have to correct the movement or the bots will get stuck, fly, teleport
    • Complete Server Pack + Source Files: C4 Scions Of Destiny: P656 Retail X1 L2OFF Server Pack + Source: Price: 100EUR --------------------------------------------------------------------------------------------------------------------------------------------- C4 Scions Of Destiny: P656 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 150EUR -------------------------------------------------------------------------------------------------------------------------------------------- C6 Interlude: P756 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 150EUR The same as C4 but in C6 Client  ----------------------------------------------------------------------------------------------------------------------------------------------   C6 Interlude: P746 L2Gold L2OFF Server Pack + Source: Price: 150EUR   https://imgur.com/a/pts-l2gold-interlude-p746-9kB3oA9#MbP2aJh -------------------------------------------------------------------------------------------------------------------------------------------------   C6 - Classic Interlude: P110 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 350EUR   https://imgur.com/a/pts-l2off-p110-classic-interlude-athena-x45-Z2kZxuv#YlZU9hF -------------------------------------------------------------------------------------------------------------------------------------------------   DISCORD - MMOPROMOOO TELEGRAM - MMOPROMO 
    • Wts adena scryde x50 Baium 12 Valakas 12 good price Top weapons +16
  • Topics

×
×
  • Create New...