////////////////////////////////////////////////////////////// /// This function handles MSG_AUCTION_HELLO: ////////////////////////////////////////////////////////////// void WorldSession::HandleAuctionHelloOpcode( WorldPacket & recv_data ) { if(!_player->IsInWorld()) return; uint64 guid; recv_data >> guid; Creature* auctioneer = _player->GetMapMgr()->GetCreature(guid); if(!auctioneer) return; SendAuctionList(auctioneer); }
////////////////////////////////////////////////////////////// /// This function handles MSG_AUCTION_HELLO: ////////////////////////////////////////////////////////////// void WorldSession::HandleAuctionHelloOpcode( WorldPacket & recv_data ) { CHECK_INWORLD_RETURN; uint64 guid; recv_data >> guid; Creature* auctioneer = _player->GetMapMgr()->GetCreature(GET_LOWGUID_PART(guid)); if(!auctioneer) return; SendAuctionList(auctioneer); }