Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] processed spell description?

[DiscordArchive] processed spell description?

[DiscordArchive] processed spell description?

Pages (5): Previous 1 2 3 4 5 Next
rektbyfaith
Administrator
0
06-05-2024, 04:42 PM
#21
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
rektbyfaith
06-05-2024, 04:42 PM #21

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

rektbyfaith
Administrator
0
06-05-2024, 04:43 PM
#22
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
rektbyfaith
06-05-2024, 04:43 PM #22

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

rektbyfaith
Administrator
0
06-05-2024, 04:46 PM
#23
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
rektbyfaith
06-05-2024, 04:46 PM #23

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

rektbyfaith
Administrator
0
06-05-2024, 04:49 PM
#24
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
rektbyfaith
06-05-2024, 04:49 PM #24

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

rektbyfaith
Administrator
0
06-05-2024, 04:49 PM
#25
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?
rektbyfaith
06-05-2024, 04:49 PM #25

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?

rektbyfaith
Administrator
0
06-05-2024, 04:49 PM
#26
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
rektbyfaith
06-05-2024, 04:49 PM #26

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

rektbyfaith
Administrator
0
06-05-2024, 04:51 PM
#27
Archived author: Rymercyble • Posted: 2024-06-05T16:51:07.054000+00:00
Original source

yes
rektbyfaith
06-05-2024, 04:51 PM #27

Archived author: Rymercyble • Posted: 2024-06-05T16:51:07.054000+00:00
Original source

yes

rektbyfaith
Administrator
0
06-05-2024, 04:51 PM
#28
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
```
rektbyfaith
06-05-2024, 04:51 PM #28

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
```

rektbyfaith
Administrator
0
06-05-2024, 04:51 PM
#29
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
rektbyfaith
06-05-2024, 04:51 PM #29

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

rektbyfaith
Administrator
0
06-05-2024, 04:52 PM
#30
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?
rektbyfaith
06-05-2024, 04:52 PM #30

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?

Pages (5): Previous 1 2 3 4 5 Next
Recently Browsing
 
Recently Browsing