mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Support target command
This commit is contained in:
@@ -142,6 +142,7 @@ class ChatActionContext : public NamedObjectContext<Action>
|
|||||||
creators["save mana"] = &ChatActionContext::save_mana;
|
creators["save mana"] = &ChatActionContext::save_mana;
|
||||||
creators["max dps chat shortcut"] = &ChatActionContext::max_dps_chat_shortcut;
|
creators["max dps chat shortcut"] = &ChatActionContext::max_dps_chat_shortcut;
|
||||||
creators["tell attackers"] = &ChatActionContext::tell_attackers;
|
creators["tell attackers"] = &ChatActionContext::tell_attackers;
|
||||||
|
creators["tell target"] = &ChatActionContext::tell_target;
|
||||||
creators["formation"] = &ChatActionContext::formation;
|
creators["formation"] = &ChatActionContext::formation;
|
||||||
creators["stance"] = &ChatActionContext::stance;
|
creators["stance"] = &ChatActionContext::stance;
|
||||||
creators["sendmail"] = &ChatActionContext::sendmail;
|
creators["sendmail"] = &ChatActionContext::sendmail;
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ void ChatCommandHandlerStrategy::InitTriggers(std::vector<TriggerNode*>& trigger
|
|||||||
triggers.push_back(new TriggerNode("warning", NextAction::array(0, new NextAction("runaway chat shortcut", relevance), nullptr)));
|
triggers.push_back(new TriggerNode("warning", NextAction::array(0, new NextAction("runaway chat shortcut", relevance), nullptr)));
|
||||||
triggers.push_back(new TriggerNode("max dps", NextAction::array(0, new NextAction("max dps chat shortcut", relevance), nullptr)));
|
triggers.push_back(new TriggerNode("max dps", NextAction::array(0, new NextAction("max dps chat shortcut", relevance), nullptr)));
|
||||||
triggers.push_back(new TriggerNode("attackers", NextAction::array(0, new NextAction("tell attackers", relevance), nullptr)));
|
triggers.push_back(new TriggerNode("attackers", NextAction::array(0, new NextAction("tell attackers", relevance), nullptr)));
|
||||||
|
triggers.push_back(new TriggerNode("target", NextAction::array(0, new NextAction("tell target", relevance), nullptr)));
|
||||||
triggers.push_back(new TriggerNode("ready", NextAction::array(0, new NextAction("ready check", relevance), nullptr)));
|
triggers.push_back(new TriggerNode("ready", NextAction::array(0, new NextAction("ready check", relevance), nullptr)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ class ChatTriggerContext : public NamedObjectContext<Trigger>
|
|||||||
creators["save mana"] = &ChatTriggerContext::save_mana;
|
creators["save mana"] = &ChatTriggerContext::save_mana;
|
||||||
creators["max dps"] = &ChatTriggerContext::max_dps;
|
creators["max dps"] = &ChatTriggerContext::max_dps;
|
||||||
creators["attackers"] = &ChatTriggerContext::attackers;
|
creators["attackers"] = &ChatTriggerContext::attackers;
|
||||||
|
creators["target"] = &ChatTriggerContext::target;
|
||||||
creators["formation"] = &ChatTriggerContext::formation;
|
creators["formation"] = &ChatTriggerContext::formation;
|
||||||
creators["stance"] = &ChatTriggerContext::stance;
|
creators["stance"] = &ChatTriggerContext::stance;
|
||||||
creators["sendmail"] = &ChatTriggerContext::sendmail;
|
creators["sendmail"] = &ChatTriggerContext::sendmail;
|
||||||
@@ -128,6 +129,7 @@ class ChatTriggerContext : public NamedObjectContext<Trigger>
|
|||||||
static Trigger* formation(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "formation"); }
|
static Trigger* formation(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "formation"); }
|
||||||
static Trigger* stance(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "stance"); }
|
static Trigger* stance(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "stance"); }
|
||||||
static Trigger* attackers(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "attackers"); }
|
static Trigger* attackers(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "attackers"); }
|
||||||
|
static Trigger* target(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "target"); }
|
||||||
static Trigger* max_dps(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "max dps"); }
|
static Trigger* max_dps(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "max dps"); }
|
||||||
static Trigger* save_mana(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "save mana"); }
|
static Trigger* save_mana(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "save mana"); }
|
||||||
static Trigger* who(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "who"); }
|
static Trigger* who(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "who"); }
|
||||||
|
|||||||
Reference in New Issue
Block a user