Welcome, Guest. Please login or register.
July 21, 2025, 01:10:10 AM

Login with username, password and session length

Search:     Advanced search
we're back, baby
*
Home Help Search Login Register
f13.net  |  f13.net General Forums  |  The Gaming Graveyard  |  World of Warcraft  |  Topic: Macro question. 0 Members and 1 Guest are viewing this topic.
Pages: [1] Go Down Print
Author Topic: Macro question.  (Read 3630 times)
Mesozoic
Terracotta Army
Posts: 1359


on: July 07, 2006, 01:18:46 PM

I'm trying to make a "holy shit" macro for my 25 priest.  So far the macro yells for help and casts Fade.  Nice, but for those really bad situations, I would like it to also target myself and cast Shield. 

No luck so far, I can't get the macro to cast Shield at all along with Fade, nevermind get it to target me before it casts Shield (Fade is a caster-only spell that requires no target). 

Any ideas?

...any religion that rejects coffee worships a false god.
-Numtini
Threash
Terracotta Army
Posts: 9171


Reply #1 on: July 07, 2006, 01:24:08 PM

I dont think theres any way to pause a macro to wait for the global cooldown to clear, if either fade or shield doesnt have a global cool down you can put those first then the one with the cooldown goes second and that will work.  Otherwise you are just stuck hitting it twice.

I am the .00000001428%
Lum
Developers
Posts: 1608

Hellfire Games


Reply #2 on: July 07, 2006, 02:09:35 PM

Generally automated functions like this have to be written as "button mashing" mods, since the WoW UI requires a key press for most actions to prevent botting. To get around this automation scripts require a keypress and then do whatever should be done at that point.

eg

keypress - yell for help
keypress - cast fade
keypress - target self and cast shield
Soln
Terracotta Army
Posts: 4737

the opportunity for evil is just delicious


Reply #3 on: July 07, 2006, 02:22:09 PM

WoWWiki is the only source I know of anymore for the WoW UI API (and yea, that's my other weekend work).  There is no pause, but you can use the timenow() game clock for some things.

here's some stuff from there:

//This macro will only cast the spell if it can be cast on you:
/script if ( not UnitIsFriend("player", "target") ) then CastSpellByName("Spell", 1); end 

//self-target
/target [Player Name]  //put in yr handle

so, something like:
/target [Mesozoic]
/script if ( not UnitIsFriend("player", "target") ) then CastSpellByName("Shield", #); end //where # is the spell rank u want to use
/script TargetLastEnemy();
Lantyssa
Terracotta Army
Posts: 20848


Reply #4 on: July 07, 2006, 04:02:14 PM

I am pretty sure they made it so you cannot purposefully cast two spells with one macro.  You should be able to make it do everything from the yelling to selecting you as a target, then you will have to manually cast Shield.

Although if you make two macros, it would probably be best to let the Shield macro be the one that targets you, then (if possible) returns your selection to your previous target.  It should be, it's just been a while since I have made a macro.

Hahahaha!  I'm really good at this!
Trippy
Administrator
Posts: 23657


Reply #5 on: July 07, 2006, 05:43:00 PM

I am pretty sure they made it so you cannot purposefully cast two spells with one macro.
Yes they did.
caladein
Terracotta Army
Posts: 3174


WWW
Reply #6 on: July 07, 2006, 06:47:30 PM

I am pretty sure they made it so you cannot purposefully cast two spells with one macro.  You should be able to make it do everything from the yelling to selecting you as a target, then you will have to manually cast Shield.

You can just as long as the first one doesn't activate the Global cooldown, like I use:

Code:
/cast Ravage
/cast Shred

to save hotbar space (think Ambush and Backstab on the same button) and it works because either a) I'll be in Stealth/in-position and do Ravage and Shred will just not happen (since Ravage activated the global cooldown) or b) I'll be out of Stealth/in-position, it'll tell me I'm retarded for trying to Ravage out of Stealth, and just do Shred. Also,

Code:
/cast Nature's Swiftness
/cast Healing Touch

works just fine because NS doesn't activate the global cooldown, I'll get NS, and then cast my highest rank of Healing Touch (by defualt, if using a mod like CastOptions, it'll do its hebbie-jebbie).

But, since Fade and PW:S both activate the global cooldown, you'll need to do at least two button presses (you can probably find a mod that will let you set-up a set of macros to one bound key).

"Point being, they can't make everyone happy, so I hope they pick me." -Ingmar
"OH MY GOD WE'RE SURROUNDED SEND FOR BACKUP DIG IN DEFENSIVE POSITIONS MAN YOUR NECKBEARDS" -tgr
Mesozoic
Terracotta Army
Posts: 1359


Reply #7 on: July 08, 2006, 06:11:26 AM

Thanks for the help.  :-D  I'll just have to make due with screaming like a little girl and casting Fade.

...any religion that rejects coffee worships a false god.
-Numtini
Chenghiz
Terracotta Army
Posts: 868


Reply #8 on: July 10, 2006, 09:39:37 AM

/cast Fade(Rank X)
/y HELP LOL!
/script if ( not UnitIsFriend("player", "target") ) then CastSpellByName("Power Word: Shield", 1); end

Hit it twice - since Fade has a 30 second cooldown, it'll cast PW:Shield the next time you press it. There's a macro fucntion to target yourself, but I don't know it offhand.
Pages: [1] Go Up Print 
f13.net  |  f13.net General Forums  |  The Gaming Graveyard  |  World of Warcraft  |  Topic: Macro question.  
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC