Jump to content
  • 0

[HELP]Zone Related


Question

6 answers to this question

Recommended Posts

  • 0
Posted

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
Posted

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
Posted

--- 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
Posted

Thx ppl ill fallow that code.. ty

 

Locked(If you still have this problem pm me to unlock it)

Guest
This topic is now closed to further replies.


×
×
  • Create New...