private static void OnNewInnKeeper(NPC npc) { NamedWorldZoneLocation worldZoneLocation = new NamedWorldZoneLocation() { Position = npc.Position, MapId = npc.Map.Id }; if (npc.Zone != null) { worldZoneLocation.ZoneId = npc.Zone.Id; } npc.BindPoint = worldZoneLocation; }
static void OnNewInnKeeper(NPC npc) { // TODO: Read bind points var point = new NamedWorldZoneLocation { Position = npc.Position, MapId = npc.Map.Id }; if (npc.Zone != null) { point.ZoneId = npc.Zone.Id; } npc.BindPoint = point; }