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.



  • Posts

    • Dear players, Account registration for Airin x2 will be open 13.03 at 19:00 (GMT+1)! You can create an account by selecting Airin in the upper right corner of your profile or via the link. Accounts will not be deleted after the Open Beta Test, so don't miss the registration!   The Open Beta Test (OBT) will start on March 14 at 18:00 (GMT+1) and will last until March 17 at 20:00 (GMT+1) (approximately). Players who find bugs during OBT will receive CoL as a reward: - 1 CoL for each visual staticmeshes bug - For example, passing through textures, stairs, etc. - 2 CoL or more for server-side bugs (depending on severity) You can report bugs via ⁠support in Discord or forum.   🔽 Download links: Google Drive: Download  China Client: Download  Updater: Download  Nickname reservation will be available from March 20 at 17:00 (GMT+1). Service cost: 5 CoL.
    • 💰 Calling All Clans! Join Project Nemesis and Earn Real Money! 💰 Project Nemesis is offering exclusive rewards for clans that join our server! If you're a clan leader or a member looking for a fresh, competitive, and rewarding experience, this is your chance! 🎁 Clan Leader Rewards: ✅ Earn real money just for playing and leading your clan! ✅ Special in-game perks and bonuses. 🎮 Clan Member Rewards: ✅ Starter Pack – Boost your progress from day one! ✅ Free Premium Account – Enjoy extra features at no cost! 💀 Why Choose Project Nemesis? 🔥 Thrilling PvP and PvE content. 🔥 Active community and dedicated staff. 🔥 Balanced economy and fair play. 🔥 Regular events and tournaments. 🔗 Join Us Now! 🌍 Website: playnemesis.org 💬 Discord: Join Here Don't miss this opportunity! Bring your clan, enjoy epic battles, and get rewarded for your dedication! 💎🔥
    • thats funny, you are beign funny, hopzone.net is the most legit website is. (was) the reason? Selling votes to server owners (fake servers can be first due to money) Advertising new scryde owner's server and cycling the players to cryde server while other admins paying Kadar made a mistake selling to a server owner she destroyed the reputation of the website alongside with its legitimacy so as all people saying RIP
    • Hi guys! I want to ask if someone tried playing lineage 2 server with game guard on winlator and is it possible to do it
  • Topics

×
×
  • Create New...