mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
(RicardoCampos) End looting before zoning.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user