Add /w botname "glyphs" and "glyph equip" commands

This commit is contained in:
Wishmaster117
2025-07-26 00:15:46 +02:00
parent feda619066
commit 55a37c48eb
11 changed files with 366 additions and 0 deletions

View File

@@ -79,6 +79,8 @@
#include "UnlockItemAction.h"
#include "UnlockTradedItemAction.h"
#include "PetAction.h"
#include "TellGlyphsAction.h"
#include "EquipGlyphsAction.h"
class ChatActionContext : public NamedObjectContext<Action>
{
@@ -189,6 +191,8 @@ public:
creators["calc"] = &ChatActionContext::calc;
creators["wipe"] = &ChatActionContext::wipe;
creators["pet"] = &ChatActionContext::pet;
creators["glyphs"] = &ChatActionContext::glyphs; // Added for custom Glyphs
creators["glyph equip"] = &ChatActionContext::glyph_equip; // Added for custom Glyphs
}
private:
@@ -296,6 +300,8 @@ private:
static Action* calc(PlayerbotAI* ai) { return new TellCalculateItemAction(ai); }
static Action* wipe(PlayerbotAI* ai) { return new WipeAction(ai); }
static Action* pet(PlayerbotAI* botAI) { return new PetAction(botAI); }
static Action* glyphs(PlayerbotAI* botAI) { return new TellGlyphsAction(botAI); } // Added for custom Glyphs
static Action* glyph_equip(PlayerbotAI* ai) { return new EquipGlyphsAction(ai); } // Added for custom Glyphs
};
#endif