Skip to content

[HELP] Command

Featured Replies

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

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.

  • Author

this is not what i was searching for. but it helped me a lot thanks. and yes i know how to compile;)

 

Somebody please close the threat

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.