forked from MagicBane/Server
Add new npc to world.
This commit is contained in:
@@ -523,11 +523,13 @@ public enum BuildingManager {
|
|||||||
mob.setParentZone(zone);
|
mob.setParentZone(zone);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
npc = NPC.createNPC( pirateName, contract.getObjectUUID(), NpcLoc, contractOwner.getGuild(), false, zone, (short) rank, false, building);
|
npc = NPC.createNPC(pirateName, contract.getObjectUUID(), NpcLoc, contractOwner.getGuild(), false, zone, (short) rank, false, building);
|
||||||
|
|
||||||
if (npc == null)
|
if (npc == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
WorldGrid.addObject(npc, contractOwner);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user