Browse Source

bane commander NPC

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
019082bec7
  1. 10
      src/engine/objects/Contract.java
  2. 7
      src/engine/objects/MenuOption.java

10
src/engine/objects/Contract.java

@ -187,6 +187,16 @@ public class Contract extends AbstractGameObject {
} }
public VendorDialog getVendorDialog() { 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; return this.vendorDialog;
} }

7
src/engine/objects/MenuOption.java

@ -31,6 +31,13 @@ public class MenuOption extends AbstractGameObject {
this.prereq = rs.getInt("prereq"); 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 * Getters
*/ */

Loading…
Cancel
Save