Пример #1
0
        public static void GetNearbyTown(HollowStump stump)
        {
            if (stump.Map == Map.SerpentIsland)
            {
                stump.StumpTown = "the City of Furnace";
            }
            else
            {
                foreach (Mobile citizen in stump.GetMobilesInRange(200))
                {
                    if (citizen is BaseVendor || citizen is TownGuards || (citizen is Citizens && !(citizen is HouseVisitor)))
                    {
                        if (citizen.Region.Name != null)
                        {
                            stump.StumpTown = Server.Misc.Worlds.GetRegionName(citizen.Map, citizen.Location);
                        }
                    }
                }
            }

            if (stump.StumpTown == null || stump.StumpTown == "")
            {
                stump.StumpTown = "the City of Britain";
            }
        }
Пример #2
0
 public static void GetNearbyTown(HollowStump stump)
 {
     foreach (Mobile citizen in stump.GetMobilesInRange(100))
     {
         if (citizen is BaseVendor || citizen is TownGuards)
         {
             stump.StumpTown = Server.Misc.Worlds.GetRegionName(citizen.Map, citizen.Location);
         }
     }
 }