mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Modify command s to prevent the accidental sale of all items
This commit is contained in:
@@ -74,13 +74,18 @@ bool SellAction::Execute(Event event)
|
||||
return true;
|
||||
}
|
||||
|
||||
std::vector<Item*> items = parseItems(text, ITERATE_ITEMS_IN_BAGS);
|
||||
for (Item* item : items)
|
||||
if (text == "all")
|
||||
{
|
||||
Sell(item);
|
||||
std::vector<Item *> items = parseItems(text, ITERATE_ITEMS_IN_BAGS);
|
||||
for (Item *item : items)
|
||||
{
|
||||
Sell(item);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
botAI->TellError("Usage: s gray/*/vendor/all");
|
||||
return false;
|
||||
}
|
||||
|
||||
void SellAction::Sell(FindItemVisitor* visitor)
|
||||
|
||||
Reference in New Issue
Block a user