PDA

View Full Version : [Share] Master loot Exploit Fix



Wise
05-04-14, 11:50 PM
This is not made by me.


Although i'd like to share this to the ones who not yet have not implented the new TC update.
And for the trollers, the very most of the current active servers here has not fixed it yet.



@@ -419,6 +419,13 @@ void WorldSession::HandleLootMasterGiveOpcode(WorldPack et& recvData)

if (_player->GetLootGUID() != lootguid)

return;



+ if (!_player->IsInRaidWith(target) || !_player->IsInMap(target))

+ {

+ TC_LOG_INFO("loot", "MasterLootItem: Player %s tried to give an item to ineligible player %s !", GetPlayer()->GetName().c_str(), target->GetName().c_str());

+ return;

+ }

+

+

Loot* loot = NULL;



if (IS_CRE_OR_VEH_GUID(GetPlayer()->GetLootGUID()))