diff --git a/common/eq_packet_structs.h b/common/eq_packet_structs.h index 1d25e4d66..ffbcead70 100644 --- a/common/eq_packet_structs.h +++ b/common/eq_packet_structs.h @@ -1643,7 +1643,7 @@ struct LootingItem_Struct { /*002*/ uint32 looter; /*004*/ uint16 slot_id; /*006*/ uint8 unknown3[2]; -/*008*/ uint32 auto_loot; +/*008*/ int32 auto_loot; }; struct GuildManageStatus_Struct{ diff --git a/common/patches/rof_structs.h b/common/patches/rof_structs.h index 879afc1d4..32c7c0d28 100644 --- a/common/patches/rof_structs.h +++ b/common/patches/rof_structs.h @@ -2021,7 +2021,7 @@ struct LootingItem_Struct { /*004*/ uint32 looter; /*008*/ uint16 slot_id; /*010*/ uint16 unknown10; -/*012*/ uint32 auto_loot; +/*012*/ int32 auto_loot; /*016*/ uint32 unknown16; /*020*/ }; diff --git a/common/patches/sod_structs.h b/common/patches/sod_structs.h index cd76218e0..fdcb03658 100644 --- a/common/patches/sod_structs.h +++ b/common/patches/sod_structs.h @@ -1666,7 +1666,7 @@ struct LootingItem_Struct { /*000*/ uint32 lootee; /*004*/ uint32 looter; /*008*/ uint32 slot_id; -/*012*/ uint32 auto_loot; +/*012*/ int32 auto_loot; /*016*/ uint32 unknown16; /*020*/ }; diff --git a/common/patches/sof_structs.h b/common/patches/sof_structs.h index 9be93d49f..00fcd4ecf 100644 --- a/common/patches/sof_structs.h +++ b/common/patches/sof_structs.h @@ -1648,7 +1648,7 @@ struct LootingItem_Struct { /*002*/ uint32 looter; /*004*/ uint16 slot_id; /*006*/ uint8 unknown3[2]; -/*008*/ uint32 auto_loot; +/*008*/ int32 auto_loot; }; struct GuildManageStatus_Struct{ diff --git a/common/patches/titanium_structs.h b/common/patches/titanium_structs.h index 91921da2e..69988dd7c 100644 --- a/common/patches/titanium_structs.h +++ b/common/patches/titanium_structs.h @@ -1420,7 +1420,7 @@ struct LootingItem_Struct { /*002*/ uint32 looter; /*004*/ uint16 slot_id; /*006*/ uint8 unknown3[2]; -/*008*/ uint32 auto_loot; +/*008*/ int32 auto_loot; }; struct GuildManageStatus_Struct{ diff --git a/common/patches/uf_structs.h b/common/patches/uf_structs.h index ec279e56c..560a9378d 100644 --- a/common/patches/uf_structs.h +++ b/common/patches/uf_structs.h @@ -1707,7 +1707,7 @@ struct LootingItem_Struct { /*000*/ uint32 lootee; /*004*/ uint32 looter; /*008*/ uint32 slot_id; -/*012*/ uint32 auto_loot; +/*012*/ int32 auto_loot; /*016*/ uint32 unknown16; /*020*/ }; diff --git a/zone/corpse.cpp b/zone/corpse.cpp index 216bf2299..8219577de 100644 --- a/zone/corpse.cpp +++ b/zone/corpse.cpp @@ -1174,7 +1174,7 @@ void Corpse::LootItem(Client *client, const EQApplicationPacket *app) args.push_back(inst); args.push_back(this); if (parse->EventPlayer(EVENT_LOOT, client, buf, 0, &args) != 0) { - lootitem->auto_loot = 0xFFFFFFFF; + lootitem->auto_loot = -1; client->Message_StringID(CC_Red, LOOT_NOT_ALLOWED, inst->GetItem()->Name); client->QueuePacket(app); SendEndLootErrorPacket(client); // shouldn't need this, but it will work for now @@ -1199,7 +1199,7 @@ void Corpse::LootItem(Client *client, const EQApplicationPacket *app) } /* First add it to the looter - this will do the bag contents too */ - if (lootitem->auto_loot) { + if (lootitem->auto_loot > 0) { if (!client->AutoPutLootInInventory(*inst, true, true, bag_item_data)) client->PutLootInInventory(EQEmu::inventory::slotCursor, *inst, bag_item_data); } else {