Beispiel #1
0
        public static bool Execute(object[] args)
        {
            var mob = (MobileInstance)args[0];

            if (mob.IsNpc() && mob.MobIndex.HasProg(MudProgTypes.Entry))
            {
                CheckFunctions.CheckIfExecute(mob, MudProgTypes.Entry);
            }
            return(true);
        }
Beispiel #2
0
        public static bool Execute(object[] args)
        {
            var killer = (CharacterInstance)args[0];
            var mob    = (MobileInstance)args[1];

            if (mob.IsNpc() && killer != mob &&
                mob.MobIndex.HasProg(MudProgTypes.Death))
            {
                mob.CurrentPosition = PositionTypes.Standing;
                CheckFunctions.CheckIfExecute(mob, MudProgTypes.Death);
                mob.CurrentPosition = PositionTypes.Dead;
            }

            fight.death_cry(mob);
            return(true);
        }