(RicardoCampos) End looting before zoning.

This commit is contained in:
JJ
2014-11-02 00:10:19 -04:00
parent 3620ac4eaf
commit 5decde0af9
4 changed files with 34 additions and 9 deletions
+2 -3
View File
@@ -5501,7 +5501,7 @@ void Client::Handle_OP_EndLootRequest(const EQApplicationPacket *app)
return;
}
SetLooting(false);
SetLooting(0);
Entity* entity = entity_list.GetID(*((uint16*)app->pBuffer));
if (entity == 0) {
@@ -9343,8 +9343,6 @@ void Client::Handle_OP_LootRequest(const EQApplicationPacket *app)
return;
}
SetLooting(true);
Entity* ent = entity_list.GetID(*((uint32*)app->pBuffer));
if (ent == 0) {
Message(13, "Error: OP_LootRequest: Corpse not found (ent = 0)");
@@ -9353,6 +9351,7 @@ void Client::Handle_OP_LootRequest(const EQApplicationPacket *app)
}
if (ent->IsCorpse())
{
SetLooting(ent->GetID()); //store the entity we are looting
Corpse *ent_corpse = ent->CastToCorpse();
if (DistNoRootNoZ(ent_corpse->GetX(), ent_corpse->GetY()) > 625)
{