PDA

View Full Version : Need help - [Macro] Ambush Weapon Swap


Elusion
08-05-2007, 08:13 PM
What I'm trying to do is get a macro (or even Add-on) that will allow me to do the following:
Equip Dagger weapon -> Ambush Target -> Switch to Fist (or Sword Weapon)
The macro I've written (read: cannibalized from other macros) works.. kinda..#showtooltip Ambush
/equipslot [nocombat]16 Ced's Carver
/cast Ambush
/equipslot [combat] 16 Nexus-Claw

It throws on my dagger, it hits the ambush then ends.
I know why this is happening: Delay in dropping stealth after attacking.
I know how to fix this from a non-macro stand point: Spam the key assigned.
But it doesn't work all the time.

Logically one might say "Well then, just remove the [combat] from the second /equipslot command".
- That only works if I have the Dagger equipped already, otherwise it just swaps the weapons.

Ideally I'd like to be able to be able to have a dagger equip whenever I go into stealth, and my fist/sword when I exit stealth. I suppose I could add "/equipslot 16 Ced's Carver" to all my stealthing abilities and "/equipslot 16 Nexus-Claw" to my attacks but that seems more work than is necessary.

If this can easily be done with an add-on, or if I'm missing something in my limited knowledge of macros I'd love to know about it.

Thanks in advance

Erept0r
08-05-2007, 08:24 PM
Something along the lines of ItemRack would be able to equip a dagger when in stealth, then switch to sword/fist when non-stealthed I believe.

Elusion
08-05-2007, 08:37 PM
Something along the lines of ItemRack would be able to equip a dagger when in stealth, then switch to sword/fist when non-stealthed I believe.
Awesome.. Giving that a shot in a few min when I get back to my PC.
From the looks of it, the "Event" is exactly what I want.

[Edit]: Yeah.. seems ItemRack will work... once I figure out how to use it. Its got the Stealth event already made, but I can't get it to actually do anything.
More playing/reading should solve that problem.

Elusion
08-05-2007, 11:22 PM
Thanks so much Erept0r!

Got ItemRack, Made a profile for my Dagger in Main Hand, went to the Events tab and clicked the [ ? ] next to Stealth, picked the Profile and thats it.
Every time I go into stealth, it throws my dagger into main hand, and when I exit it puts the original weapon back.

[ Sorry for not editing my previous post, but I'm unable to do so now ]