Enrollment officer dialog
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user