[DiscordArchive] What ya trying to do?
[DiscordArchive] What ya trying to do?
Archived author: Saty • Posted: 2025-06-01T22:51:53.929000+00:00
Original source
What ya trying to do?
Archived author: Stelmo • Posted: 2025-06-01T22:58:38.662000+00:00
Original source
Trying to get the respective SpellID for the item currently held by the cursor, so I can save it via my addon.
It seems like it should be possible to get it directly via built in lua (https://wowpedia.fandom.com/wiki/API_GetItemSpell) but that isn't working for me, so I'm looking for functions/addresses I could call via dll instead
Archived author: Saty • Posted: 2025-06-01T22:59:57.788000+00:00
Original source
Yeah that fandom link probably not for 3.3.5, you gotta have to dig for old api stuff
Archived author: [GLFY] Mitche • Posted: 2025-06-01T23:01:28.858000+00:00
Original source
`/run print(GetItemSpell(>id>))`
Archived author: [GLFY] Mitche • Posted: 2025-06-01T23:01:35.508000+00:00
Original source
Pretty sure that isn't in 3.3.5a though as Saty said
Archived author: Stelmo • Posted: 2025-06-01T23:01:53.867000+00:00
Original source
Yeah fair. But admittedly fandom has proven useful for a bunch of other lua I've needed, and it didn't mention any patches, so I was hopeful haha
Archived author: [GLFY] Mitche • Posted: 2025-06-01T23:02:05.989000+00:00
Original source
Try running the print twice and see if it outputs
Archived author: [GLFY] Mitche • Posted: 2025-06-01T23:02:19.070000+00:00
Original source
Won't get it for the item in hand, but will tell you if it's 3.3.5a or not
Archived author: [GLFY] Mitche • Posted: 2025-06-01T23:02:42.971000+00:00
Original source
I found mentioons of it going back to 09', so it probably is in
![[Image: 02_01_04_04_ida.png?ex=690c80ac&is=690b2...d6d07f073&]](https://cdn.discordapp.com/attachments/1086807686571642900/1378871787978363032/02_01_04_04_ida.png?ex=690c80ac&is=690b2f2c&hm=52a40eb441b234f0a1dd27ed95858b02af9d3046ce954a79d63b6a6d6d07f073&)
Archived author: Saty • Posted: 2025-06-01T23:04:12.465000+00:00
Original source
If you can use direct calls, look at Lua_GetItemSpell (0x00517100) directly, as it get's the spell id in there.
![[Image: 02_01_04_04_ida.png?ex=690c80ac&is=690b2...d6d07f073&]](https://cdn.discordapp.com/attachments/1086807686571642900/1378871787978363032/02_01_04_04_ida.png?ex=690c80ac&is=690b2f2c&hm=52a40eb441b234f0a1dd27ed95858b02af9d3046ce954a79d63b6a6d6d07f073&)