[DiscordArchive] processed spell description?
[DiscordArchive] processed spell description?
Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-06-05T16:42:14.863000+00:00
Original source
idk what code handles that. i havent messed with it at all so its stock azerothcore as far as i know
Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-06-05T16:43:12.827000+00:00
Original source
https://github.com/azerothcore/azerothcore-wotlk which is just here
[Embed: GitHub - azerothcore/azerothcore-wotlk: Complete Open Source and Mo...]
Complete Open Source and Modular solution for MMO. Contribute to azerothcore/azerothcore-wotlk development by creating an account on GitHub.
https://github.com/azerothcore/azerothcore-wotlk
Archived author: Fred • Posted: 2024-06-05T16:46:34.072000+00:00
Original source
Yeah I am trying to get this data client-side only
Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-06-05T16:49:14.356000+00:00
Original source
i havent touched my client at all, so it would jsut be a stock 3.3.5a client
Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-06-05T16:49:29.862000+00:00
Original source
wait arent tooltips handed to the client from server?
Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-06-05T16:49:58.169000+00:00
Original source
thats why atlas loot doesnt have item tooltips immediatly and you ahve to push the query server button
Archived author: Rymercyble • Posted: 2024-06-05T16:51:07.054000+00:00
Original source
yes
Archived author: Kaev • Posted: 2024-06-05T16:51:11.669000+00:00
Original source
You need to build a GameTooltip frame, set the spell via Hyperlink and parse the tooltip
```lua
function GetSpellDescription(spellID)
-- Create a tooltip frame
local tooltip = CreateFrame("GameTooltip", "MyTooltip", nil, "GameTooltipTemplate")
tooltip:SetOwner(UIParent, "ANCHOR_NONE")
-- Set the tooltip to the spell
tooltip:SetHyperlink("spell:"..spellID)
-- Extract the text from the tooltip
local description = ""
for i = 2, tooltip:NumLines() do
local line = _G["MyTooltipTextLeft" .. i]:GetText()
if line then
description = description .. line .. "\n"
end
end
-- Clean up and return the description
tooltip:Hide()
return description
end
```
Archived author: Kaev • Posted: 2024-06-05T16:51:30.053000+00:00
Original source
Sadly GetSpellDescription only works for known spells without any client modifications
Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-06-05T16:52:20.682000+00:00
Original source
now im curious why you want to do tooltips without the server involved, is there some benefit to doing it that way?