| 
	
		| 
				
					| Pages: [1]   |  |  |  
	
		|  Author | Topic: Macro question.  (Read 3826 times) |  
	| 
			| 
					
						| Mesozoic 
								Terracotta Army 
								Posts: 1359
								
								 | 
 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
								
								 | 
 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 | 
 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 | 
 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
								
								 | 
 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
								
								 | 
 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
								
								   | 
 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: 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, /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
								
								 | 
 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
								
								 | 
 /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]   |   |  |  
	
 
  |