Jump to content

CLCronoz

Members
  • Posts

    7
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About CLCronoz

Profile Information

  • Gender
    Male
  • Country
    Chile

CLCronoz's Achievements

Newbie

Newbie (1/16)

  • Dedicated Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  1. same issue, if u are using adrenaline 1.6x / 1.7x and l2 h5 in windows 10, doesn't work if u open h5 without adrenaline works properly, but with adrenaline l2.exe stopped working so GG
  2. oh, thx for the answer but i still can't understand , i'm too noob in java , like lvl 2 xD
  3. mmm http://trac.l2jfree.com/l2jserver/changeset/6249 effectCanBeStolen() doesn't exist anyome :/
  4. Hi! maxcheaters. Anyone can help me to addapt this mod please? i use L2jServer (Master) - High Five version Index: scripts/handlers/effecthandlers/EffectRecoBonus.java =================================================================== --- scripts/handlers/effecthandlers/EffectRecoBonus.java (revision 0) +++ scripts/handlers/effecthandlers/EffectRecoBonus.java (revision 0) @@ -0,0 +1,73 @@ +package handlers.effecthandlers; + +import com.l2jserver.gameserver.model.L2Effect; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.skills.Env; +import com.l2jserver.gameserver.templates.effects.EffectTemplate; +import com.l2jserver.gameserver.templates.skills.L2EffectType; + + +/** + * + * @author JaJa + * + */ + +public class EffectRecoBonus extends L2Effect { + + public EffectRecoBonus(Env env, EffectTemplate template) + { + super(env, template); + } + + /** + * + * @see com.l2jserver.gameserver.model.L2Effect#getEffectType() + */ + @Override + public L2EffectType getEffectType() + { + return L2EffectType.BUFF; + } + + /** + * + * @see com.l2jserver.gameserver.model.L2Effect#onStart() + */ + @Override + public boolean onStart() + { + if (!(getEffected() instanceof L2PcInstance)) + return false; + + ((L2PcInstance) getEffected()).setRecomBonusType(1).setRecoBonusActive(true); + return true; + } + + /** + * + * @see com.l2jserver.gameserver.model.L2Effect#onExit() + */ + @Override + public void onExit() + { + ((L2PcInstance) getEffected()).setRecomBonusType(0).setRecoBonusActive(false); + } + + @Override + protected boolean effectCanBeStolen() + { + return false; + } + + /** + * + * @see com.l2jserver.gameserver.model.L2Effect#onActionTime() + */ + @Override + public boolean onActionTime() + { + return false; + } + +} \ No newline at end of file all formulas has changed and i can't addapt this :L Credits: JaJa
  5. High Five - Master: Last Rev Hello i have a big problem adding this mod https://gist.github.com/VlLight/7777405 , i can't add drop/spoil for premiums because L2Attackable.java doesn't have anymore drop/spoil configs :( if anyone can help me please Index: java/com/l2jserver/gameserver/model/actor/L2Attackable.java =================================================================== --- java/com/l2jserver/gameserver/model/actor/L2Attackable.java (revision 6303) +++ java/com/l2jserver/gameserver/model/actor/L2Attackable.java (working copy) @@ -41,6 +41,7 @@ import com.l2jserver.gameserver.datatables.ManorData; import com.l2jserver.gameserver.enums.InstanceType; import com.l2jserver.gameserver.enums.QuestEventType; +import com.l2jserver.gameserver.enums.Rates; import com.l2jserver.gameserver.instancemanager.CursedWeaponsManager; import com.l2jserver.gameserver.instancemanager.WalkingManager; import com.l2jserver.gameserver.model.AbsorberInfo; @@ -1014,7 +1015,7 @@ deepBlueDrop = 3; if (drop.getItemId() == PcInventory.ADENA_ID) { - deepBlueDrop *= isRaid() && !isRaidMinion() ? (int) Config.RATE_DROP_ITEMS_BY_RAID : (int) Config.RATE_DROP_ITEMS; + deepBlueDrop *= (int) lastAttacker.getRate(Rates.DROP_ITEM, PcInventory.ADENA_ID, (isRaid() && !isRaidMinion())); } } } @@ -1032,18 +1033,7 @@ } // Applies Drop rates - if (Config.RATE_DROP_ITEMS_ID.containsKey(drop.getItemId())) - { - dropChance *= Config.RATE_DROP_ITEMS_ID.get(drop.getItemId()); - } - else if (isSweep) - { - dropChance *= Config.RATE_DROP_SPOIL; - } - else - { - dropChance *= isRaid() && !isRaidMinion() ? Config.RATE_DROP_ITEMS_BY_RAID : Config.RATE_DROP_ITEMS; - } + dropChance *= lastAttacker.getRate(isSweep ? Rates.SPOIL : Rates.DROP_ITEM, drop.getItemId(), (isRaid() && !isRaidMinion())); if (Config.L2JMOD_CHAMPION_ENABLE && isChampion()) { @@ -1161,7 +1151,7 @@ } // Applies Drop rates - categoryDropChance *= isRaid() && !isRaidMinion() ? Config.RATE_DROP_ITEMS_BY_RAID : Config.RATE_DROP_ITEMS; + categoryDropChance *= lastAttacker.getRate(Rates.DROP_ITEM, -1, (isRaid() && !isRaidMinion())); if (Config.L2JMOD_CHAMPION_ENABLE && isChampion()) { @@ -1195,18 +1185,8 @@ // chance to give a 4th time. // At least 1 item will be dropped for sure. So the chance will be adjusted to 100% // if smaller. + double dropChance = drop.getChance() * lastAttacker.getRate(Rates.DROP_ITEM, drop.getItemId(), (isRaid() && !isRaidMinion())); - double dropChance = drop.getChance(); - - if (Config.RATE_DROP_ITEMS_ID.containsKey(drop.getItemId())) - { - dropChance *= Config.RATE_DROP_ITEMS_ID.get(drop.getItemId()); - } - else - { - dropChance *= isRaid() && !isRaidMinion() ? Config.RATE_DROP_ITEMS_BY_RAID : Config.RATE_DROP_ITEMS; - } - if (Config.L2JMOD_CHAMPION_ENABLE && isChampion()) { dropChance *= Config.L2JMOD_CHAMPION_REWARDS; Credits: VlLight
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock