wait so runiker your making a UI?
wait so runiker your making a UI?
McMage :
@ RunikerCode:This one casts spell between 5 and 10 seconds function boss_randomspell(pUnit, Event) timer=math.random(5000, 10000) pUnit:FullCastSpell(ID) end This one casts spell1 if math.random returns under 1000 ms, if not it casts spell2 function boss_randomspell2(pUnit, Event) timer=math.random(1000, 2000) if timer = < 1000 then pUnit:FullCastSpell(ID1) else pUnit:FullCastSpell(ID2) end end
Im doing LUA help for Ascent scripts, not Addon stuff.
Thank you, sorry to take up your time.... /bow
Np, glad to help you ^^
Any can help me with GetWorldStateUIInfo s returning in WSG? Dont know its returning a string a number 0/3 or 0 or 0\3?
Tryd with this but seem not working.
elseif (strfind(arg1,BG_CAPTURED)) then
_, _, AllianceScore = GetWorldStateUIInfo(1);
_, _, HordeScore = GetWorldStateUIInfo(2);
if (AllianceScore == "0/3") then
soundfile = soundfile..MyZone.."\\"..event.."_Takes_Lead";