mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Open player shop
This commit is contained in:
@@ -36,19 +36,28 @@ public class Trading {
|
|||||||
if (id == player.playerId) {
|
if (id == player.playerId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// player owned shop
|
||||||
|
if (o.isBot && o.myShopId >= 0){
|
||||||
|
if (isCloseTo(o)) {
|
||||||
|
player.getShopAssistant().openShop(o.myShopId);
|
||||||
|
} else {
|
||||||
|
player.getActionSender().sendMessage("Player is not close enough. Retry when you are closer...");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
player.tradeWith = id;
|
player.tradeWith = id;
|
||||||
if (player.isBotting) {
|
if (player.isBotting) {
|
||||||
player.getActionSender().sendMessage("You can't trade items, until you confirm you aren't botting.");
|
player.getActionSender().sendMessage("You can't trade items, until you confirm you aren't botting.");
|
||||||
player.getActionSender().sendMessage("If you need to you can type ::amibotting, to see if your botting.");
|
player.getActionSender().sendMessage("If you need to you can type ::amibotting, to see if your botting.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/*if (c.connectedFrom.equals(o.connectedFrom)) {
|
|
||||||
c.getActionSender().sendMessage("You cannot trade your own IP.");
|
|
||||||
return;
|
|
||||||
}*/
|
|
||||||
if (!CastleWars.deleteCastleWarsItems(player, id)) {
|
if (!CastleWars.deleteCastleWarsItems(player, id)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!player.inTrade && o.tradeRequested && o.tradeWith == player.playerId && player.playerIsBusy() == false && o.playerIsBusy() == false) { //start trading process
|
if (!player.inTrade && o.tradeRequested && o.tradeWith == player.playerId && player.playerIsBusy() == false && o.playerIsBusy() == false) { //start trading process
|
||||||
if (!isCloseTo(o)) {
|
if (!isCloseTo(o)) {
|
||||||
player.getActionSender().sendMessage("Player is not close enough. Retry when you are closer...");
|
player.getActionSender().sendMessage("Player is not close enough. Retry when you are closer...");
|
||||||
|
|||||||
Reference in New Issue
Block a user