mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Quest API] Add rename(name) to Perl/Lua. (#1414)
- Add quest::rename(name) to Perl. - Add eq.rename(name) to Lua.
This commit is contained in:
@@ -2459,6 +2459,10 @@ std::string lua_get_clean_npc_name_by_id(uint32 npc_id) {
|
||||
return quest_manager.getcleannpcnamebyid(npc_id);
|
||||
}
|
||||
|
||||
void lua_rename(std::string name) {
|
||||
quest_manager.rename(name);
|
||||
}
|
||||
|
||||
#define LuaCreateNPCParse(name, c_type, default_value) do { \
|
||||
cur = table[#name]; \
|
||||
if(luabind::type(cur) != LUA_TNIL) { \
|
||||
@@ -3024,6 +3028,7 @@ luabind::scope lua_register_general() {
|
||||
luabind::def("cross_zone_add_ldon_loss_by_expedition_id", &lua_cross_zone_add_ldon_loss_by_expedition_id),
|
||||
luabind::def("cross_zone_add_ldon_points_by_expedition_id", &lua_cross_zone_add_ldon_points_by_expedition_id),
|
||||
luabind::def("cross_zone_add_ldon_win_by_expedition_id", &lua_cross_zone_add_ldon_win_by_expedition_id),
|
||||
luabind::def("rename", &lua_rename),
|
||||
/**
|
||||
* Expansions
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user