Example #1
0
        public override void OnEnter(L2Object obj)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnEnter(obj);

            obj.OnEnterZone(this);
        }
Example #2
0
        public override void OnEnter(L2Object obj)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnEnter(obj);

            obj.OnEnterZone(this);

            if (obj is L2Character)
            {
                ((L2Character)obj).SendMessage("u can feel defence.");
            }
        }
Example #3
0
        public override void OnEnter(L2Object obj)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnEnter(obj);

            obj.OnEnterZone(this);

            if (obj is L2Player)
            {
                // ((L2Player)obj).sendPacket(new PlaySound("S_Race", true));
            }
        }
Example #4
0
        public override void OnEnter(L2Object obj)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnEnter(obj);

            obj.OnEnterZone(this);

            if (obj is L2Player)
            {
                //    p._stats.p_regen_hp += Template._hp_regen_bonus;
                //   p._stats.p_regen_mp += Template._mp_regen_bonus;
            }
        }
Example #5
0
        public override void OnEnter(L2Object obj)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnEnter(obj);

            obj.OnEnterZone(this);

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

            L2Player p = (L2Player)obj;

            p.SendSystemMessage((SystemMessage.SystemMessageId)Template.EnteringMessageNo);
        }
Example #6
0
        public override void OnEnter(L2Object obj)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnEnter(obj);

            obj.OnEnterZone(this);

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

            L2Player p = (L2Player)obj;

            p.IsInDanger = true;
            p.SendPacket(new EtcStatusUpdate(p));
        }
Example #7
0
        public override void OnEnter(L2Object obj)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnEnter(obj);

            obj.OnEnterZone(this);

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

            L2Player p = (L2Player)obj;

            p.IsInDanger = true;
            p.SendPacket(new EtcStatusUpdate(p));
            //  p._stats.base_p_speed += Template._move_bonus;
            p.BroadcastUserInfo();
        }
Example #8
0
        public override void OnEnter(L2Object obj)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnEnter(obj);

            obj.OnEnterZone(this);

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

            L2Player p = (L2Player)obj;

            p.SendSystemMessage((SystemMessage.SystemMessageId)Template.EnteringMessageNo);
            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;
        }