exity Posted April 22, 2012 Posted April 22, 2012 How do i can make a zone only for a certain grade of weapons armors? ty in advance
0 Fanky Posted April 22, 2012 Posted April 22, 2012 You need a java code to do this . yeh..how else? anyway,check this.Search in your source which is the method for checking grade of weapon and then make your code.
0 Zaldron Posted April 22, 2012 Posted April 22, 2012 yeh..how else? anyway,check this.Search in your source which is the method for checking grade of weapon and then make your code. He did ask how he can do it and i did simply answer . I am not going to tell him how to ..
0 Zaldron Posted April 22, 2012 Posted April 22, 2012 --- trunk/L2KS_GameServer/java/net/sf/l2j/gameserver/skills/funcs/FuncEnchant.java (revision 4) +++ trunk/L2KS_GameServer/java/net/sf/l2j/gameserver/skills/funcs/FuncEnchant.java (revision 145) @@ -18,7 +18,9 @@ */ package net.sf.l2j.gameserver.skills.funcs; +import net.sf.l2j.Config; import net.sf.l2j.gameserver.model.L2ItemInstance; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.skills.Env; import net.sf.l2j.gameserver.skills.Stats; import net.sf.l2j.gameserver.templates.L2Item; @@ -50,6 +52,21 @@ overenchant = enchant - 3; enchant = 3; } + + if (env.player != null && env.player instanceof L2PcInstance) + { + L2PcInstance player = (L2PcInstance)env.player; + if (player.isInOlympiadMode() && Config.ALT_OLY_ENCHANT_LIMIT >= 0 && (enchant + overenchant) > Config.ALT_OLY_ENCHANT_LIMIT) + { + if (Config.ALT_OLY_ENCHANT_LIMIT > 3) + overenchant = Config.ALT_OLY_ENCHANT_LIMIT - 3; + else + { + overenchant = 0; + enchant = Config.ALT_OLY_ENCHANT_LIMIT; + } + } + } if (stat == Stats.MAGIC_DEFENCE || stat == Stats.POWER_DEFENCE) { This may help u it's for oly limit enchant
0 Justice Posted April 22, 2012 Posted April 22, 2012 Thx ppl ill fallow that code.. ty Locked(If you still have this problem pm me to unlock it)
Question
exity
How do i can make a zone only for a certain grade of weapons armors?
ty in advance
6 answers to this question
Recommended Posts