diff --git a/zone/lua_bot.cpp b/zone/lua_bot.cpp index 8003e1388..323976fe0 100644 --- a/zone/lua_bot.cpp +++ b/zone/lua_bot.cpp @@ -659,6 +659,11 @@ void Lua_Bot::DeleteBot() { self->DeleteBot(); } +void Lua_Bot::BotGroupSay(const char* message) { + Lua_Safe_Call_Void(); + self->BotGroupSay(self, message); +} + luabind::scope lua_register_bot() { return luabind::class_("Bot") .def(luabind::constructor<>()) @@ -688,6 +693,7 @@ luabind::scope lua_register_bot() { .def("ApplySpellRaid", (void(Lua_Bot::*)(int,int,int,bool))&Lua_Bot::ApplySpellRaid) .def("ApplySpellRaid", (void(Lua_Bot::*)(int,int,int,bool,bool))&Lua_Bot::ApplySpellRaid) .def("ApplySpellRaid", (void(Lua_Bot::*)(int,int,int,bool,bool))&Lua_Bot::ApplySpellRaid) + .def("BotGroupSay", (void(Lua_Bot::*)(const char*)) & Lua_Bot::BotGroupSay) .def("Camp", (void(Lua_Bot::*)(void))&Lua_Bot::Camp) .def("Camp", (void(Lua_Bot::*)(bool))&Lua_Bot::Camp) .def("ClearDisciplineReuseTimer", (void(Lua_Bot::*)())&Lua_Bot::ClearDisciplineReuseTimer) diff --git a/zone/lua_bot.h b/zone/lua_bot.h index 7a038b7dc..1a5fdefd9 100644 --- a/zone/lua_bot.h +++ b/zone/lua_bot.h @@ -46,6 +46,7 @@ public: Lua_Mob GetOwner(); int16 HasBotItem(uint32 item_id); void OwnerMessage(std::string message); + void BotGroupSay(const char* message); bool ReloadBotDataBuckets(); bool ReloadBotOwnerDataBuckets(); bool ReloadBotSpells(); diff --git a/zone/perl_bot.cpp b/zone/perl_bot.cpp index f24134c6a..2bce3f647 100644 --- a/zone/perl_bot.cpp +++ b/zone/perl_bot.cpp @@ -615,6 +615,11 @@ void Perl_Bot_DeleteBot(Bot* self) // @categories Script Utility self->DeleteBot(); } +void Perl_Bot_BotGroupSay(Bot* self, const char* message) // @categories Script Utility +{ + self->BotGroupSay(self, message); +} + void perl_register_bot() { perl::interpreter state(PERL_GET_THX); @@ -644,6 +649,7 @@ void perl_register_bot() package.add("ApplySpellRaid", (void(*)(Bot*, int, int, int))&Perl_Bot_ApplySpellRaid); package.add("ApplySpellRaid", (void(*)(Bot*, int, int, int, bool))&Perl_Bot_ApplySpellRaid); package.add("ApplySpellRaid", (void(*)(Bot*, int, int, int, bool, bool))&Perl_Bot_ApplySpellRaid); + package.add("BotGroupSay", &Perl_Bot_BotGroupSay); package.add("Camp", (void(*)(Bot*))&Perl_Bot_Camp); package.add("Camp", (void(*)(Bot*, bool))&Perl_Bot_Camp); package.add("ClearDisciplineReuseTimer", (void(*)(Bot*))&Perl_Bot_ClearDisciplineReuseTimer);