mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
[Feature] Add Comment to Item Data/Quest API (#3669)
* [Feature] Add Comment to Item Data/Quest API # Perl - Add `quest::getitemcomment(item_id)`. - Add `quest::getitemlore(item_id)`. - Add `$questitemdata->GetComment()`. # Lua - Add `eq.get_item_comment(item_id)`. - Add `eq.get_item_lore(item_id)`. - Add `item:Comment()`. # Notes - Added the ability for operators to pull these fields from item data without a database hit. - Fixed a bug in `embparser_api.cpp` where `GetZoneGravity` was connected to the wrong methods. * Update embparser_api.cpp
This commit is contained in:
@@ -30,6 +30,11 @@ const char *Lua_Item::GetLore() {
|
||||
return self->Lore;
|
||||
}
|
||||
|
||||
const char *Lua_Item::GetComment() {
|
||||
Lua_Safe_Call_String();
|
||||
return self->Comment;
|
||||
}
|
||||
|
||||
const char *Lua_Item::GetIDFile() {
|
||||
Lua_Safe_Call_String();
|
||||
return self->IDFile;
|
||||
@@ -957,6 +962,7 @@ luabind::scope lua_register_item() {
|
||||
.def("Click_Type", &Lua_Item::GetClick_Type)
|
||||
.def("Color", &Lua_Item::GetColor)
|
||||
.def("CombatEffects", &Lua_Item::GetCombatEffects)
|
||||
.def("Comment", &Lua_Item::GetComment)
|
||||
.def("DR", &Lua_Item::GetDR)
|
||||
.def("DSMitigation", &Lua_Item::GetDSMitigation)
|
||||
.def("Damage", &Lua_Item::GetDamage)
|
||||
|
||||
Reference in New Issue
Block a user