[Quest API] Add getinventoryslotname(slot_id) to Perl/Lua. (#1406)

- Add quest::getinventoryslotname(slot_id) to Perl.
- Add eq.get_inventory_slot_name(slot_id) to Lua.

Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
Alex
2021-06-16 11:42:06 -04:00
committed by GitHub
parent f1d1731fc7
commit ed6e53be54
4 changed files with 28 additions and 0 deletions
+7
View File
@@ -2459,6 +2459,11 @@ std::string lua_get_clean_npc_name_by_id(uint32 npc_id) {
return quest_manager.getcleannpcnamebyid(npc_id);
}
std::string lua_get_inventory_slot_name(int16 slot_id) {
return quest_manager.getinventoryslotname(slot_id);
}
void lua_rename(std::string name) {
quest_manager.rename(name);
}
@@ -3028,7 +3033,9 @@ 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_inventory_slot_name", &lua_get_inventory_slot_name),
luabind::def("rename", &lua_rename),
/**
* Expansions
*/