Esempio n. 1
0
        public void processLootAccepted()
        {
            ClientView theMobView = Store.currentClient.viewMan.getViewById(Store.currentClient.playerData.currentSelectedTargetViewId);

            // ToDo: we currently not know what items and money we should have - we give everytime 5000 currently
            UInt32 value          = 5000;
            UInt32 newMoneyAmount = (UInt32)Store.currentClient.playerData.getInfo() + value;

            // Update Info
            Store.dbManager.WorldDbHandler.SaveInfo(Store.currentClient, newMoneyAmount);
            Store.currentClient.playerData.setInfo(newMoneyAmount);

            ServerPackets packet = new ServerPackets();

            packet.sendInfoCurrent(Store.currentClient, (UInt32)Store.currentClient.playerData.getInfo());
            packet.SendLootAccepted(Store.currentClient);
            // ToDo: send "loot disabled"
        }