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:
@@ -2,6 +2,8 @@ package com.rs2.game.dialogues;
|
||||
|
||||
import com.rs2.GameConstants;
|
||||
import com.rs2.GameEngine;
|
||||
import com.rs2.game.bots.Bot;
|
||||
import com.rs2.game.bots.BotHandler;
|
||||
import com.rs2.game.content.quests.QuestAssistant;
|
||||
import com.rs2.game.content.quests.QuestRewards;
|
||||
import com.rs2.game.content.randomevents.FreakyForester;
|
||||
@@ -7516,6 +7518,15 @@ public class DialogueHandler {
|
||||
player.getDialogueHandler().sendNpcChat(player.talkingNpc, ChatEmotes.HAPPY_JOYFUL, "Thank you again traveller. Happy Easter!");
|
||||
player.getDialogueHandler().endDialogue();
|
||||
break;
|
||||
case 10000:
|
||||
int coins = BotHandler.checkCoins(player);
|
||||
sendOption(
|
||||
player.inPlayerShopArea() ? "Summon Shop" : "@red@Summon Shop", // 9178
|
||||
"Close Shop", // 9179
|
||||
coins > 0 ? "Withdraw Money (" + Bot.formatSellPrice(coins) + ")" : "@red@Withdraw Money (0 gp)"// 9180
|
||||
);
|
||||
player.dialogueAction = 10000;
|
||||
break;
|
||||
}
|
||||
}
|
||||
public void chatboxText(String text, String text1, String text2,
|
||||
|
||||
Reference in New Issue
Block a user