Jump to content
  • 0

How to fix this trade bug ?


Question

10 answers to this question

Recommended Posts

  • 0
Posted

http://www.maxcheaters.com/forum/index.php?topic=49180.0

 

 

 

 

PS: If u got problems with enchant trade bug then use this too:

 

go to java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java

 

then add this line to your imports:

 

import net.sf.l2j.gameserver.serverpackets.ActionFailed;

 

after find:  if (item == null || scroll == null) return;  and make a new line.

 

then paste this:

        if (activeChar.getActiveTradeList() != null) 
        {
                activeChar.sendMessage("You Cannot Enchant While Trading"); 
                activeChar.sendPacket(new ActionFailed()); 
                return; 
        } 

 

and u will be fine.

  • 0
Posted

java/net/sf/l2j/gameserver/clientpackets/SendWareHouseDepositList.java

 

add these lines on imports:

 

import net.sf.l2j.gameserver.util.IllegalPlayerAction; 
import net.sf.l2j.gameserver.util.Util; 

 

then find: // Alt game - Karma punishment , and ABOVE this add a line and paste this:



        if (player.getActiveEnchantItem() != null) 
        { 
                player.setAccessLevel(-100); 
                Util.handleIllegalPlayerAction(player,"Player "+player.getName()+" Tried To Use Enchant Exploit , And Got Banned!", IllegalPlayerAction.PUNISH_KICKBAN); 
                return; 
        }  
         

  • 0
Posted

java/net/sf/l2j/gameserver/clientpackets/SendWareHouseDepositList.java

 

add these lines on imports:

 

import net.sf.l2j.gameserver.util.IllegalPlayerAction; 
import net.sf.l2j.gameserver.util.Util; 

 

then find: // Alt game - Karma punishment , and ABOVE this add a line and paste this:



        if (player.getActiveEnchantItem() != null) 
        { 
                player.setAccessLevel(-100); 
                Util.handleIllegalPlayerAction(player,"Player "+player.getName()+" Tried To Use Enchant Exploit , And Got Banned!", IllegalPlayerAction.PUNISH_KICKBAN); 
                return; 
        }  
         

 

Thanks Dude!

  • 0
Posted

java/net/sf/l2j/gameserver/clientpackets/SendWareHouseDepositList.java

 

add these lines on imports:

 

import net.sf.l2j.gameserver.util.IllegalPlayerAction; 
import net.sf.l2j.gameserver.util.Util; 

 

then find: // Alt game - Karma punishment , and ABOVE this add a line and paste this:



        if (player.getActiveEnchantItem() != null) 
        { 
                player.setAccessLevel(-100); 
                Util.handleIllegalPlayerAction(player,"Player "+player.getName()+" Tried To Use Enchant Exploit , And Got Banned!", IllegalPlayerAction.PUNISH_KICKBAN); 
                return; 
        }  
         

I just managed to edit this code and got it worked, if somebody will need it - just write me a PM.

  • 0
Posted

just to make sure u all understand:

 

 

Imports...........

import net.sf.l2j.gameserver.util.IllegalPlayerAction; 
import net.sf.l2j.gameserver.util.Util; 

 

TradeDone.java

+
+			if(player.getActiveWarehouse() != null)
+			{
+				Util.handleIllegalPlayerAction(player,"Player "+player.getName()+" was trying a trade exploit. While in active warehouse.", IllegalPlayerAction.PUNISH_KICK);
+				return;
+			}

 

SendWareHouseDepositList.java

+		if(player.getActiveTradeList() != null)
+		{
+			Util.handleIllegalPlayerAction(player,"Player "+player.getName()+" was trying a wh exploit. While in active trade.", IllegalPlayerAction.PUNISH_KICK);
+			return;
+		}

 

2 files cus there 2 bugs not only 1, the bug can got he other way around :P

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...