Originally Posted by
Bryce
I like that Tercio, but it's just a generic G1 and G2, how would I make it say the actual person's name who interrupted decay? I'm the raid leader so would like to have it announced in raid warn who got it, etc.
Just announce on /rw is simple, the code is this:
Code:
function (_, _, token, time, who_serial, who_name, who_flags, _, alvo_serial, alvo_name, alvo_flags, _, spellid, spellname, spelltype, extraSpellID, extraSpellName, extraSchool)
local decay_spell_id = 160013
if(token == "SPELL_INTERRUPT" and extraSpellID == decay_spell_id) then
SendChatMessage ("Decay Interrupted by: " .. who_name, "RAID_WARNING")
end
end
If you want create an interrupt sequence, would be:
Code:
function (_, _, token, time, who_serial, who_name, who_flags, _, alvo_serial, alvo_name, alvo_flags, _, spellid, spellname, spelltype, extraSpellID, extraSpellName, extraSchool)
local decay_spell_id = 160013
if(token == "SPELL_INTERRUPT" and extraSpellID == decay_spell_id) then
local next_player = "UNKNOWN"
if (who_name == "PlayerName1") then
next_player = "PlayerName2"
elseif (who_name == "PlayerName2") then
next_player = "PlayerName3"
elseif (who_name == "PlayerName3") then
next_player = "PlayerName1"
end
SendChatMessage ("Decay Interrupted by: " .. who_name .. " NEXT: " .. next_player, "RAID_WARNING")
end
end