"This script checks whether the target has a buff, if not you cast it, if so you cast a different buff.", which means you could maybe tweak it a little bit in order to do some kind of castsequence macro if the totems you want to use give you a buff than can be detected by the scripts, like +Str and + Agility for instance.
- Code: Select all
/script i=1;m=0;while(UnitBuff("target",i)~=nil) do
if(strfind(UnitBuff("target",i),"NAME OF BUFF 1")~=nil) then m=1; end;i=i+1;end; c=CastSpellByName;
if(m==1) then c("NAME OF SPELL 1");else c("NAME OF SPELL 2");end;
Haven't tested this by myself, but you get the idea.
You also have AddOns made for Shamans that can help you set, configure and manage different "sets" of totems, maybe you should check them out too.