Topic: Super Duper Macro Thread

Post your macros and explain what they do so that others can use them!  big_smile


Change to Battle Stance and equip 2h weapon

For:  Warriors
Macro Name: Agg
Macro Icon:  Battle Stance image

Raw macro: [blockquote]/cast Battle
/script PickupInventoryItem(17);if(CursorHasItem()) then PickupContainerItem(3,10);PickupContainerItem(4,1);PickupInventoryItem(16);else PickupContainerItem(4,1);PickupInventoryItem(16);PickupContainerItem(3,10);PickupInventoryItem(17);end [/blockquote]


Change to Defensive Stance and equip 1h weapon and shield

For:  Warriors
Macro Name: Def
Macro Icon:  Defensive Stance image

Raw macro: [blockquote]/cast Defensive
/script PickupInventoryItem(17);if(CursorHasItem()) then PickupContainerItem(3,10);PickupContainerItem(4,1);PickupInventoryItem(16);else PickupContainerItem(4,1);PickupInventoryItem(16);PickupContainerItem(3,10);PickupInventoryItem(17);end [/blockquote]



Description of the script in the above 2 macros:[blockquote] /cast Battle -- Switch to Battle Stance

/script -- starts the script function

PickupInventoryItem(17);  -- Picks up the item in the offhand

if(CursorHasItem()) then -- If there was something in the off hand slot and the mouse cursor has it, continue, if not, jump to "else" statement

PickupContainerItem(3,10);  -- Place item into bag #3, slot #10.   (Bags are numbered 0 - 4 from right to left.  Slots are numbered 1 - 16 starting from the top left.)

PickupContainerItem(4,1);  -- Pick up item in bag #4, slot #1

PickupInventoryItem(16);  -- Place item into main hand slot

else   -- Spot to start script at if no offhand item was picked up in the beginning of the script.

PickupContainerItem(4,1);   -- Pick up item in bag #4, slot #1

PickupInventoryItem(16);  -- Place item into main hand slot

PickupContainerItem(3,10);  -- Pick up item in bag #3, slot #10

PickupInventoryItem(17);  -- Place item into off hand slot.

end  -- Stop[/blockquote]

Re: Super Duper Macro Thread

Here's the only macro I use:

/script UseContainerItem(0,1)

It swaps your main hand weapon with the one in the top-left corner of the backpack.  This is useful for rogues who want to use daggers for an opening ambush, then switch back to a sword or mace for high-damage SS.

Incidentally, it's literally impossible to swap to a dagger, ambush, then swap back all in one macro.  Sorry.  You can write macros that seem like they should work, but they'll either just not work, or work sporadically.  (I'll spare you the details as to why.)

<Viserys> I'm sitting here slapping someone's ass
<Viserys> and there's no gratification

Re: Super Duper Macro Thread

for weapon switching I just:

/equip Thrash Blade
/equip Aegis of the Scarlet Commander

and

/equip Truesilver Champion

Yours just seems a bit too complicated, and I really don't see why you need all of that.

Re: Super Duper Macro Thread

Originally posted by: Pac)Man
for weapon switching I just:

/equip Thrash Blade
/equip Aegis of the Scarlet Commander

and

/equip Truesilver Champion

Yours just seems a bit too complicated, and I really don't see why you need all of that.

Those macros will only work with Cosmos, and at the time this thread was made, the portion of Cosmos that facilitates the /equip command was broken.  It took them a long time to fix it...I wouldn't count on being able to use /equip for a couple weeks after each patch.

<Viserys> I'm sitting here slapping someone's ass
<Viserys> and there's no gratification

Re: Super Duper Macro Thread

i made a macro for my old school hunter

the /cast or /script may be wrong

/cast Hunters Mark(rank x)
/script PetAttack()
/cast Concussive Arrow

i forget if conc arrow had rnaks, if so put (rank x)

now it took some re-arrangin due to timers and conflictions but i eventually got it to work

[url=http://profile.mygamercard.net/ceLiZz]
http://card.mygamercard.net/mini/ceLiZz.jpg
[/url]

Re: Super Duper Macro Thread

Originally posted by: SorryUndead
i made a macro for my old school hunter

the /cast or /script may be wrong

/cast Hunters Mark(rank x)
/script PetAttack()
/cast Concussive Arrow

i forget if conc arrow had rnaks, if so put (rank x)

now it took some re-arrangin due to timers and conflictions but i eventually got it to work

Isn't it Concussive Shot? Not Concussive Arrow?

"The first duty in life is to assume a pose. What the second duty is, no one has yet found out."
-Oscar Wilde

Re: Super Duper Macro Thread

The only one i use...

/script QUEST_DESCRIPTION_GRADIENT_CPS=600000

It doesn't even have to be in a macro, but it's easier clicking a button everytime than typing it.

What it does, it greatly shortens the delay on the quest windows, so you're not sitting there for ages waiting for the text to fade in. Just click accept and read the quest in transit tongue

Re: Super Duper Macro Thread

Originally posted by: Draekon

Originally posted by: SorryUndead
i made a macro for my old school hunter

the /cast or /script may be wrong

/cast Hunters Mark(rank x)
/script PetAttack()
/cast Concussive Arrow

i forget if conc arrow had rnaks, if so put (rank x)

now it took some re-arrangin due to timers and conflictions but i eventually got it to work

Isn't it Concussive Shot? Not Concussive Arrow?

Additionally, it's impossible to have two /cast commands in one (working) macro.  All of the commands in a macro execute at the exact same time, and since you need to wait for the global cooldown between the casts, only one of them will actually get through.  For more information, see this thread -- there are several posts on the matter, including the first two replies.

<Viserys> I'm sitting here slapping someone's ass
<Viserys> and there's no gratification

Re: Super Duper Macro Thread

i know bill, i got around it by rearranging them somehow...i was with difose when i did it in the wetlands about level 15

and i guess it is a shot, i forgot it was back in november sad

[url=http://profile.mygamercard.net/ceLiZz]
http://card.mygamercard.net/mini/ceLiZz.jpg
[/url]

Re: Super Duper Macro Thread

Originally posted by: Skenus
The only one i use...

/script QUEST_DESCRIPTION_GRADIENT_CPS=600000

It doesn't even have to be in a macro, but it's easier clicking a button everytime than typing it.

What it does, it greatly shortens the delay on the quest windows, so you're not sitting there for ages waiting for the text to fade in. Just click accept and read the quest in transit tongue

Alternatively you can just set it to no-scroll and it shows everything in the quest instantly.

COOLEST CAR EVER
http://www.albinoblacksheep.com/flash/war.php

Re: Super Duper Macro Thread

Originally posted by: Pac)Man
for weapon switching I just:

/equip Thrash Blade
/equip Aegis of the Scarlet Commander

and

/equip Truesilver Champion

Yours just seems a bit too complicated, and I really don't see why you need all of that.

Well, mine also has error checking.  I started with just using /equip but it wouldn't work properly.   If I used the script, then switched stances manually, then used the script again, it would pick up my weapon and hold it on my cursor... and that isn't good.  wink

What my script does is detect if there is a 1h+shield equipped or not, and then acts accordingly.

12

Re: Super Duper Macro Thread

This is probably the most basic, yet most useful, macro you can use if your a mage/priest or anything with a snare.


/p --- Shackling %t ---
/cast Shackle Undead(Rank3)


This is the macro you use to let the people in your party/raid know what mob you are snaring.

This also works well with Resurrection, especially if your party wipes. It lets the person know you have a rez incoming.

I'm also working on one that lets your target know you have a Heal que'd for them and the time needed so they know a heal is coming. This will help the other secondary healers so they dont waste mana. So far its pretty buggy but its coming along.

http://wow.tachyonsix.com.nyud.net:8080/armory/sig.php/731149NIkyh.png

Re: Super Duper Macro Thread

during RFC a mage had that for every poly, it got quite annoying..

[url=http://profile.mygamercard.net/ceLiZz]
http://card.mygamercard.net/mini/ceLiZz.jpg
[/url]

Re: Super Duper Macro Thread

I wrote a macro that I thought should work, but it doesnt seem to want to run the first line...

/script UseContainerItem(0,4)
/cast Backstab(Rank 2)
/script time=GetTime()
/script while GetTime()-time==.2 do UseContainerItem(0,4) end


Now this is supposed to switch to a dagger, and cast backstab at the same time, since they are executed at the same time, but then the last 2 lines basically acts as a wait .2 seconds then switch the weapon back, but for some reason the first line wont run.
EDIT:  And the waiting does occur FYI

"The first duty in life is to assume a pose. What the second duty is, no one has yet found out."
-Oscar Wilde

Re: Super Duper Macro Thread

Don't you need semi-colons in there Draekon?

Re: Super Duper Macro Thread

Originally posted by: Draekon
I wrote a macro that I thought should work, but it doesnt seem to want to run the first line...

/script UseContainerItem(0,4)
/cast Backstab(Rank 2)
/script time=GetTime()
/script while GetTime()-time==.2 do UseContainerItem(0,4) end

Now this is supposed to switch to a dagger, and cast backstab at the same time, since they are executed at the same time, but then the last 2 lines basically acts as a wait .2 seconds then switch the weapon back, but for some reason the first line wont run.
EDIT:  And the waiting does occur FYI

It looks like you're trying to swap weapons while 0.2 seconds have elapsed, not after 0.2 seconds have elapsed.  Basically, the macro will try to execute that loop, say "whoops, only 0.05 seconds have elapsed", and quit without ever swapping weapons.  I'm also not too sure on whether variables will persist across /script lines; you might want to do something like

/script time=GetTime(); [modified loop here]

If you think you're having problems with just the first line, why not just move it into its own macro and test it there?  If you're having trouble with UseContainerItem, make sure you understand the bag/slot syntax -- for example, that call in your macro above is trying to use the item in the top-right of your backpack.  If that's not what you intended, go here.

<Viserys> I'm sitting here slapping someone's ass
<Viserys> and there's no gratification

Re: Super Duper Macro Thread

Is there any way to display the stack size of an item, using /page or something like that?

The reason I ask is, I have macro'd it so that I don't have to target myself when I use a bandage:

/target Pacsan
/use Runecloth Bandage

But with this, I don't know how many bandages I have left. ;[

Also, could I macro:  1)switching to berserker stance and casting whirlwind and 2) switching to battle stance and using overpower.

Re: Super Duper Macro Thread

Originally posted by: Pac)Man
Is there any way to display the stack size of an item, using /page or something like that?

The reason I ask is, I have macro'd it so that I don't have to target myself when I use a bandage:

/target Pacsan
/use Runecloth Bandage

But with this, I don't know how many bandages I have left. ;[

As far as I can tell, there's no way to automate it.  (However, if there was a way, there's probably a 50% chance I wouldn't have been able to find it anyway.)
You could just stick bandages on a hotkey, though.  You don't have to actually use them from that hotkey -- just have them bound to one so you can see how many you have left.



Also, could I macro:  1)switching to berserker stance and casting whirlwind and 2) switching to battle stance and using overpower.

I am nearly certain from what I've read that this is impossible, just like any macro involving two /cast commands.

<Viserys> I'm sitting here slapping someone's ass
<Viserys> and there's no gratification

Re: Super Duper Macro Thread

I hate blizzard.  It is IMPOSSIBLE to cast 2 spells in one macro, I even wrote a script that should work, but instead of casting one, waiting 2 seconds and casting the other, it decided to wait until everything in the macro was "castable" and trys to run them all at once
Here is the not working script:

/script CastSpellByName("Hunter's Mark(Rank 1)");
time=GetTime();
while GetTime()-time<=2 do 
     if GetTime()-time==2 then PetAttack();
          CastSpellByName("Concussive Shot"); 
     end 
end
"The first duty in life is to assume a pose. What the second duty is, no one has yet found out."
-Oscar Wilde

Re: Super Duper Macro Thread

Bill; I would normally agree, but that is because of the global cooldown, isn't it? I don't think stances share that cooldown, which is why I asked. >_< Blizzard is so mean.

21

Re: Super Duper Macro Thread

Originally posted by: SorryUndead
during RFC a mage had that for every poly, it got quite annoying..

Quite essential I think. That's the only macro I use ATM - poly macro.

http://img76.exs.cx/img76/2529/omgsig2.jpg

Originally posted by: SorryUndead
my mom thinks its killing me and wants to put me in therapy...maybe i should stop telling her that my druid can kill her
no matter how much armor she has, i can just drop a FF on go bear form and wtf pwnher face in....she kinda freaks out
sometimes when i say that




Re: Super Duper Macro Thread

I just made a great one for fellow pallies (Requires symbol of divinity):

/yell &playername is a dickhead!!!
/laugh
/fart
/moon
/rude
/cast Divine Intervention(Rank1)

That was a bad joke, by the way. sad

Re: Super Duper Macro Thread

Anyone know an alternative to " /cast " ?

Re: Super Duper Macro Thread

You can use

/script CastSpellByName("name(rank)")


or you can use something like

/script CastSpellByID(#,#)


I dont quite remember the second one, but it casts the spell thats in a certain spellbook slot.

"The first duty in life is to assume a pose. What the second duty is, no one has yet found out."
-Oscar Wilde

Re: Super Duper Macro Thread

/script CastSpellByName("name(rank)" )  will work nicely.  Thank you.  big_smile