Ejemplo n.º 1
0
        internal void SyncDeleteDeadNpc(int npcId)
        {
            Msg_CR_DeleteDeadNpc msg = new Msg_CR_DeleteDeadNpc();

            msg.npc_id = npcId;
            SendMessage(msg);
        }
Ejemplo n.º 2
0
        internal static void Execute(object msg, User user)
        {
            Msg_CR_DeleteDeadNpc ddn_msg = msg as Msg_CR_DeleteDeadNpc;

            if (null == ddn_msg)
            {
                return;
            }
            Scene scene = user.OwnRoom.GetActiveScene();

            if (null != scene)
            {
                NpcInfo npc = scene.NpcManager.GetNpcInfo(ddn_msg.npc_id);
                if (null != npc && npc.IsDead())
                {
                    npc.GfxDead = true;
                }
            }
        }