Buff removal?

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

overnuker2323
orc pawn
orc pawn
Posts: 18
Joined: Sat Sep 25, 2004 2:06 am

Buff removal?

Post by overnuker2323 » Sun Sep 26, 2004 9:14 pm

Is there a way to remove your buffs by /commands instead of clicking on them? (other than /mouseto, /click left)?

dho
decaying skeleton
decaying skeleton
Posts: 2
Joined: Mon Sep 06, 2004 1:47 am

Post by dho » Sun Sep 26, 2004 9:50 pm

try it

/notify BuffWindow Buff${Math.Calc[${Me.Buff["Lich"].ID}-1].Int} leftmouseup

* Remove Necro Lich spell

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Sun Sep 26, 2004 10:00 pm

It's not a macro, but:

http://www.macroquest2.com/phpBB2/viewtopic.php?t=7723

I use it to get rid of those pesky melee buffs on my casters and caster buffs on my melees.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

Rhev
a lesser mummy
a lesser mummy
Posts: 75
Joined: Fri Apr 23, 2004 12:25 pm

Post by Rhev » Mon Nov 29, 2004 3:50 am

Is there a way to add a command to click off buffs that wild cards somehow?

For instance, lets say I wanted to add aliases to change illusions via mask. I want it to click off the illusion, then click the new mask. The problem is, how do i get MQ to identify and click off an illusion buff?

The syntax I was messing with for that part is /notify BuffWindow Buff${Math.Calc[${Me.Buff["X"].ID}-1].Int} leftmouseup where X would be the illusion. Now do I need to manually add that line for each different illusion I have or is there a possible way that I could make it just look for the word illusion, and then click off illusion:dark elf, illusion:barbarian, illusion:gnome etc and so on?

Appreciate any help. Thanks!

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Mon Nov 29, 2004 6:37 am

something like

Code: Select all

/declare index int local
/for index 1 to 20
/if (${Me.Buff[${index}].Spell.Name.Find[illusion]}) /itemnotify BuffWindow Buff${Math.Calc[${index}-1].Int} leftmouseup
/next index

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Mon Nov 29, 2004 7:22 am

Just do a /for loop through ${Me.Buff[x].Name.Find[illusion:]} where x is 1-15 (or higher if you have the aa).

Rhev
a lesser mummy
a lesser mummy
Posts: 75
Joined: Fri Apr 23, 2004 12:25 pm

Post by Rhev » Mon Nov 29, 2004 9:13 am

Those only work built into a macro though, yes? I'm trying to make a simple alias so I can toggle illusions on the fly while playing and running other macros.

What I have so far is for example:

/gnome=/multiline ; /twist off;/exchange "Mask of Tinkering" face;/timed 45 /exchange "Flayed Barbarian Hide Mask" face;/cast item "Mask of Tinkering";/timed 45 /twist

That works fine if I am just hanging out in human form, but I need some method of dropping whatever illusion is up, so I can make aliases for each illusion item, eg: /darkelf, /barbarian, /werewolf, /halfling etc and so on.

Any suggestions?

In my totaly noob experience, the option I see would be to add a ton of "/notify BuffWindow Buff${Math.Calc[${Me.Buff["Illusion: X"].ID}-1].Int} leftmouseup" in the multiline at the start for every illusion item I posess. Then it would run through and hopefully just go till it got the right one, but that seems really stupid and messy.

-note- The Barb Flayed Mask is my current normal gear face slot. If anyone also has a suggestion on a way to make it swap back in whatever was in the face slot before the illusion item, so that if I upgrade I dont need to edit all the aliases, thats cool to!