Title: Macro question. Post by: Mesozoic 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? Title: Re: Macro question. Post by: Threash 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.
Title: Re: Macro question. Post by: Lum 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 Title: Re: Macro question. Post by: Soln on July 07, 2006, 02:22:09 PM WoWWiki (http://www.wowwiki.com/Most_Used_Macros#Selfcasting_non-enemy_spells) 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(); Title: Re: Macro question. Post by: Lantyssa 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. Title: Re: Macro question. Post by: Trippy 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.Title: Re: Macro question. Post by: caladein 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 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 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). Title: Re: Macro question. Post by: Mesozoic 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.
Title: Re: Macro question. Post by: Chenghiz 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. |