Originally Posted by
glovhizzle
Is there any book out there that you would recommend to read Treeston? that deals with lua in WOW?
The guys over at WoWprogramming made a book entirely dedicated to it.
---------- Post added 2010-12-30 at 10:25 AM ----------
Originally Posted by
glovhizzle
i added it but still nothing
it actually doesnt even say "casting redemption..." now
Okay, fuck it, completely different approach.
Code:
local a = CreateFrame("Frame")
a:SetScript("OnEvent", function(self, event, unit, spell, rank, target)
if UnitIsUnit(unit, "player") and (spell == "Redemption") then
SendChatMessage(">> Redemption: "..target.." <<", GetNumRaidMembers()>0 and "RAID" or GetNumPartyMembers()>0 and "PARTY" or "SAY")
end
end)
a:RegisterEvent("UNIT_SPELLCAST_SENT")
Replace the entire code.