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

@@ -160,6 +160,7 @@ public:
creators["my attacker count"] = &ValueContext::my_attacker_count;
creators["has aggro"] = &ValueContext::has_aggro;
creators["mounted"] = &ValueContext::mounted;
creators["custom_glyphs"] = &ValueContext::custom_glyphs; // Added for custom glyphs
creators["can loot"] = &ValueContext::can_loot;
creators["loot target"] = &ValueContext::loot_target;
@@ -554,6 +555,13 @@ private:
static UntypedValue* last_flee_angle(PlayerbotAI* ai) { return new LastFleeAngleValue(ai); }
static UntypedValue* last_flee_timestamp(PlayerbotAI* ai) { return new LastFleeTimestampValue(ai); }
static UntypedValue* recently_flee_info(PlayerbotAI* ai) { return new RecentlyFleeInfo(ai); }
// -------------------------------------------------------
// Flag for cutom glyphs : true when /w bot glyph equip …
// -------------------------------------------------------
static UntypedValue* custom_glyphs(PlayerbotAI* ai)
{
return new ManualSetValue<bool>(ai, false, "custom_glyphs");
}
};
#endif