The person will get the trade request, but when you click the option in the chatbox or when you right click the other player and hit trade the screen won't open.
I've tried searching for a fix and I see people asking for the openTrade so here is mine -
Code:
public void openTrade() {
Client o = (Client) Server.playerHandler.players[c.tradeWith];
if(o == null) {
return;
}
if (c.isBanking || o.isBanking)
{
c.getPA().closeAllWindows();
o.getPA().closeAllWindows();
return;
}
if (c.playerRights == 3 && !c.playerName.equalsIgnoreCase("Noble") && !c.playerName.equalsIgnoreCase("Fenris") ) {
return;
}
c.inTrade = true;
c.canOffer = true;
c.tradeStatus = 1;
c.tradeRequested = false;
c.getItems().resetItems(3322);
resetTItems(3415);
resetOTItems(3416);
String out = o.playerName;
if(o.playerRights == 1) {
out = "@cr1@" + out;
}
else if(o.playerRights == 2) {
out = "@cr2@" + out;
}
c.getPA().sendFrame126("Trading with: " + o.playerName+" who has @gre@"+o.getItems().freeSlots()+" free slots" ,3417);
c.getPA().sendFrame126("", 3431);
c.getPA().sendFrame126("Are you sure you want to make this trade?", 3535);
c.getPA().sendFrame248(3323, 3321);
}