Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int32_t Functions::getFirstInvADD(const uint16_t client, const SlotType slot, const uint16_t itemId, const uint16_t ef1, const uint16_t efv1)
- {
- auto mob = NativeFunctions::getMobFromIndex(client);
- if (slot == SlotType::Inventory)
- {
- short MAXINVENTORY = 30;
- if (mob->Mob.Inventory[60].Index == 3467) MAXINVENTORY += 15;
- if (mob->Mob.Inventory[61].Index == 3467) MAXINVENTORY += 15;
- for (auto i = 0; i < MAXINVENTORY; i++)
- {
- if (mob->Mob.Inventory[i].Index == itemId)
- return i;
- if (mob->Mob.Inventory[itemId].EF1 == ef1)
- return i;
- if (mob->Mob.Inventory[itemId].EFV1 == efv1)
- return i;
- }
- }
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement