From 019082bec7eae542b25ffad2e99f9bf7b74b3b82 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 28 Dec 2024 06:27:31 -0600 Subject: [PATCH] bane commander NPC --- src/engine/objects/Contract.java | 10 ++++++++++ src/engine/objects/MenuOption.java | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/src/engine/objects/Contract.java b/src/engine/objects/Contract.java index de0fefc4..585043b4 100644 --- a/src/engine/objects/Contract.java +++ b/src/engine/objects/Contract.java @@ -187,6 +187,16 @@ public class Contract extends AbstractGameObject { } public VendorDialog getVendorDialog() { + if(this.contractID == 1502042) { + VendorDialog vd = VendorDialog.getHostileVendorDialog(); + vd.getOptions().clear(); + MenuOption option1 = new MenuOption(796,"Set Bane Day",796); + vd.getOptions().add(option1); + return vd; + } + + + return this.vendorDialog; } diff --git a/src/engine/objects/MenuOption.java b/src/engine/objects/MenuOption.java index 36ea561a..4a5a6e4b 100644 --- a/src/engine/objects/MenuOption.java +++ b/src/engine/objects/MenuOption.java @@ -31,6 +31,13 @@ public class MenuOption extends AbstractGameObject { this.prereq = rs.getInt("prereq"); } + public MenuOption(int id, String msg, int option){ + this.menuID = id; + this.message = msg; + this.optionID = option; + this.prereq = 0; + } + /* * Getters */