Jump to content

Recommended Posts

Posted

Hello MxC

I am here to share a way of solving the trade bug which is famous nowadays.

It is a small one so it is very easy to add it.

Let's start

what's the code doing?

It lets the  player's trade only from a small distance.

 

 

Find the file TradeRequest.java

 

code:

if (partner.getTradeRefusal())

        {

            player.sendMessage("Target is in trade refusal mode");

            return;

        }

       

          if (Util.calculateDistance(player, partner, true) > 100)

          {

                SystemMessage sm = new SystemMessage(SystemMessageId.TARGET_TOO_FAR);

                player.sendPacket(sm);

                return;       

        }

 

For questions reply

Posted

there isnt only 1 trade bug fix, bugs are many. With your code they cant trade when users are far away from the trader

 

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

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

 

and when you leech codes from other projects instead of changing the color of the code, use a patch.

 

locked

Guest
This topic is now closed to further replies.


×
×
  • Create New...