| | UI & Macro Discussions Talk about User Interface upgrades and World of Warcraft Macros here. [Questions allowed here] |  | | 
05-18-2008
|  | Corporal | | | Join Date: Apr 2007
Posts: 21
Reputation: 13 | | | AutoMacro discussion While I won't go into the juicy details of being enabled to do this (the post was deleted a bit ago), using secure functions in macros is an amazing benefit.
For example, the macro I use most frequently...
If the unit is casting something, interrupts the cast, otherwise saves the cooldown Code: /if UnitCastingInfo("target") or UnitChannelInfo("target")
/stopcasting
/cast Earth Shock(Rank 1)
/end
I would then expand this to cast max rank Earth Shock if it would kill them, Code: /if UnitCastingInfo("target") or UnitChannelInfo("target")
/stopcasting
/if UnitHealth("Target")<1000
/cast Earth Shock
/else
/cast Earth Shock(Rank 1)
/end
/end
For the mages out there raiding sunwell, this macro will steal Grand Warlock Alythess' Firedamage buff.
Then it checks if the target has 3 stacks of the scorch debuff
If it doesn't, you cast scorch, if it does, you cast fireball Code: /if unitHasSpellEFfect("target", 45230)
/cast Spellsteal
/end
/script local l=0; for i=1,40 do local n,_,_,_,_,_,t=UnitDebuff("target",i);if n=="Fire Vulnerability" and t then l=t;end;end
/if l < 3
/cast Scorch
/end
/cast Fireball
And here's your warlock bot. It's mostly readable. /ifaddtb means if the unit doesn't have the debuff or less than one second of it remaining. Code: /ifaddtb Unstable Affliction
/cast Unstable Affliction
/end
/ifaddtb Siphon Life
/cast Siphon Life
/end
/ifaddtb Curse of Agony
/cast Curse of Agony
/end
/ifaddtb Corruption
/cast Corruption
/end
/if UnitHealth("player")<80%
/cast Drain Life
/elseif UnitHealth("player")>80%
/cast Shadowbolt
/end
/if UnitMana("player")<25%
/if UnitHealth("player")>80%
/cast Life Tap
/end
/end
/if UnitMana("player")<25%
/if UnitHealth("player")<80%
/cast Dark Pact
/end
/end
Be warned, there is a 256 char limit on macros.
Last edited by gosp; 05-18-2008 at 06:55 PM.
| Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx. 
05-19-2008
|  | Site Donator | | | Join Date: Aug 2007
Posts: 18
Reputation: 36 Level up: 35%, 327 Points needed |   | | | is there a website for these, or somewhere that has more? they are extremely useful. | 
05-19-2008
|  | Corporal | | | Join Date: Apr 2007
Posts: 21
Reputation: 13 | | | Any sites I could find were in Chinese, so I was hoping to gather many minds of the english speaking world to create them ourself. In particular, there was a healbot macro and an autodispel bot macro that I had seen, but personally was unable to get it to work. | 
05-20-2008
| | Corporal | | | Join Date: Nov 2006
Posts: 32
Reputation: 7 Level up: 72%, 145 Points needed |  | | | Could anyone post the link again? Dunno why the threads gets deleted.. | 
05-21-2008
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: May 2008
Posts: 2
Reputation: 1 Level up: 67%, 135 Points needed | | | AutoMacroV8: rapidshare.de/files/39412314/AutoMacroV8.rar.html Code: /script InitAutoDispel("Magic,Disease,Poison","Cleanse")
/click AutoDispelMacroButton
/ifdispel
/cast Cleanse
/raid Cleanse [%T]
/targetlasttarget
/end
Code: /script InitAutoHeal(70,"Flash Heal")
/click AutoHealMacroButton
/ifheal
/cast Flash Heal
/end
| 
05-21-2008
|  | Knight-Lieutenant | | | Join Date: Sep 2007
Posts: 237
Reputation: 58 Level up: 46%, 378 Points needed | | | | | 
05-22-2008
|  | Corporal | | | Join Date: Apr 2007
Posts: 21
Reputation: 13 | | Quote:
Originally Posted by hotdogee AutoMacroV8: rapidshare.de/files/39412314/AutoMacroV8.rar.html Code: /script InitAutoHeal(70,"Flash Heal")
/click AutoHealMacroButton
/ifheal
/cast Flash Heal
/end
| For this, the command /click AutoHealMacroButton confuses me. Is this an actual command, or do I have to add in the real button name to click, otherwise do I have to name my macro AutoHeal or something? | 
05-22-2008
| | Corporal | | | Join Date: Jan 2008
Posts: 20
Reputation: 26 Level up: 84%, 64 Points needed |  | | | Any more information on the syntax of all this ?
Thanks | 
05-23-2008
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: May 2008
Posts: 2
Reputation: 1 Level up: 67%, 135 Points needed | | | Quote:
Originally Posted by gosp For this, the command /click AutoHealMacroButton confuses me. Is this an actual command, or do I have to add in the real button name to click, otherwise do I have to name my macro AutoHeal or something? | You don't have to add any buttons.
AutoHealMacroButton is a hidden button made by the addon. | 
05-23-2008
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: Mar 2007 Location: Azeroth
Posts: 12
Reputation: 1 | | | hummm, is there anyway to make a macro, that would automatically cast spells, like for warlock:
corruption>curse of agony>life tap> drain life>shoot
i have one, but there u need to wait till global cooldown, and my corruption and agony is instant, that causes macro to crash | 
05-23-2008
|  | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: Feb 2008
Posts: 13
Reputation: 1 Level up: 86%, 58 Points needed | | | Hey, been messing with this ever since you posted it in exploits and here's a few of mine: Quote:
/ifaddtb Demoralizing Shout
/cast Demoralizing Shout
/end
/castrandom Shield Block, Thunder Clap, Cleave
| Use for Multi-tanking. Quote:
/ifaddtb Demoralizing Shout
/cast Demoralizing Shout
/end
/ifaddtb Thunder Clap
/cast Thunder Clap
/end
/castrandom Hamstring
| Weapon leveling in Blasted Lands  keeps your damage taken at a minimum while spamming Hamstring.
One thing I wanted to ask, what was the command to use an ability only if it was usable? I think it was /ifusable (ability) or something like that.
Also, is there a command to check for certain buffs on yourself? Thanks in advance. | 
05-24-2008
| | Corporal | | | Join Date: Jan 2008
Posts: 20
Reputation: 26 Level up: 84%, 64 Points needed |  | | | Is there any way to return false if the skill you want to use is on cooldown? | 
05-25-2008
|  | Contributor | | | Join Date: Jul 2007 Location: UI & Macro Forum
Posts: 175
Reputation: 146 Level up: 20%, 565 Points needed | | | Quote:
Originally Posted by drastickog Is there any way to return false if the skill you want to use is on cooldown? | Not quite what you asked for, but here's the command to run part of a macro only if the spell isn't on cooldown. I think it might also check spell range, but that's a guess. Code: /ifcast NameOfSpell
...
/end
__________________ AddOn developer and long time explorer.
R.I.P _Corpse: My Most Underrated Addon | 
05-25-2008
| | New User | | | Join Date: May 2007
Posts: 23
Reputation: 1 Level up: 30%, 350 Points needed |  | | | I'm having a hard time figuring out how to get this working, since the instructions are in chinese. I did the logical thing and put it's folder in my WoW/interface/addons folder. It shows up in my list of addons in game on the character select screen, but from that point on I don't know how to activate it in-game. Is there a special / command to bring up a window to type the code into? I tried typing the code into the standard macro window, but it didn't work.
Thanks. | 
05-25-2008
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: Jul 2006
Posts: 28
Reputation: 1 Level up: 58%, 294 Points needed |   | | | Same problem cant get it to work.. In fact, normal macros stopped working aswell. |  | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -4. The time now is 04:41 PM. |