Originally Posted by
eddie4
I tested out your macro and I get the fallowing error
Code:
Date: 2010-02-22 18:01:43
ID: 1
Error occured in: Global
Count: 1
Message: [string "nf="[Flask!]: ";for i=1,GetNumRaidMembers()..."] line 1:
bad argument #1 to 'strfind' (string expected, got nil)
Debug:
[C]: ?
[C]: strfind()
[string "nf="[Flask!]: ";for i=1,GetNumRaidMembers()..."]:1: in main chunk
[C]: RunScript()
didn't think the rest was relevant as there all addon's. As for an addon I rather not as it's just another thing that get's loaded in memory that I use like twice in a raid
looking at the error it gave you it appears that UnitAura did not return the name of the buff. Did you perhaps have no buffs active at all on one of the toons in the raid? That is I believe the only potential downfall to this macro, and it cannot account for it because of the limit of 255 characters.
I have an idea that may work, but I can't test it yet, so feel free to give it a whirl if I dont get a chance :P
here it is. You need to press macro 1, and them macro 2 in that order :P
Macro 1:
Code:
/run RegisterCVar("tx","");for i=1,GetNumRaidMembers()do for l=1,41 do au=UnitAura('raid'..i,l);if #au>0 then if strfind(au, "Flask")and au~="Flask of the North" then break;elseif b=41 then st=st..UnitName('raid'..i);end;end;end;end;SetCVar("tx",st)
Macro 2:
Code:
/run sy=GetCVar("tx");SendChatMessage("[Flask Missing]: "..sy..". Please Use a Proper Flask!","RAID");SetCVar("tx","");