Jump to content
  • 0

How to fix this trade bug ?


NasDad*

Question

10 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0

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; 
        }  
         

Link to comment
Share on other sites

  • 0

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!

Link to comment
Share on other sites

  • 0

its not fixed, whats the enchant got to do with the trade + wh scam lol

 

http://trac.assembla.com/L2J-Archid/changeset/1200

 

Theres the fix

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

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

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