Jump to content
  • 0

[HELP] Command


Question

Posted

Hey guys. do anyone know how to get the RateDropAdena variable from a JScript? like st.getPlayer().getLevel() (for player lvl) now i need the server adenadroprate

 

thanks

3 answers to this question

Recommended Posts

  • 0
Posted

do it form core...

Index: C:/Documents and Settings/VaGo/workspace/L2Archid_GameServer/java/com/l2jarchid/gameserver/model/L2Attackable.java

===================================================================

--- C:/Documents and Settings/VaGo/workspace/L2Archid_GameServer/java/com/l2jarchid/gameserver/model/L2Attackable.java (revision 239)

+++ C:/Documents and Settings/VaGo/workspace/L2Archid_GameServer/java/com/l2jarchid/gameserver/model/L2Attackable.java (working copy)

@@ -990,7 +990,25 @@

          if (Config.DEEPBLUE_DROP_RULES) dropChance = ((drop.getChance() - ((drop.getChance() * levelModifier)/100)) / deepBlueDrop);

 

          // Applies Drop rates

-        if (drop.getItemId() == 57) dropChance *= Config.RATE_DROP_ADENA;

+       

+        int adenadrop = 0;

+        if (lastAttacker.getLevel() > 20)

+        {

+        adenadrop = 10;

+        }

+        if (lastAttacker.getLevel() > 40)

+        {

+        adenadrop = 15;

+        }

+        if (lastAttacker.getLevel() > 60)

+        {

+        adenadrop = 20;

+        }

+        if (lastAttacker.getLevel() > 80)

+        {

+        adenadrop = 25;

+        }

+        if (drop.getItemId() == 57) dropChance *= adenadrop;

          else if (isSweep) dropChance *= Config.RATE_DROP_SPOIL;

          else dropChance *= Config.RATE_DROP_ITEMS;

 

 

Replace the values with whatever you want.

 

If you dont know how to add this patch dont ask me. Go learn how to complie from http://www.l2jserver.com/trac/wiki/ServerInfo_and_Setup .

 

This code is not tested. It should work but I cannot asure you about anything until I test it my own. Try and let me know.

  • 0
Posted

This is probablly the only way to do it.

I really doubt you could do it as a quest + quests bug very easy xD...so this bug free and for me alot easier than a quest :)

 

Youre welcome :)

Guest
This topic is now closed to further replies.
×
×
  • Create New...