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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock