Enrollment officer dialog

This commit is contained in:
2025-01-01 18:15:22 -06:00
parent 9d5c4424a1
commit 55b3161900
3 changed files with 26 additions and 5 deletions
+3
View File
@@ -601,6 +601,9 @@ public class MobAI {
if (mob == null)
return;
if(mob.isAlive())
if(!mob.getMovementLoc().equals(Vector3fImmutable.ZERO))
mob.setLoc(mob.getMovementLoc());
if (mob.getTimestamps().containsKey("lastExecution") == false)
mob.getTimestamps().put("lastExecution", System.currentTimeMillis());
@@ -96,11 +96,6 @@ public class VendorDialogMsg extends ClientNetMsg {
return;
}
if(npc.contractUUID == 1502040){ //enrollment officer
PlayerCharacter.unboxPlayer(playerCharacter);
}
// Restrict disc trainers to only characters who have
// tht disc applied.
@@ -120,6 +115,12 @@ public class VendorDialogMsg extends ClientNetMsg {
VendorDialog vd = null;
Contract contract = npc.getContract();
if(npc.contractUUID == 1502040){ //enrollment officer
//PlayerCharacter.unboxPlayer(playerCharacter);
vd = Contract.HandleEnrollmentOfficer(msg.unknown03,npc,playerCharacter);
msg.updateMessage(3, vd);
}
if(contract.getContractID() == 1502042){
vd = Contract.HandleBaneCommanderOptions(msg.unknown03, npc, playerCharacter);
msg.updateMessage(3, vd);
+17
View File
@@ -198,6 +198,23 @@ public class Contract extends AbstractGameObject {
return this.vendorDialog;
}
public static VendorDialog HandleEnrollmentOfficer(int optionId, NPC npc, PlayerCharacter pc){
pc.setLastNPCDialog(npc);
VendorDialog vd = new VendorDialog(VendorDialog.getHostileVendorDialog().getDialogType(),VendorDialog.getHostileVendorDialog().getIntro(),-1);//VendorDialog.getHostileVendorDialog();
vd.getOptions().clear();
switch(optionId) {
default:
if (pc.isBoxed) {
MenuOption option1 = new MenuOption(15020401, "Unbox", 15020401);
vd.getOptions().add(option1);
}
break;
case 15020401:
PlayerCharacter.unboxPlayer(pc);
break;
}
return vd;
}
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();