mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 13:27:15 +00:00
Add BotGroupSay method
This commit is contained in:
@@ -659,6 +659,11 @@ void Lua_Bot::DeleteBot() {
|
|||||||
self->DeleteBot();
|
self->DeleteBot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Lua_Bot::BotGroupSay(const char* message) {
|
||||||
|
Lua_Safe_Call_Void();
|
||||||
|
self->BotGroupSay(self, message);
|
||||||
|
}
|
||||||
|
|
||||||
luabind::scope lua_register_bot() {
|
luabind::scope lua_register_bot() {
|
||||||
return luabind::class_<Lua_Bot, Lua_Mob>("Bot")
|
return luabind::class_<Lua_Bot, Lua_Mob>("Bot")
|
||||||
.def(luabind::constructor<>())
|
.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))&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("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::*)(void))&Lua_Bot::Camp)
|
||||||
.def("Camp", (void(Lua_Bot::*)(bool))&Lua_Bot::Camp)
|
.def("Camp", (void(Lua_Bot::*)(bool))&Lua_Bot::Camp)
|
||||||
.def("ClearDisciplineReuseTimer", (void(Lua_Bot::*)())&Lua_Bot::ClearDisciplineReuseTimer)
|
.def("ClearDisciplineReuseTimer", (void(Lua_Bot::*)())&Lua_Bot::ClearDisciplineReuseTimer)
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ public:
|
|||||||
Lua_Mob GetOwner();
|
Lua_Mob GetOwner();
|
||||||
int16 HasBotItem(uint32 item_id);
|
int16 HasBotItem(uint32 item_id);
|
||||||
void OwnerMessage(std::string message);
|
void OwnerMessage(std::string message);
|
||||||
|
void BotGroupSay(const char* message);
|
||||||
bool ReloadBotDataBuckets();
|
bool ReloadBotDataBuckets();
|
||||||
bool ReloadBotOwnerDataBuckets();
|
bool ReloadBotOwnerDataBuckets();
|
||||||
bool ReloadBotSpells();
|
bool ReloadBotSpells();
|
||||||
|
|||||||
@@ -615,6 +615,11 @@ void Perl_Bot_DeleteBot(Bot* self) // @categories Script Utility
|
|||||||
self->DeleteBot();
|
self->DeleteBot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Perl_Bot_BotGroupSay(Bot* self, const char* message) // @categories Script Utility
|
||||||
|
{
|
||||||
|
self->BotGroupSay(self, message);
|
||||||
|
}
|
||||||
|
|
||||||
void perl_register_bot()
|
void perl_register_bot()
|
||||||
{
|
{
|
||||||
perl::interpreter state(PERL_GET_THX);
|
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))&Perl_Bot_ApplySpellRaid);
|
||||||
package.add("ApplySpellRaid", (void(*)(Bot*, int, int, int, bool))&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("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*))&Perl_Bot_Camp);
|
||||||
package.add("Camp", (void(*)(Bot*, bool))&Perl_Bot_Camp);
|
package.add("Camp", (void(*)(Bot*, bool))&Perl_Bot_Camp);
|
||||||
package.add("ClearDisciplineReuseTimer", (void(*)(Bot*))&Perl_Bot_ClearDisciplineReuseTimer);
|
package.add("ClearDisciplineReuseTimer", (void(*)(Bot*))&Perl_Bot_ClearDisciplineReuseTimer);
|
||||||
|
|||||||
Reference in New Issue
Block a user