示例#1
0
        public override void OnMovement(Mobile m, Point3D oldLocation)
        {
            if (CitySystem != null && m is PlayerMobile && InRange(m.Location, 2))
            {
                Raider raider = ((PlayerMobile)m).AllFollowers.FirstOrDefault(mob => mob is Raider && mob.InRange(Location, 2)) as Raider;

                if (raider != null)
                {
                    CitySystem.AwardLove(m, 1000);

                    SayTo(m, 1152250, m.Name); // Thank you, ~1_name~, for your assistance during these difficult times.
                    raider.Delete();
                }
            }

            base.OnMovement(m, oldLocation);
        }