Esempio n. 1
0
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZone(this, cls);
        }
Esempio n. 2
0
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZone(this, cls);

            if (obj is L2Character)
            {
                ((L2Character)obj).SendMessage("u lost effect defence.");
            }
        }
Esempio n. 3
0
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZone(this, cls);

            if (obj is L2Player)
            {
                //    p._stats.p_regen_hp += Template._hp_regen_bonus;
                //   p._stats.p_regen_mp += Template._mp_regen_bonus;
            }
        }
Esempio n. 4
0
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZone(this, cls);

            if (obj is L2Player)
            {
                // ((L2Player)obj).sendMessage("leaved monster race");

                //    p._stats.p_regen_hp += Template._hp_regen_bonus;
                //   p._stats.p_regen_mp += Template._mp_regen_bonus;
            }
        }
Esempio n. 5
0
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZone(this, cls);

            if (!(obj is L2Player))
            {
                return;
            }

            L2Player p = (L2Player)obj;

            p.SendSystemMessage((SystemMessage.SystemMessageId)Template.LeavingMessageNo);
        }
Esempio n. 6
0
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZone(this, cls);

            if (!(obj is L2Player))
            {
                return;
            }

            L2Player p = (L2Player)obj;

            p.IsInDanger = false;
            p.SendPacket(new EtcStatusUpdate(p));
        }
Esempio n. 7
0
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZone(this, cls);

            if (!(obj is L2Player))
            {
                return;
            }

            L2Player p = (L2Player)obj;

            p.IsInDanger = false;
            p.SendPacket(new EtcStatusUpdate(p));
            //  p._stats.base_p_speed -= Template._move_bonus;
            p.BroadcastUserInfo();
        }
Esempio n. 8
0
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZone(this, cls);

            if (!(obj is L2Player))
            {
                return;
            }

            L2Player p = (L2Player)obj;

            p.SendSystemMessage((SystemMessage.SystemMessageId)Template.LeavingMessageNo);
            if (Template.AffectRace.EqualsIgnoreCase("all"))
            {
                return;
            }

            if (!Template.AffectRace.EqualsIgnoreCase("elf"))
            {
                return;
            }

            if (p.BaseClass.ClassId.ClassRace != ClassRace.Elf)
            {
                return;
            }

            //   p._stats.p_regen_hp -= Template._hp_regen_bonus;
            //   p._stats.p_regen_mp -= Template._mp_regen_bonus;
        }