コード例 #1
0
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZoneAsync(this, cls);
        }
コード例 #2
0
ファイル: InstantBuffZone.cs プロジェクト: LFBRxD/L2dotNET
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZoneAsync(this, cls);

            if (obj is L2Character)
            {
                ((L2Character)obj).SendMessageAsync("u lost effect defence.");
            }
        }
コード例 #3
0
ファイル: MonsterRaceZone.cs プロジェクト: LFBRxD/L2dotNET
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZoneAsync(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;
            }
        }
コード例 #4
0
ファイル: SsqZone.cs プロジェクト: LFBRxD/L2dotNET
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZoneAsync(this, cls);

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

            L2Player p = (L2Player)obj;

            p.SendSystemMessage((SystemMessageId)Template.LeavingMessageNo);
        }
コード例 #5
0
ファイル: DamageZone.cs プロジェクト: LFBRxD/L2dotNET
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZoneAsync(this, cls);

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

            L2Player p = (L2Player)obj;

            p.IsInDanger = false;
            p.SendPacketAsync(new EtcStatusUpdate(p));
        }
コード例 #6
0
ファイル: SwampZone.cs プロジェクト: LFBRxD/L2dotNET
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZoneAsync(this, cls);

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

            L2Player p = (L2Player)obj;

            p.IsInDanger = false;
            p.SendPacketAsync(new EtcStatusUpdate(p));
            //  p._stats.base_p_speed -= Template._move_bonus;
            p.BroadcastUserInfoAsync();
        }
コード例 #7
0
ファイル: MotherTreeZone.cs プロジェクト: nihrom/L2dotNET
        public override void OnExit(L2Object obj, bool cls)
        {
            if (!Enabled)
            {
                return;
            }

            base.OnExit(obj, cls);

            obj.OnExitZoneAsync(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;
        }