mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Command] Fix sell item command
This commit is contained in:
@@ -74,7 +74,7 @@ bool SellAction::Execute(Event event)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (text == "all")
|
||||
if (text != "")
|
||||
{
|
||||
std::vector<Item *> items = parseItems(text, ITERATE_ITEMS_IN_BAGS);
|
||||
for (Item *item : items)
|
||||
@@ -84,7 +84,7 @@ bool SellAction::Execute(Event event)
|
||||
return true;
|
||||
}
|
||||
|
||||
botAI->TellError("Usage: s gray/*/vendor/all");
|
||||
botAI->TellError("Usage: s gray/*/vendor/[item link]");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user