mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
drink command
This commit is contained in:
@@ -124,4 +124,5 @@ ChatCommandHandlerStrategy::ChatCommandHandlerStrategy(PlayerbotAI* botAI) : Pas
|
|||||||
supported.push_back("guild remove");
|
supported.push_back("guild remove");
|
||||||
supported.push_back("guild leave");
|
supported.push_back("guild leave");
|
||||||
supported.push_back("rtsc");
|
supported.push_back("rtsc");
|
||||||
|
supported.push_back("drink");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ class ChatTriggerContext : public NamedObjectContext<Trigger>
|
|||||||
creators["guild remove"] = &ChatTriggerContext::guild_remove;
|
creators["guild remove"] = &ChatTriggerContext::guild_remove;
|
||||||
creators["guild leave"] = &ChatTriggerContext::guild_leave;
|
creators["guild leave"] = &ChatTriggerContext::guild_leave;
|
||||||
creators["rtsc"] = &ChatTriggerContext::rtsc;
|
creators["rtsc"] = &ChatTriggerContext::rtsc;
|
||||||
|
creators["drink"] = &ChatTriggerContext::drink;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -202,6 +203,7 @@ class ChatTriggerContext : public NamedObjectContext<Trigger>
|
|||||||
static Trigger* guild_remove(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "guild remove"); }
|
static Trigger* guild_remove(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "guild remove"); }
|
||||||
static Trigger* guild_leave(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "guild leave"); }
|
static Trigger* guild_leave(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "guild leave"); }
|
||||||
static Trigger* rtsc(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "rtsc"); }
|
static Trigger* rtsc(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "rtsc"); }
|
||||||
|
static Trigger* drink(PlayerbotAI* ai) { return new ChatCommandTrigger(ai, "drink"); }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user