mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 16:49:03 +00:00
Update how player shop is handled (#501)
* Update how player shop is handled * Squashed commit of the following: commit5be0778dc9Author: Danial <admin@redsparr0w.com> Date: Sun Sep 19 14:24:12 2021 +1200 minor fixup commitef3b63b54fAuthor: Danial <admin@redsparr0w.com> Date: Sun Sep 19 14:11:27 2021 +1200 Add docker compose file for running servers in containers * Update DialogueHandler.java * Fix for models out of bounds * Revert "Squashed commit of the following:" This reverts commitd27d3c357c. * Other shop tidy up Show shops as combat level 0 Remove items from shop when shop logs off
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.rs2.game.dialogues;
|
||||
|
||||
import com.rs2.game.bots.Bot;
|
||||
import com.rs2.game.bots.BotHandler;
|
||||
import com.rs2.game.content.skills.crafting.JewelryMaking;
|
||||
import com.rs2.game.items.impl.Flowers;
|
||||
import com.rs2.game.items.impl.Teles;
|
||||
@@ -93,6 +95,14 @@ public class DialogueOptions {
|
||||
case 7555: //lostCity 1
|
||||
player.getDialogueHandler().sendDialogues(3701, player.npcType);
|
||||
return;
|
||||
case 10000: // Shop
|
||||
if (!player.inPlayerShopArea()) {
|
||||
player.getDialogueHandler().sendStatement("You need to be in a bank zone or trade area for this.");
|
||||
return;
|
||||
}
|
||||
player.getDialogueHandler().sendStatement("You summoned your shop!");
|
||||
BotHandler.playerShop(player);
|
||||
return;
|
||||
}
|
||||
player.dialogueAction = 0;
|
||||
player.getPacketSender().closeAllWindows();
|
||||
@@ -177,6 +187,10 @@ public class DialogueOptions {
|
||||
case 7555:
|
||||
player.getDialogueHandler().sendDialogues(3597, player.npcType);
|
||||
return;
|
||||
case 10000:
|
||||
player.getDialogueHandler().sendStatement("You close your shop!");
|
||||
BotHandler.closeShop(player);
|
||||
return;
|
||||
}
|
||||
player.dialogueAction = 0;
|
||||
player.getPacketSender().closeAllWindows();
|
||||
@@ -264,6 +278,10 @@ public class DialogueOptions {
|
||||
case 7555:
|
||||
player.getDialogueHandler().sendDialogues(3599, player.npcType);
|
||||
return;
|
||||
case 10000:
|
||||
player.getDialogueHandler().sendStatement("You withdraw " + Bot.formatSellPrice(BotHandler.checkCoins(player)) + " from your shop!");
|
||||
BotHandler.takeCoins(player);
|
||||
return;
|
||||
}
|
||||
player.dialogueAction = 0;
|
||||
player.getPacketSender().closeAllWindows();
|
||||
|
||||
Reference in New Issue
Block a user