Jump to content

`Sapphire

VIP Member
  • Posts

    12
  • Credits

  • Joined

  • Last visited

  • Feedback

    100%

About `Sapphire

Profile Information

  • Current Mood
    Bored
  • Gender
    Not Telling
  • Country
    United States

Recent Profile Visitors

459 profile views

`Sapphire's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. Is there Winter/Christmas discount for compile users? if is there please PM me here, there is problem with my Skype i can't log in. Thanks.
  2. He did post it but i don't think it's online you should contact him first to make it online if want test server.
  3. Trusted seller perfect pack amazing features! ^_^
  4. there's 4 files i didn't find them EffectCancel.java EffectDeflectBuff.java EffectCancelDebuff.java StealBuffs.java i think they renamed could tell me what is their new name? thanks
  5. Hi I need Cancellation System for High Five Buffer return in x time after cancel Thanks.
  6. Can someone adapt it or give me tutorials how to adapt i searched everywhere and i didn't find any thing! my request is it hard or what? just give the tutorial how to adapt or the easy way: adapt it for me xD please :((
  7. what do you mean? i have the "L2jReunion Free Version"
  8. Will i tried to adapt the imports and i failed, i told you i don't know how to adapt
  9. i don't know how to change the imports and adapt :( i'm so new and n00b if you want to download the l2r pack you can download it here or go there and download it IF YOU WANT :( and thank you for your reply
  10. Can someone adapt this code for l2reunion? And where to put it because i am new and i don't know how to put it so please can someone help me and adapt? -import java.util.Vector; +import javolution.util.FastMap; import net.sf.l2j.Config; import net.sf.l2j.gameserver.ThreadPoolManager; @@ -52,7 +52,7 @@ // Get skill power (which is used as baseRate). final double skillPower = skill.getPower(); - Vector<L2Skill> cancelledBuffs = new Vector<>(); + FastMap<L2Skill, int[]> cancelledBuffs = new FastMap<>(); for (L2Object obj : targets) { @@ -108,9 +108,9 @@ // Stores the last canceled skill for further use. lastCanceledSkillId = effect.getSkill().getId(); - if (!cancelledBuffs.contains(effect.getSkill())) + if (!cancelledBuffs.containsKey(effect.getSkill())) { - cancelledBuffs.add(effect.getSkill()); + cancelledBuffs.put(effect.getSkill(), new int[] { effect.getCount(), effect.getTime() }); } // Exit the effect. and package net.sf.l2j.gameserver.model.entity.custom; -import java.util.Vector; +import javolution.util.FastMap; +import net.sf.l2j.gameserver.model.L2Effect; import net.sf.l2j.gameserver.model.L2Skill; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +import net.sf.l2j.gameserver.skills.Env; +import net.sf.l2j.gameserver.skills.effects.EffectTemplate; /** * @author Anarchy @@ -26,9 +29,9 @@ public class CustomCancelTask implements Runnable { private L2PcInstance _player = null; - private Vector<L2Skill> _buffs = null; + private FastMap<L2Skill, int[]> _buffs = null; - public CustomCancelTask(L2PcInstance _player, Vector<L2Skill> _buffs) + public CustomCancelTask(L2PcInstance _player, FastMap<L2Skill, int[]> _buffs) { this._player = _player; this._buffs = _buffs; @@ -42,7 +45,7 @@ return; } - for (L2Skill s : _buffs) + for (L2Skill s : _buffs.keySet()) { if (s == null) { @@ -49,7 +52,21 @@ continue; } - s.getEffects(_player, _player); + Env env = new Env(); + env.player = _player; + env.target = _player; + env.skill = s; + L2Effect ef; + for (EffectTemplate et : s.getEffectTemplates()) + { + ef = et.getEffect(env); + if (ef != null) + { + ef.setCount(_buffs.get(s)[0]); + ef.setFirstTime(_buffs.get(s)[1]); + ef.scheduleEffect(); + } + } } } } \ No newline at end of file or check the topic here the link http://www.maxcheate...r-cancellation/ and i am sorry for my bad english and i can't speak english im using google translate please help thanks.
×
×
  • Create New...