|
|
Source code |
1 |
/run for i=1,50 do a1,a2,a3,a4,a5 = UnitBuff("target",i) if a4 == 506582 then SendSystemChat("You have Stormy Chance") elseif a4 == 506670 then SendSystemChat("You have Fiery Chance") elseif not a4 then break end end
|
![]()
Source code
1/run for i=1,50 do a1,a2,a3,a4,a5 = UnitBuff("target",i) if a4 == 506582 then SendSystemChat("You have Stormy Chance") elseif a4 == 506670 then SendSystemChat("You have Fiery Chance") elseif not a4 then break end end
Sends a system message (orange text) of which skill you have.
Substitutions -- replace [SendSystemChat(message)] with
SendWarningMessage("you have fiery chance") if you want red text (like the "cooling down" message)
SendChatMessage("you have fiery chance,"PARTY") for party chat
SendChatMessage("you have fiery chance, "WHISPER",0,UnitName("player") to whisper yourself
Look up those functions on http://runesofmagic.gamepedia.com/List_of_Functions too find more information on using them.
|
|
Source code |
1 2 |
/script CastSpellByName("Lucky Chance")
/run for i=1,50 do a1,a2,a3,a4,a5 = UnitBuff("target",i) if a4 == 506582 then SendSystemChat("You have Stormy Chance") elseif a4 == 506670 then SendSystemChat("You have Fiery Chance") elseif not a4 then break end end
|
This post has been edited 1 times, last edit by "ruisen2000" (Jan 12th 2014, 6:53pm)
Woot, Thank you Xamd!
Do I need to have it on a seperate macro? I tried adding it to after the line that casts lucky chance, and first click of macro casts lucky chance, second click displays message fiery/stormy, but also casts lucky chance again.
|
|
Source code |
1 |
/run local lucky = false for i=1,50 do a1,a2,a3,a4,a5 = UnitBuff("target",i) if a4 == 506582 then lucky = true SendSystemChat("You have Stormy Chance") elseif a4 == 506670 then lucky = true SendSystemChat("You have Fiery Chance") elseif not a4 then break end end if not lucky then ExecuteMacroLine("/cast Lucky Chance") end
|
|
|
Source code |
1 |
/run local lucky = false for i=1,50 do local t1,t2,t3,t4,t5 = UnitBuff("player",i) if t4 == 506582 or t4 == 506670 then lucky = true elseif not t4 then break end end if not lucky then ExecuteMacroLine("/cast Lucky Chance") for i=1,50 do a1,a2,a3,a4,a5 = UnitBuff("target",i) if a4 == 506582 then SendSystemChat("You have Stormy Chance") elseif a4 == 506670 then SendSystemChat("You have Fiery Chance") elseif not a4 then break end end
|
This post has been edited 2 times, last edit by "BlankMinded" (Jan 12th 2014, 8:34pm)
|
|
Source code |
1 2 3 |
/run local lucky = false for i=1,50 do local t1,t2,t3,t4,t5 = UnitBuff("player",i) if t4 == 506582 or t4 == 506670 then lucky = true elseif not t4 then break end end if not lucky then ExecuteMacroLine("/cast Lucky Chance") end
/wait .15
/run for i=1,50 do a1,a2,a3,a4,a5 = UnitBuff("player",i) if a4 == 506582 then SendSystemChat("You have Stormy Chance") elseif a4 == 506670 then SendSystemChat("You have Fiery Chance") elseif not a4 then break end end
|
|
|
Source code |
1 2 3 4 5 |
/cast Lucky Chance
/wait .50
/run for i=1,50 do a1,a2,a3,a4,a5 = UnitBuff("player",i) if a4 == 506582 then SendSystemChat("You have Stormy Chance") elseif a4 == 506670 then SendSystemChat("You have Fiery Chance") elseif not a4 then break end end
|