mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Quest API] Add getgendername(gender_id) to Perl/Lua. (#1405)
- Add quest::getgendername(gender_id) to Perl. - Add eq.get_gender_name(gender_id) to Lua. Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
@@ -2459,6 +2459,9 @@ std::string lua_get_clean_npc_name_by_id(uint32 npc_id) {
|
||||
return quest_manager.getcleannpcnamebyid(npc_id);
|
||||
}
|
||||
|
||||
std::string lua_get_gender_name(uint32 gender_id) {
|
||||
return quest_manager.getgendername(gender_id);
|
||||
}
|
||||
|
||||
std::string lua_get_deity_name(uint32 deity_id) {
|
||||
return quest_manager.getdeityname(deity_id);
|
||||
@@ -3037,6 +3040,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("get_gender_name", &lua_get_gender_name),
|
||||
luabind::def("get_deity_name", &lua_get_deity_name),
|
||||
luabind::def("get_inventory_slot_name", &lua_get_inventory_slot_name),
|
||||
luabind::def("rename", &lua_rename),
|
||||
|
||||
Reference in New Issue
Block a user