...........................
Simple fix..
Look at the packet for the minimap which registers movement. Add a if statement such as.. if the player contains an interface and they use the walking packet to close it.. really simple man.
|
The problem is: when you get to the secound trade screen and step on top of the otherplayer and click accept 2 times in a fast manner it accepts fromboth players
i tried to find the problem in google but i couldnt find a fix fo this :/
any1 help me please
...........................
Simple fix..
Look at the packet for the minimap which registers movement. Add a if statement such as.. if the player contains an interface and they use the walking packet to close it.. really simple man.
I don't know if this will solve you problem but this will prevent people from trading while ontop of eachother.
Code:if (trader.getLocation().getX() == partner.getLocation().getX() && trader.getLocation().getY() == partner.getLocation().getY()) { trader.getInterfaceManager().sendInterface(182); trader.sendMessage("Cant trade in this position");
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |