have this so far
..C_Spell.GetSpellLink(“Resurrection”)..
it spams the text not the link,whats the spell link synthax?
this is forever btw
have this so far
..C_Spell.GetSpellLink(“Resurrection”)..
it spams the text not the link,whats the spell link synthax?
this is forever btw
Use the SpellID for the rank you want eg.
C_Spell.GetSpellLink(2010)
for rank 2
C_Spell.GetSpellLink(10881)
for rank 4
tyvm!
edit : worked once,then back to text spam
What’s your code apart from C_Spell.GetSpellLink?
Also, if the spell hasn’t been cached (you logged into a different character that hasn’t requested the information for that spell yet) you might need to wait for the info to come back from the server.
local spell = Spell:CreateFromSpellID(10881)
spell:ContinueOnSpellLoad(function() print(C_Spell.GetSpellLink(10881)) end)
/script SendChatMessage("Casting " .. C_Spell.GetSpellLink(10881) .. " on you.","WHISPER", nil, GetUnitName("target",1))
/cast Resurrection
I get the feeling that is more to do with Blizz. … [cough]“fixing” SendChatMessage than anything wrong with C_Spell.GetSpellLink
/script local spell = Spell:CreateFromSpellID(10881) spell:ContinueOnSpellLoad(function()local theSpell = C_Spell.GetSpellLink(10881) print(theSpell) SendChatMessage("Casting " .. theSpell .. " on you.","WHISPER", nil, GetUnitName("target", 1)) end)
prints but not with send message
I’m guessing SendMChatessage is stripping out the link information. Whether there is a bug with it being able to send a link at all or not sending a link would require looking into the API change history or a bug report.
Maybe it’s something to do with this cropping up again?
https://github.com/Stanzilla/WoWUIBugs/issues/749