bane commander NPC

This commit is contained in:
2024-12-28 06:27:31 -06:00
parent 855cceea70
commit 019082bec7
2 changed files with 17 additions and 0 deletions
+10
View File
@@ -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;
}
+7
View File
@@ -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
*/