diff --git a/src/strategy/triggers/ChatTriggerContext.h b/src/strategy/triggers/ChatTriggerContext.h index bb05b588..af20f3a9 100644 --- a/src/strategy/triggers/ChatTriggerContext.h +++ b/src/strategy/triggers/ChatTriggerContext.h @@ -16,6 +16,7 @@ class ChatTriggerContext : public NamedObjectContext public: ChatTriggerContext() { + creators["open items"] = &ChatTriggerContext::open_items; creators["quests"] = &ChatTriggerContext::quests; creators["stats"] = &ChatTriggerContext::stats; creators["leave"] = &ChatTriggerContext::leave; @@ -128,6 +129,7 @@ public: } private: + static Trigger* open_items(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "open items"); } static Trigger* ra(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "ra"); } static Trigger* range(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "range"); } static Trigger* flag(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "flag"); }