mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Update ChatTriggerContext.h
Added OpenItem chat command handling
This commit is contained in:
@@ -16,6 +16,7 @@ class ChatTriggerContext : public NamedObjectContext<Trigger>
|
||||
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"); }
|
||||
|
||||
Reference in New Issue
Block a user