mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 17:48:20 +00:00
Correct slot ranges for inventorygive
This commit is contained in:
@@ -48,15 +48,15 @@ void bot_command_inventory_give(Client* c, const Seperator* sep)
|
|||||||
if (sep->IsNumber(slot_arg)) {
|
if (sep->IsNumber(slot_arg)) {
|
||||||
chosen_slot = atoi(sep->arg[slot_arg]);
|
chosen_slot = atoi(sep->arg[slot_arg]);
|
||||||
|
|
||||||
if (!byname) {
|
if (!EQ::ValueWithin(chosen_slot, EQ::invslot::EQUIPMENT_BEGIN, EQ::invslot::EQUIPMENT_END)) {
|
||||||
++ab_arg;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!EQ::ValueWithin(chosen_slot, EQ::invslot::POSSESSIONS_BEGIN, EQ::invslot::POSSESSIONS_END)) {
|
|
||||||
c->Message(Chat::Yellow, "Please enter a valid inventory slot.");
|
c->Message(Chat::Yellow, "Please enter a valid inventory slot.");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!byname) {
|
||||||
|
++ab_arg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<Bot*> sbl;
|
std::vector<Bot*> sbl;
|
||||||
|
|||||||
Reference in New Issue
Block a user