clicking off buffs via macro?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

se7en
orc pawn
orc pawn
Posts: 21
Joined: Sun Dec 14, 2003 6:51 pm

clicking off buffs via macro?

Post by se7en » Wed Apr 07, 2004 8:24 pm

First I went through all the documentation, then I wen't and searched. I also tried looking in locations.txt, but I couldn't find a way to make the mouse move to a buff slot in order to click off a buff... or if there is a more efficient way--it remains to be seen by me.

Anyone ever tried something like this?

I appreciate any help with this :)

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Apr 07, 2004 8:51 pm

someone asked this recently and wanted to use /notify, but I need to change /notify a little bit for it to work.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

se7en
orc pawn
orc pawn
Posts: 21
Joined: Sun Dec 14, 2003 6:51 pm

Post by se7en » Wed Apr 07, 2004 9:14 pm

Lax wrote:someone asked this recently and wanted to use /notify, but I need to change /notify a little bit for it to work.
Nice, Thank you for the fast reply Lax.

So there is no way to do this currently via macroquest commands?

Any idea if you'll be working on the necessary changes to /notify anytime soon?

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Apr 07, 2004 9:27 pm

Done and tested ;)

/notify BuffWindow Buff0 leftmouseup

will click off the top buff.

This is macroable like so (using mq2data, you can do it roughly the same way with mq2parm)

Code: Select all

/declare myvar global

/newif ${Me.Buff[Spirit of Wolf]} {
/varcalc myvar ${Me.Buff[Spirit of Wolf]}-1
/notify BuffWindow Buff@myvar leftmouseup
}
Unless I screwed up the varcalc syntax, that should work
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

se7en
orc pawn
orc pawn
Posts: 21
Joined: Sun Dec 14, 2003 6:51 pm

Post by se7en » Wed Apr 07, 2004 9:32 pm

haha, my god you own Lax! That rocks, testing it now!

se7en
orc pawn
orc pawn
Posts: 21
Joined: Sun Dec 14, 2003 6:51 pm

Post by se7en » Wed Apr 07, 2004 9:57 pm

Yah, the calc returns 0.00, I'm trying to fix it right now, just so happens calcs and math were always my worst subjects ;)

se7en
orc pawn
orc pawn
Posts: 21
Joined: Sun Dec 14, 2003 6:51 pm

Post by se7en » Wed Apr 07, 2004 11:14 pm

I can't figure out the varcalc syntax, I guess I'm inept when it comes to math skills ;)

The calc returns a value of 0.00, just need to strip the last 2 decimal places to make it just "0".

If anyone has some input I'd appreciate it

Forgive my triple posts in a row, didn't want to edit anything in case someone was following the thread :)

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Wed Apr 07, 2004 11:34 pm

Try:

Code: Select all

/declare myvar global 

/newif ${Me.Buff[Spirit of Wolf]} { 
/varset myvar ${Math.Calc[${Me.Buff[Spirit of Wolf]}-1].Int} 
/notify BuffWindow Buff@myvar leftmouseup 
} 


Marze
a lesser mummy
a lesser mummy
Posts: 60
Joined: Wed Apr 14, 2004 12:08 pm

Post by Marze » Tue May 25, 2004 11:42 pm

This code needs a small update.

Code: Select all

/declare BuffSlot int local

 /if (${Bool[${Me.Buff[Vallon's Quickening]}]}) { 
   /varcalc BuffSlot ${Me.Buff[Vallon's Quickening].ID}-1 
   /notify BuffWindow Buff${BuffSlot} leftmouseup 
   }
This code if for Clerics that like to Yaulp.