trainer merchants
This commit is contained in:
1 parent
3cf38da567
commit
4c0b480aeb
2 files changed
+16
-1
No files matched your search
@@ -323,6 +323,21 @@ public class Contract extends AbstractGameObject {
|
||||
pc.charItemManager.updateInventory();
|
||||
|
||||
}
|
||||
|
||||
public static boolean isClassTrainer(int id){
|
||||
if(id >= 5 && id <= 30)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
public static VendorDialog trainerDialog(VendorDialog vd){
|
||||
VendorDialog returnedVD = new VendorDialog("Test","Test",19991999);
|
||||
returnedVD.options = new ArrayList<MenuOption>();
|
||||
if(isClassTrainer(vd.getObjectUUID())) {
|
||||
MenuOption option1 = new MenuOption(19991999, "Class Market", 19991999);
|
||||
vd.getOptions().add(option1);
|
||||
}
|
||||
return returnedVD;
|
||||
}
|
||||
public static VendorDialog HandleBaneCommanderOptions(int optionId, NPC npc, PlayerCharacter pc){
|
||||
pc.setLastNPCDialog(npc);
|
||||
VendorDialog vd = new VendorDialog(VendorDialog.getHostileVendorDialog().getDialogType(),VendorDialog.getHostileVendorDialog().getIntro(),-1);//VendorDialog.getHostileVendorDialog();
|
||||
|
||||
Reference in new issue
Block a user