Esempio n. 1
0
        public static void CharmsUpdated(byte fromClient, Packet packet)
        {
            for (int charmNum = 1; charmNum <= 40; charmNum++)
            {
                bool equippedCharm = packet.ReadBool();
                Server.clients[fromClient].player.SetAttr("equippedCharm_" + charmNum, equippedCharm);
            }

            ServerSend.CharmsUpdated(fromClient, Server.clients[fromClient].player);
        }
        public static void CharmsUpdated(byte fromClient, Packet packet)
        {
            Log("Logging equipped charms for " + Server.clients[fromClient].player.username);
            for (int charmNum = 1; charmNum <= 40; charmNum++)
            {
                bool equippedCharm = packet.ReadBool();
                Server.clients[fromClient].player.SetAttr("equippedCharm_" + charmNum, equippedCharm);
                Log(Server.clients[fromClient].player.username + " Equipped Charm " + charmNum + " " + equippedCharm);
            }

            ServerSend.CharmsUpdated(fromClient, Server.clients[fromClient].player);
        }