PDA

View Full Version : Trying to do a /castrandom [harm] spell1, spell2, spell3, [help] lesser healing wave ???



robtest
10-16-2008, 05:39 PM
Been fiddling around with this and just can't get one that seems to work. I am two boxing a pair of shammies. One in the front is most enhancement, the one in the back is elemental/resto... What I would like to do on the back one is to setup a macro that would randomly throw a heal to the front one.

Anyone got one of those laying around?

Thinking maybe I would have to do something like:

/castrandom [nomodifier:alt, exists, harm, nodead] lightning bolt(rank 1), earth shock

/cast [modifier:alt, focus] lesser healing wave

sedory
10-17-2008, 04:04 AM
While looking up some other macro questions I had, I believe I ran into a fix for you..

/castrandom [harm] spell1, spell2, spell3; [help] spell1, spell2, spell3

dont seperate the two sections with a comma, but instead us a semicolon. I'm at work so I cannot confirm this, but it should work if I read the net correctly.

robtest
10-18-2008, 01:09 AM
Thanks for the reply!!!

It works sorta. :D

Here is what I tried, maybe there is a syntax error...

Tester Elemental:

/assist focus
/targetenemy [noexists]
/castrandom [exists, harm, nodead] lightning bolt(rank 1), earth shock, flame shock, lightning bolt(rank1); [target=focus, help] lesser healing wave, healing wave
/startattack

The results are that it throws only the "harm" spell until the enemy is dead, and then it throws the healing spells...

Here is what I ended up with, maybe someone else will find this useful.

Elemental:

/assist focus
/targetenemy [noexists]
/castrandom [exists,harm,nodead] lightning bolt(rank 1), earth shock, flame shock,lightning bolt(rank1),,,
/castrandom [target=focus] lesser healing wave,,
/startattack

Note the commas at the end of the two seperate /castrandom statements. This allows me to add "NoThrows" to balance which one fires, and also to save a bit on Mana. I was eating it up quickly.

Now my Shammy in the front is throwing this macro as the counterpart in KeyClone.

Clubber:

/targetenemy
/castrandom lightning bolt, flame shock, earth shock,lightning bolt(rank1),,
/startattack

So this gives me my main attack spam macros, I typically throw Lightning bolt to pull the target in, and then begin spamming the above set of macros until dead. Seems to work very well!

:thumbsup:

sedory
10-18-2008, 01:29 AM
you're solution is likely the only way to go. The first [] condition returns true while the enemy is alive so it would only do that till it died. I'm one less to rely on RNG..

/castsequence [harm, nodead] earth shock, lightning bolt; [target=focus, help, nodead, mod:alt] healing wave; [target=player, mod:alt] healing wave

[nodead] implies [exists], so it can be dropped

I don't know you're setup, but this is sorta what I run with my pally/sham duo, cept he's enhancement so I'm melee'ing and earth shocking more ofthen then not. The limitation in the above macro is that you can't directly heal the user of this macro unless the foucs is dead/doesn't exist. Can always just keep casting chain heal on yourself... lol, a bit mana intensive there though.

Pringle
10-18-2008, 01:47 AM
Why not just take the conditional statements out of it? Something like:
/castrandom [target=focustarget]spell1,[target=focustarget] spell2,[target=focus]healing spell, [target=focustarget]spell3, etc.

sedory
10-18-2008, 04:20 AM
because it doesn't take conditionals on each spell, just each param set.

/castrandom [oonditional 1] spell1, spell2, spell3; [contitional 2] spell4, spell5, spell6

the parameters 'sets' are seperated by the semi-colon and the conditionals have to be at the beginning of a parameter 'set'. In the above case, if conditional 1 is true, then cast randomly from spells 1/2/3, else if conditional2 is true then cast randomly from spells 4/5/6

same for castsequence...

/castsequence [oonditional 1] reset=[time/condition] spell1, spell2, spell3; [contitional 2] reset=[time/condition] spell4, spell5, spell6

In the above case, if conditional 1 is true, then cast sequence from spells 1/2/3 untill time/condition is exceeded or true, else if conditional2 is true then cast in sequence spells 4/5/6 untill time/condition is exceeded or true

thinus
10-20-2008, 08:30 AM
Erm...why use /castrandom? Do you just spam your DPS button? What if you get the shocks 3 or 4 times in a row, it will only go off once? Seems a bit too unreliable for me to be comfortable with.

robtest
10-20-2008, 10:57 AM
because it doesn't take conditionals on each spell, just each param set.

/castrandom [oonditional 1] spell1, spell2, spell3; [contitional 2] spell4, spell5, spell6

the parameters 'sets' are seperated by the semi-colon and the conditionals have to be at the beginning of a parameter 'set'. In the above case, if conditional 1 is true, then cast randomly from spells 1/2/3, else if conditional2 is true then cast randomly from spells 4/5/6

same for castsequence...

/castsequence [oonditional 1] reset=[time/condition] spell1, spell2, spell3; [contitional 2] reset=[time/condition] spell4, spell5, spell6

In the above case, if conditional 1 is true, then cast sequence from spells 1/2/3 untill time/condition is exceeded or true, else if conditional2 is true then cast in sequence spells 4/5/6 untill time/condition is exceeded or true
These seemed like a very eloquent solution to my problem, but like the other suggestion, it doesn't let you throw the [help] spell until the target enemy is dead. I want to be able to throw the heals mid-fight, and it seems that two seperate /castrandoms with multi-commas is the only solution (thus far anyway...)


Erm...why use /castrandom? Do you just spam your DPS button? What if you get the shocks 3 or 4 times in a row, it will only go off once? Seems a bit too unreliable for me to be comfortable with.



The attempt here is for my backup toon to be able to throw some heals along with the DPS... The commas and multiple spells give enough room that I don't get too many "spell not ready" messages, and besides, I am spamming it anyway, so it will get em eventually :rolleyes:



you're solution is likely the only way to go. The first [] condition returns true while the enemy is alive so it would only do that till it died. I'm one less to rely on RNG..

But when living dangerously, RNG is the only way to go!!! ^^