forked from MagicBane/Server
add npc command
This commit is contained in:
@@ -78,10 +78,14 @@ public class AddNPCCmd extends AbstractDevCmd {
|
||||
}
|
||||
NPC created;
|
||||
Guild guild = null;
|
||||
Vector3fImmutable loc;
|
||||
if(building != null){
|
||||
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) {
|
||||
created.buildingUUID = building.getObjectUUID();
|
||||
created.building = building;
|
||||
|
||||
Reference in New Issue
Block a user