예제 #1
0
        public override void SetDeath(Unit Killer)
        {
            Killer.QtsInterface.HandleEvent(Objective_Type.QUEST_KILL_PLAYERS, 0, 1);

            base.SetDeath(Killer);

            if (Killer.IsPlayer())
            {
                WorldMgr.GenerateRenown(Killer.GetPlayer(), this);
            }

            EvtInterface.AddEvent(RespawnPlayer, 20000, 1);
            SendDialog((ushort)5, (ushort)20);
        }
예제 #2
0
        public override void SetDeath(Unit Killer)
        {
            UInt16 Time = 600; // Time to AutoResurrect in Seconds. 10 Minutes in Official Servers

            Killer.QtsInterface.HandleEvent(Objective_Type.QUEST_KILL_PLAYERS, 0, 1);

            base.SetDeath(Killer);

            if (Killer.IsPlayer())
            {
                WorldMgr.GenerateRenown(Killer.GetPlayer(), this);
            }

            PacketOut Out = new PacketOut((byte)Opcodes.F_PLAYER_DEATH);

            Out.WriteUInt16(Oid);
            Out.WriteUInt16(Time);
            SendPacket(Out);

            EvtInterface.AddEvent(AutomaticRespawnPlayer, Time * 1000, 1); // If the player don't resurrect. autoresurrect in 10 Minutes.
        }