mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user