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