Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-12-06, 11:06 AM   #1
Garavix
A Kobold Labourer
Join Date: Jan 2006
Posts: 1
Help with a simple (not to me) ingame /script command

Okie, first off thanks for looking at the thread. Basically i wanna make a button that casts shadowform, and if shadowform is already up i want it to cast Power Word: Fort. SO heres waht i tried
/script if (not string.find(UnitBuff("player", 1), "Shadowform")) then CastSpellByName("Shadowform"); else CastSpellByName("Power Word: Fortitude");end

What is the index in the unitbuff command supposed to be?

thanks in advance

-Cenarus
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Help with a simple (not to me) ingame /script command


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off