[8244] Skip cheating check for buy bank slot opcode. Author: VladimirMangos
This is not big problem in any case and will allow buy slots
in bank windows open using .bank command.
--HG--
branch : trunk
This commit is contained in:
@@ -862,12 +862,14 @@ void WorldSession::HandleBuyBankSlotOpcode(WorldPacket& recvPacket)
|
|||||||
recvPacket >> guid;
|
recvPacket >> guid;
|
||||||
|
|
||||||
// cheating protection
|
// cheating protection
|
||||||
|
/* not critical if "cheated", and check skip allow by slots in bank windows open by .bank command.
|
||||||
Creature *pCreature = GetPlayer()->GetNPCIfCanInteractWith(guid, UNIT_NPC_FLAG_BANKER);
|
Creature *pCreature = GetPlayer()->GetNPCIfCanInteractWith(guid, UNIT_NPC_FLAG_BANKER);
|
||||||
if(!pCreature)
|
if(!pCreature)
|
||||||
{
|
{
|
||||||
sLog.outDebug( "WORLD: HandleBuyBankSlotOpcode - Unit (GUID: %u) not found or you can't interact with him.", uint32(GUID_LOPART(guid)) );
|
sLog.outDebug( "WORLD: HandleBuyBankSlotOpcode - Unit (GUID: %u) not found or you can't interact with him.", uint32(GUID_LOPART(guid)) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
uint32 slot = _player->GetBankBagSlotCount();
|
uint32 slot = _player->GetBankBagSlotCount();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user