From 04ea1de63332e432bca079a5ac298294232fa737 Mon Sep 17 00:00:00 2001 From: James Huston Date: Fri, 22 Dec 2023 09:54:25 -0500 Subject: [PATCH] Cleaned up code a bit to make it easier to pull all bot data on client onenable --- src/AraxiaNpcBotCommands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AraxiaNpcBotCommands.cpp b/src/AraxiaNpcBotCommands.cpp index f777122..5c8296f 100644 --- a/src/AraxiaNpcBotCommands.cpp +++ b/src/AraxiaNpcBotCommands.cpp @@ -139,7 +139,7 @@ class AraxiaNpcBotCommands : public CommandScript BotMgr* playerBotMgr = player->GetBotMgr(); BotMap* playerBots = playerBotMgr->GetBotMap(); - std::string output = "AraxiaNpcBot:bot.list"; + std::string output = "AraxiaNpcBot.bots.list"; for (auto const& bot : *playerBots) { output += "#" + bot.second->GetName() @@ -154,7 +154,7 @@ class AraxiaNpcBotCommands : public CommandScript static std::string GetInventoryOutput(uint32 botEntry, std::map items) { - std::string output = "AraxiaNpcBot:inv.get:" + std::to_string(botEntry) + "#"; + std::string output = "AraxiaNpcBot.inv.get." + std::to_string(botEntry); // loop over all of the keys in items for (auto const& item : items) @@ -164,7 +164,7 @@ class AraxiaNpcBotCommands : public CommandScript // { // continue; // } - output += item.first + ":" + std::to_string(item.second) + "#"; + output += "#" + item.first + ":" + std::to_string(item.second); } // output += "mainhand:" + std::to_string(items["mainhand"]) + "#";