Beispiel #1
0
        public static void TestCorpse(Session session, params string[] parameters)
        {
            if (session.Player.SelectedTarget != 0)
            {
                var target = new ObjectGuid(session.Player.SelectedTarget);
                var wo     = LandblockManager.GetWorldObject(session, target);

                if (target.IsCreature())
                {
                    if (wo != null)
                    {
                        (wo as Creature).OnKill(session);
                    }
                }
            }
            else
            {
                ChatPacket.SendServerMessage(session, "No creature selected.", ChatMessageType.Broadcast);
            }
        }