Esempio n. 1
0
 public static void PlaceCivic(Mobile from, Point3D p, CityDeed deed)
 {
     if (CheckPlacement(from, p, deed.MultiID, deed.Offset))
     {
         deed.FinishPlacement(from, p);
     }
 }
Esempio n. 2
0
        public static void PlaceCityHall(Mobile from, Point3D p, CityDeed deed)
        {
            if (CheckPlacement(from, p, deed.MultiID, deed.Offset))
            {
                if (!CheckCitiesInRange(from, p))
                {
                    deed.FinishPlacement(from, p);
                    from.SendGump(new CityWarningGump());
                }
                else
                {
                    int offset = CityRangeOffset * 2;

                    from.SendMessage("Another city is to close to place your city hall here.");
                    from.SendMessage(38, "You must be at least {0} yards (Steps) away from any other city in order to place your city hall.", offset);
                }
            }
        }