Browse Source

add npc command

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
eaa287e176
  1. 6
      src/engine/devcmd/cmds/AddNPCCmd.java

6
src/engine/devcmd/cmds/AddNPCCmd.java

@ -78,10 +78,14 @@ public class AddNPCCmd extends AbstractDevCmd {
} }
NPC created; NPC created;
Guild guild = null; Guild guild = null;
Vector3fImmutable loc;
if(building != null){ if(building != null){
guild = building.getGuild(); guild = building.getGuild();
loc = building.loc;
} else{
loc = pc.loc;
} }
created = NPC.createNPC(name, contractID, Vector3fImmutable.ZERO, guild, zone, (short)level, building); created = NPC.createNPC(name, contractID, loc, guild, zone, (short)level, building);
if(building != null) { if(building != null) {
created.buildingUUID = building.getObjectUUID(); created.buildingUUID = building.getObjectUUID();
created.building = building; created.building = building;

Loading…
Cancel
Save