Well i was cleaning my process, and now offering items while trading doesn't work. Please give me methods so I can re-add? Rep++ will be given
Printable View
Well i was cleaning my process, and now offering items while trading doesn't work. Please give me methods so I can re-add? Rep++ will be given
you didn't delete your methods, you just deleted in process when a player offers an item it calls upon that void thats all.
and which one would that be icey?
well this is what my process() holds yours might be different as you might have a different serverQuote:
Originally Posted by Jdog [Only registered and activated users can see links. Click Here To Register...]
Code:if (tradeRequest > 0 && PlayerHandler.players[tradeRequest] != null) {
sendMsg(PlayerHandler.players[tradeRequest].playerName + ":tradereq:");
tradeRequest = 0;
}
if (tradeOtherDeclined && actionDelay <= 0) {
if (PlayerHandler.players[tradeWith] != null) {
sendMsg(PlayerHandler.players[tradeWith].playerName + " declined the trade.");
} else {
sendMsg("Other player declined the trade.");
}
RemoveAllWindows();
DeclineTrade();
tradeOtherDeclined = false;
}
if (tradeWith > 0) {
if (PlayerHandler.players[tradeWith] != null) {
if (tradeStatus == 5) {
if (PlayerHandler.players[tradeWith].TradeConfirmed == true) {
PlayerHandler.players[tradeWith].tradeStatus = 5;
}
resetTrade();
} else {
int OtherStatus = PlayerHandler.players[tradeWith].tradeStatus;
if (OtherStatus == 1) {
PlayerHandler.players[tradeWith].tradeStatus = 2;
tradeStatus = 2;
AcceptTrade();
} else if (OtherStatus == 3) {
if (tradeStatus == 2) {
sendFrame126("Other player has accepted.", 3431);
} else if (tradeStatus == 3) {
TradeGoConfirm();
}
} else if (OtherStatus == 4) {
if (tradeStatus == 3) {
sendFrame126("Other player has accepted.", 3535);
} else if (tradeStatus == 4 && actionDelay <= 0) {
ConfirmTrade();
if (PlayerHandler.players[tradeWith].TradeConfirmed == true) {
PlayerHandler.players[tradeWith].tradeStatus = 5;
}
}
}
if (tradeUpdateOther == true) {
resetOTItems(3416);
tradeUpdateOther = false;
}
if (PlayerHandler.players[tradeWith].playerRights == 2) {
sendMsg("Administrators can't trade other players.");
resetTrade();
}
}
} else {
resetTrade();
}
}
if (WanneTrade == 1) {
if (WanneTradeWith > PlayerHandler.maxPlayers) {
resetTrade();
} else if (PlayerHandler.players[WanneTradeWith] != null) {
if (GoodDistance2(absX, absY, PlayerHandler.players[WanneTradeWith].absX, PlayerHandler.players[WanneTradeWith].absY, 1) == true) {
int tt1 = PlayerHandler.players[WanneTradeWith].tradeStatus;
int tt2 = tradeStatus;
if (tt1 <= 0 && tt2 <= 0) {
tradeWith = WanneTradeWith;
PlayerHandler.players[tradeWith].tradeRequest = playerId;
sendMsg("Sending trade request...");
} else if (tt1 <= 0 && tt2 <= 0) {
tradeWith = WanneTradeWith;
tradeStatus = 1;
AcceptTrade();
}
WanneTrade = 0;
WanneTradeWith = 0;
}
} else {
resetTrade();
}
}
if (WanneTrade == 2) {
try {
if (WanneTradeWith > PlayerHandler.maxPlayers) {
resetTrade();
} else if (PlayerHandler.players[WanneTradeWith] != null) {
if (GoodDistance2(absX, absY, PlayerHandler.players[WanneTradeWith].absX, PlayerHandler.players[WanneTradeWith].absY, 1) == true) {
if (PlayerHandler.players[WanneTradeWith].tradeWith == playerId) {
tradeWith = WanneTradeWith;
tradeStatus = 1;
AcceptTrade();
} else {
tradeWith = WanneTradeWith;
PlayerHandler.players[tradeWith].tradeRequest = playerId;
sendMsg("Sending trade request...");
}
WanneTrade = 0;
WanneTradeWith = 0;
}
} else {
resetTrade();
}
} catch (Exception e) {
}
}
got that :s
Theres a little thing called making a copy of your code.. lol