Example #1
0
        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;
        }
Example #2
0
        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;
        }