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--;
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.
Good luck with your project - from the moment you take pleasure, it's the essential.
If you manage to improve performance over specific points compared to L2J (knownlist, geoengine, movement,...), don't hesitate to share back on your topic what/why you did it and the actual performance gain, if measured.
Question
sammysam
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.
this is l2jfrozen Cancel handler:
http://pastebin.com/NsrYx7Nj
-Where should I put that code for l2jfrozen?
Edited by sammysamLink to comment
Share on other sites
0 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.