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

    • just with this extender that I have shared it is not possible to start with c4 client, you have to make some changes to the extender and it works with c4 client perfectly. regarding the updates in this last revision   🔹dll is not packaged with vmprotect   New custom zone types have been added: 🔹 NO_NOBLESS begin MinX=84638 MaxX=92616 MinY=-87170 MaxY=-82018 MinZ=-6000 MaxZ=0 Type=NO_NOBLESS KickOutPos=83007/148057/-3464 end   ▶️ This zone checks if the character is noble. If it does not meet the condition, it will be automatically kicked to the indicated position (KickOutPos). 🔹 CUSTOM_SPAWN_ZONE begin MinX=77275 MaxX=85704 MinY=10122 MaxY=18066 MinZ=-8000 MaxZ=5000 Type=CUSTOM_SPAWN_ZONE OutPos=83007/148057/-3464 Spawns={{82984/18066/-5256}};{{79275/15147/-5248}};{{82922/14263/-5256}};{{83704/10122/-5288}} end ▶️ This zone allows characters, upon death, to respawn with full buff, CP, HP and MP if they press “Fixed”. They will only be able to revive in one of the positions defined in Spawns. 🔧 Both zones are fully configurable from territorydata.txt
    • Could you tell me what changed in this update?   more one question: Is it possible to log in through the c4 client instead of interlude? That would be great  
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • 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