Jump to content
  • 0

Addapt Customcanceltask


sammysam

Question

Hi guys,  I have this code for cancel but its made for acis, is there anyone who could help me addapt to frozen?

 

 

              

this is the code for acis.

 // Calculate the success chance following previous variables.
                 if (calcCancelSuccess(effect.getPeriod(), diffLevel, skillPower, skillVuln, minRate, maxRate))
                 {
+                    if (!cancelledBuffs.contains(effect.getSkill()) && !((L2PcInstance)activeChar).isInOlympiadMode())                        
+                        cancelledBuffs.add(effect.getSkill());
+                    
                     // Stores the last canceled skill for further use.
                     lastCanceledSkillId = effect.getSkill().getId();
                  
@@ -105,6 +115,9 @@

                     effect.exit();
                 }
                
+                if (cancelledBuffs.size() > 0)                    
+                    ThreadPoolManager.getInstance().scheduleGeneral(new CustomCancelTaskManager((L2PcInstance)target, cancelledBuffs), 10*1000);
+
                 // Remove 1 to the stack of buffs to remove.
                 count--;

this is l2jfrozen Cancel handler:

http://pastebin.com/NsrYx7Nj

 

-Where should I put that code for l2jfrozen?

Edited by sammysam
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...