|
|
|
@ -86,13 +86,15 @@ public class AddNPCCmd extends AbstractDevCmd {
@@ -86,13 +86,15 @@ public class AddNPCCmd extends AbstractDevCmd {
|
|
|
|
|
loc = pc.loc; |
|
|
|
|
} |
|
|
|
|
created = NPC.createNPC(name, contractID, loc, guild, zone, (short)level, building); |
|
|
|
|
created.bindLoc = loc; |
|
|
|
|
if(building != null) { |
|
|
|
|
created.buildingUUID = building.getObjectUUID(); |
|
|
|
|
created.building = building; |
|
|
|
|
|
|
|
|
|
created.buildingUUID = building.getObjectUUID(); |
|
|
|
|
created.building = building; |
|
|
|
|
NPCManager.slotCharacterInBuilding(created); |
|
|
|
|
} |
|
|
|
|
created.setLoc(created.bindLoc); |
|
|
|
|
created.updateDatabase(); |
|
|
|
|
throwbackInfo(pc, "Created NPC with UUID: " + created.getObjectUUID()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|