Beispiel #1
0
        public override void Handle(ReBornWarRock_PServer.GameServer.Virtual_Objects.User.virtualUser User)
        {
            string RemoveItem = getBlock(0);

            if (User.hasCostume(RemoveItem))
            {
                DB.runQuery("DELETE FROM inventory_costume WHERE ownerid='" + User.UserID + "' AND itemcode='" + RemoveItem + "'");
                User.Costume = new CostumeItem[105];
                User.LoadItems();
                User.send(new Packets.PACKET_DELETE_COSTUME(User, RemoveItem));
                User.reloadCash();
            }
            else
            {
                User.disconnect();
            }
        }