mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 12:57:16 +00:00
Add getitemname(item_id) to Perl/Lua.
This commit is contained in:
1 parent
3a7908b1de
commit
51b31b5e53
4 files changed
+33
No files matched your search
@@ -807,6 +807,10 @@ std::string lua_item_link(int item_id) {
|
||||
return quest_manager.varlink(text, item_id);
|
||||
}
|
||||
|
||||
std::string lua_get_item_name(uint32 item_id) {
|
||||
return quest_manager.getitemname(item_id);
|
||||
}
|
||||
|
||||
std::string lua_say_link(const char *phrase, bool silent, const char *link_name) {
|
||||
char text[256] = { 0 };
|
||||
strncpy(text, phrase, 255);
|
||||
@@ -1734,6 +1738,7 @@ luabind::scope lua_register_general() {
|
||||
luabind::def("merchant_set_item", (void(*)(uint32,uint32,uint32))&lua_merchant_set_item),
|
||||
luabind::def("merchant_count_item", &lua_merchant_count_item),
|
||||
luabind::def("item_link", &lua_item_link),
|
||||
luabind::def("get_item_name", (std::string(*)(uint32))&lua_get_item_name),
|
||||
luabind::def("say_link", (std::string(*)(const char*,bool,const char*))&lua_say_link),
|
||||
luabind::def("say_link", (std::string(*)(const char*,bool))&lua_say_link),
|
||||
luabind::def("say_link", (std::string(*)(const char*))&lua_say_link),
|
||||
|
||||
Reference in new issue
Block a user