mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 17:07:17 +00:00
[Quest API] Export $item to EVENT_DISCOVER_ITEM in Perl (#2863)
# Notes - Exports `$item` to `EVENT_DISCOVER_ITEM`.
This commit is contained in:
1 parent
a3bb7e7741
commit
5a0a1b1ffd
2 files changed
+20
-11
No files matched your search
@@ -1792,6 +1792,9 @@ void PerlembParser::ExportEventVariables(
|
||||
|
||||
case EVENT_DISCOVER_ITEM: {
|
||||
ExportVar(package_name.c_str(), "itemid", extradata);
|
||||
if (extra_pointers && extra_pointers->size() == 1) {
|
||||
ExportVar(package_name.c_str(), "item", "QuestItem", std::any_cast<EQ::ItemInstance*>(extra_pointers->at(0)));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user