mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-18 12:28:26 +00:00
Add message(color, message) and whisper(message) to Perl/Lua.
- Add quest::message(color, message) to Perl. - Add eq.message(color, message) to Lua. - Add quest::whisper(message) to Perl. - Add eq.whisper(message) to Lua. These methods allow you to use implied client references. The whisper method also converts a widely used plugin in Perl to a Perl and Lua method that works on both Clients and NPCs.
This commit is contained in:
@@ -768,6 +768,14 @@ void lua_world_emote(int type, const char *str) {
|
||||
quest_manager.we(type, str);
|
||||
}
|
||||
|
||||
void lua_message(int color, const char *message) {
|
||||
quest_manager.message(color, message);
|
||||
}
|
||||
|
||||
void lua_whisper(const char *message) {
|
||||
quest_manager.whisper(message);
|
||||
}
|
||||
|
||||
int lua_get_level(int type) {
|
||||
return quest_manager.getlevel(type);
|
||||
}
|
||||
@@ -2599,6 +2607,8 @@ luabind::scope lua_register_general() {
|
||||
luabind::def("clear_spawn_timers", &lua_clear_spawn_timers),
|
||||
luabind::def("zone_emote", &lua_zone_emote),
|
||||
luabind::def("world_emote", &lua_world_emote),
|
||||
luabind::def("message", &lua_message),
|
||||
luabind::def("whisper", &lua_whisper),
|
||||
luabind::def("get_level", &lua_get_level),
|
||||
luabind::def("create_ground_object", (void(*)(uint32,float,float,float,float))&lua_create_ground_object),
|
||||
luabind::def("create_ground_object", (void(*)(uint32,float,float,float,float,uint32))&lua_create_ground_object),
|
||||
|
||||
Reference in New Issue
Block a user