From 757fc857cd19d9006259721ede80a8999edc0e1b Mon Sep 17 00:00:00 2001 From: Kelsi Date: Mon, 23 Mar 2026 01:28:28 -0700 Subject: [PATCH] feat: show 'This Item Begins a Quest' on quest-starting item tooltips Items with a startQuestId now display "This Item Begins a Quest" in gold text at the bottom of the tooltip, matching WoW's behavior. Helps players identify quest-starting drops in their inventory. Passes startsQuest flag through _GetItemTooltipData from the startQuestId field in ItemQueryResponseData. --- src/addons/lua_engine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/addons/lua_engine.cpp b/src/addons/lua_engine.cpp index d3bf713a..0eba700a 100644 --- a/src/addons/lua_engine.cpp +++ b/src/addons/lua_engine.cpp @@ -2252,6 +2252,11 @@ static int lua_GetItemTooltipData(lua_State* L) { lua_pushnumber(L, info->itemSetId); lua_setfield(L, -2, "itemSetId"); } + // Quest-starting item + if (info->startQuestId != 0) { + lua_pushboolean(L, 1); + lua_setfield(L, -2, "startsQuest"); + } return 1; } @@ -6277,6 +6282,7 @@ void LuaEngine::registerCoreAPI() { " end\n" " -- Flavor text\n" " if data.description then self:AddLine('\"'..data.description..'\"', 1, 0.82, 0) end\n" + " if data.startsQuest then self:AddLine('This Item Begins a Quest', 1, 0.82, 0) end\n" " end\n" " -- Sell price from GetItemInfo\n" " if sellPrice and sellPrice > 0 then\n"