Does anyone know if you can make something that would do different things depending on how many combo points you have?
Does anyone know if you can make something that would do different things depending on how many combo points you have?
/if GetComboPoints()>=5
/cry
/end
Not bad Macros.
Does anyone know how to check energy? /if UnitEnergy("player")<=xx doesn't appear to work
try:
/cast [:rXX] AwesomeRogueFromBehindAttack
not sure tho. energy and rage should work with [:rXXX] modifier
if you got any suggestions for things to add throw 'em at me and ill see what i can do. (cant promise anything ofcourse but time to contribute ie will upload if someone finds it usefull)
implemented and tested a iftimex function which basically checks time left on spells on either you or your target.
/iftimex -- your spell
/iftimetx -- your targets spell
ie.
-- time left on whatever spell you are casting is less than x
/iftimex
/do whatever
/end
-- time left on HT is less than x
/iftimex Healing Touch
/do whatever
/end
-- time left on either is less than x
/iftimex Greater Heal,Heal
/do whatever
/end
more practical example, for single-target healing (raid perhaps)
/iftime0.5 Holy Light
/iftll70 -- target hp >= 70%
/stopcasting
/click CastLastSpellMacro
/end
/end
can ofcourse be used to not accidently interrupt the wrong spell(RoS)
/iftime1 Spirit Shock (just showing "how" it "can" be used ^^)
/cast kick
/end
hmm there was something else.. cant recall it atm though..
as i said, any suggestions for further "timewaste"-coding is appreciated ^^
Last edited by xdariuzx; 06-08-2008 at 08:26 AM.
i just remade the affli wl grinding macro.
because of the 255 char limit i splitted it into 3 seperate macros but i have two little problems
first macro:
#showtooltip Unstable Affliction
/petattack
/if UnitMana("player")<4000
/if UnitHealth("player")>1500
/cast Life Tap
/end
/end
/if UnitMana("player")<4000
/if UnitHealth("player")<1500
/cast Dark Pact
/end
/end
/click BongosActionButton73
second:
/ifaddtb Unstable Affliction
/cast Unstable Affliction
/end
/ifaddtb Curse of Agony
/cast Curse of Agony
/end
/ifaddtb Corruption
/cast Corruption
/end
/click BongosActionButton74
third:
/if unithasspelleffect ("player", "shadowtrance")
/cast shadowbolt
/else
/cast [nochanneling] drain life
/end
problems are:
-if my mana goes below the treshhold for casting life tap and i am channeling drain life the next click aborts the channeling and i cast life tap
-the part in the third macro doesnt work, the addon tells me not to use else and end without using if but if is used :confused:
nothing here
"-if my mana goes below the treshhold for casting life tap and i am channeling drain life the next click aborts the channeling and i cast life tap"
use [nochanneling] there aswell then if you dont want it to cast when channeling.
"-the part in the third macro doesnt work, the addon tells me not to use else and end without using if but if is used"
Code:/if unithasspelleffect ("player", "shadowtrance") /cast shadowbolt /cast [nochanneling] drain life
ok
try this
Code:#showtooltip Unstable Affliction /petattack /if UnitMana("player")<4000 /if UnitHealth("player")>1500 /if not UnitChannelInfo("player") /cast Life Tap /end /end /if UnitMana("player")<4000 /if UnitHealth("player")<1500 /if not UnitChannelInfo("player") /cast Dark Pact /end /end /click BongosActionButton73
Last edited by xdariuzx; 06-11-2008 at 09:21 AM.
thanks this one is working but you have to add an additional /end so that it looks like
unfortunately the part with nightfall /shadow trance still doesn't work, with this implemented the macro casts shadowbolt even when there isn't the proc of nightfallCode:#showtooltip Unstable Affliction /petattack /if UnitMana("player")<4000 /if UnitHealth("player")>1500 /if not UnitChannelInfo("player") /cast Life Tap /end /end /end /if UnitMana("player")<4000 /if UnitHealth("player")<1500 /if not UnitChannelInfo("player") /cast Dark Pact /end /end /end /click BongosActionButton73
btw why can't i use percentage values for my health and mana? the macro just casts life tap all the time withCode:/if UnitMana("player")<75% /if UnitHealth("player")>30%
Last edited by Fropper; 06-11-2008 at 03:33 PM.
nothing here
UnitMana returns mana in points, to get percent you need something like 100*(UnitMana/UnitManaMax).
UnitHealth however returns percentage for foes but points for friendly units.
you can use percent with some functions, such as /iflx, but it does not parse the %, ie. use 20 instead of 20%
and regarding the extra end, you shouldnt need to add that when just evaluating a blizzard function , automacro will just skip one row if the if returns false, and it worked when i tried it ^^, but then again it should need to "end" the ifscope so might aswell have it there if it doesnt complain.
be sure you got the name of the buff rightCode:/if UnitHasSpellEffect("player", "Shadow Trance") /cast Shadowbolt /end /cast [nochanneling] Drain Life
Last edited by xdariuzx; 06-12-2008 at 01:10 AM.