mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-21 22:41:29 +00:00
Change LottingItem_Struct::auto_loot to signed
This commit is contained in:
parent
019586abbd
commit
e680a0f704
@ -1643,7 +1643,7 @@ struct LootingItem_Struct {
|
|||||||
/*002*/ uint32 looter;
|
/*002*/ uint32 looter;
|
||||||
/*004*/ uint16 slot_id;
|
/*004*/ uint16 slot_id;
|
||||||
/*006*/ uint8 unknown3[2];
|
/*006*/ uint8 unknown3[2];
|
||||||
/*008*/ uint32 auto_loot;
|
/*008*/ int32 auto_loot;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GuildManageStatus_Struct{
|
struct GuildManageStatus_Struct{
|
||||||
|
|||||||
@ -2021,7 +2021,7 @@ struct LootingItem_Struct {
|
|||||||
/*004*/ uint32 looter;
|
/*004*/ uint32 looter;
|
||||||
/*008*/ uint16 slot_id;
|
/*008*/ uint16 slot_id;
|
||||||
/*010*/ uint16 unknown10;
|
/*010*/ uint16 unknown10;
|
||||||
/*012*/ uint32 auto_loot;
|
/*012*/ int32 auto_loot;
|
||||||
/*016*/ uint32 unknown16;
|
/*016*/ uint32 unknown16;
|
||||||
/*020*/
|
/*020*/
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1666,7 +1666,7 @@ struct LootingItem_Struct {
|
|||||||
/*000*/ uint32 lootee;
|
/*000*/ uint32 lootee;
|
||||||
/*004*/ uint32 looter;
|
/*004*/ uint32 looter;
|
||||||
/*008*/ uint32 slot_id;
|
/*008*/ uint32 slot_id;
|
||||||
/*012*/ uint32 auto_loot;
|
/*012*/ int32 auto_loot;
|
||||||
/*016*/ uint32 unknown16;
|
/*016*/ uint32 unknown16;
|
||||||
/*020*/
|
/*020*/
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1648,7 +1648,7 @@ struct LootingItem_Struct {
|
|||||||
/*002*/ uint32 looter;
|
/*002*/ uint32 looter;
|
||||||
/*004*/ uint16 slot_id;
|
/*004*/ uint16 slot_id;
|
||||||
/*006*/ uint8 unknown3[2];
|
/*006*/ uint8 unknown3[2];
|
||||||
/*008*/ uint32 auto_loot;
|
/*008*/ int32 auto_loot;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GuildManageStatus_Struct{
|
struct GuildManageStatus_Struct{
|
||||||
|
|||||||
@ -1420,7 +1420,7 @@ struct LootingItem_Struct {
|
|||||||
/*002*/ uint32 looter;
|
/*002*/ uint32 looter;
|
||||||
/*004*/ uint16 slot_id;
|
/*004*/ uint16 slot_id;
|
||||||
/*006*/ uint8 unknown3[2];
|
/*006*/ uint8 unknown3[2];
|
||||||
/*008*/ uint32 auto_loot;
|
/*008*/ int32 auto_loot;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GuildManageStatus_Struct{
|
struct GuildManageStatus_Struct{
|
||||||
|
|||||||
@ -1707,7 +1707,7 @@ struct LootingItem_Struct {
|
|||||||
/*000*/ uint32 lootee;
|
/*000*/ uint32 lootee;
|
||||||
/*004*/ uint32 looter;
|
/*004*/ uint32 looter;
|
||||||
/*008*/ uint32 slot_id;
|
/*008*/ uint32 slot_id;
|
||||||
/*012*/ uint32 auto_loot;
|
/*012*/ int32 auto_loot;
|
||||||
/*016*/ uint32 unknown16;
|
/*016*/ uint32 unknown16;
|
||||||
/*020*/
|
/*020*/
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1174,7 +1174,7 @@ void Corpse::LootItem(Client *client, const EQApplicationPacket *app)
|
|||||||
args.push_back(inst);
|
args.push_back(inst);
|
||||||
args.push_back(this);
|
args.push_back(this);
|
||||||
if (parse->EventPlayer(EVENT_LOOT, client, buf, 0, &args) != 0) {
|
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->Message_StringID(CC_Red, LOOT_NOT_ALLOWED, inst->GetItem()->Name);
|
||||||
client->QueuePacket(app);
|
client->QueuePacket(app);
|
||||||
SendEndLootErrorPacket(client); // shouldn't need this, but it will work for now
|
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 */
|
/* 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))
|
if (!client->AutoPutLootInInventory(*inst, true, true, bag_item_data))
|
||||||
client->PutLootInInventory(EQEmu::inventory::slotCursor, *inst, bag_item_data);
|
client->PutLootInInventory(EQEmu::inventory::slotCursor, *inst, bag_item_data);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user