[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:
Alex King
2023-11-07 18:12:39 -05:00
committed by GitHub
parent 6094ec9c7b
commit 853739b538
9 changed files with 69 additions and 5 deletions
+6
View File
@@ -26,6 +26,11 @@ const char* Perl_QuestItemData_GetLore(EQ::ItemData* self)
return self->Lore;
}
const char* Perl_QuestItem_GetComment(EQ::ItemData* self)
{
return self->Comment;
}
const char* Perl_QuestItemData_GetIDFile(EQ::ItemData* self)
{
return self->IDFile;
@@ -949,6 +954,7 @@ void perl_register_questitem_data()
package.add("GetClickType", &Perl_QuestItemData_GetClickType);
package.add("GetColor", &Perl_QuestItemData_GetColor);
package.add("GetCombatEffects", &Perl_QuestItemData_GetCombatEffects);
package.add("GetComment", &Perl_QuestItem_GetComment);
package.add("GetCorruption", &Perl_QuestItemData_GetCorruption);
package.add("GetDR", &Perl_QuestItemData_GetDR);
package.add("GetDSMitigation", &Perl_QuestItemData_GetDSMitigation);