clicky buff mac

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

thepaan
decaying skeleton
decaying skeleton
Posts: 8
Joined: Wed Jul 30, 2003 8:35 am

clicky buff mac

Post by thepaan » Sun Oct 12, 2003 5:20 am

got some snguine pres. slippers today, i like the stats on my other boots better. so i decided to only equip the item for the effect which is 40%mp on self only buffs.... enchanters only have one self only buff: arcane rune (have an ornate robe so no need to actually cast shielding) so i made this macro then made a hot button in game that sends the command /macro ar easily converted for other clickys like a wiz friend is modifying it to click his epic. what this does for me is opens my inventory and the container i keep my clickies in then equips the shoes casts the spell and then puts everything back and closes it all up. i noticed sometimes it leaves the boots in, might have to tweak a delay somewhere and also you have to have everything closed for it to work properly like you would during normal play.

Code: Select all

#turbo 

Sub Main

|opens inv 
/press i
/delay 1

|finds container and opens it
/finditem "darkwood trunk"
/delay 2 
/click left
/delay 2
/click right
/delay 1

|finds item and equips it
/finditem "sanguine slippers"
/delay 1
/click left feet
/delay 2

|casts spell
/cast "arcane rune"
/delay 50

|returns items to their original slots
/click left feet
/delay 2
/click left pack 5 4
/delay 2

|closes everything out
/finditem "darkwood trunk" 
/delay 2
/click left
/delay 1
/press i
/end
i should have been a gnome

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Sun Oct 12, 2003 5:18 pm

what's wrong with using /cast item "sanguine slippers" after equipping, instead of clicking?

we definately need documentation on all the new commands *sigh*

Epsilon
a lesser mummy
a lesser mummy
Posts: 61
Joined: Wed Apr 30, 2003 5:46 pm

Post by Epsilon » Sun Oct 12, 2003 7:01 pm

i believe he is not casting anything with the item...he just wears them for the effect while he cast his arcane rune

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Mon Oct 13, 2003 11:06 pm

Ah, my bad.

fryfrog
a hill giant
a hill giant
Posts: 271
Joined: Fri Jun 20, 2003 5:37 am

Post by fryfrog » Tue Oct 14, 2003 1:33 am

Another suggestion, if your macro needs a clean (everythign closed) envirtonment, toss in a /cleanup as the first line and you can just click your button when ever you want :)

ministry
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Oct 14, 2003 11:19 am

Post by ministry » Tue Oct 14, 2003 7:28 pm

I have changed this macro to work for my coldain ring a bit and for some reason when i run it it always dumps my coldain ring on the autoequip box instead of onto my left finger like i tell it to. Can someone please tell me what I am doing wrong? here is the macro I have written so far:

#turbo

Sub Main

|finds container and opens it
/press i
/delay 2
/finditem "Hand Made Backpack"
/delay 2
/click left
/delay 2
/click right
/delay 2

|finds item and equips it
/finditem "velium coldain insignia ring"
/delay 2
/click right finger
/delay 2
/click right
/delay 2

|returns items to their original slots
/click right finger
/delay 2
/click left pack 5 4
/delay 2

|closes everything out
/press esc
/press esc

blamstick
orc pawn
orc pawn
Posts: 27
Joined: Sat Sep 06, 2003 6:50 pm

Post by blamstick » Tue Oct 14, 2003 8:21 pm

I'm not near a system that I can test these at but they should work.
I also used routines based on the posts in this thread and using events to mod the Honduras lazy SK attack macro to automatically switch out a primal weapon until it procs and then switch the weapons back during combat.

Code: Select all

|Event based item switcher
|This will work with the ring in or out of a bag, however it will make switching faster if
|the ring is in one of your main inventory slots. It will automatically equip and cast the ring
|when the buff fades.
#turbo 
#Event ShieldGone "The maelstrom fades away."

Sub Main 
:loop
/doevents
/delay 5
/goto :loop
/return

Sub Event_ShieldGone
/cleanup
/press i
/delay 2
/finditem "velium coldain insignia ring"
/delay 2
/click left finger1
/delay 2
/click right finger1
/delay 2
/click left finger1
/delay 2
/autoinv
/delay 2
/cleanup
/return



|Subroutine based item switcher
#turbo

Sub Main
/call ColdainRing
/return

Sub ColdainRing
/cleanup
/press i
/delay 2
/finditem "velium coldain insignia ring"
/delay 2
/click left finger1
/delay 2
/click right finger1
/delay 2
/click left finger1
/delay 2
/autoinv
/delay 2
/cleanup
/return

Guest

Post by Guest » Tue Oct 14, 2003 9:03 pm

Something doesnt work here either :( It opens the pack just fine but it never picks up the ring. It never tries to click on any finger slots either. Then it just shuts the inventory screen off and ends. :(

ministry
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Oct 14, 2003 11:19 am

Post by ministry » Tue Oct 14, 2003 9:18 pm

The problem with the macro you just posted lies in the macro NOT picking up my coldain ring and i cannot for the life of me figure out why it isnt. The macro i had listed picked up the ring , but dumped it into the autoinventory part of the screen and not on the finger like its supposed to.

Found an easy solution to get mine to work. I just moved the inventory screen down so that it puts the coldain ring into the ring slot instead of dumping it onto the autoequip box. What im having an issue with now is that it wont right click to cast the effect off the ring and it also wont pick the ring back up to put it back into the bag and it leaves my normal ring that i wear all the time on my cursor. :(

blamstick
orc pawn
orc pawn
Posts: 27
Joined: Sat Sep 06, 2003 6:50 pm

Post by blamstick » Wed Oct 15, 2003 6:31 am

hmm try testing it with turbo excluded and increasing the delays. Bags can only open so fast, same with clicks :!:

If it's skipping to the /autoinv part, then the other commands are probably going to fast to parse and execute properly. I think if you slow it down a bit, it should work. The delays really vary depending on the system you are using.

gn0m3
a lesser mummy
a lesser mummy
Posts: 39
Joined: Sat Dec 13, 2003 10:43 am

Post by gn0m3 » Sun Dec 14, 2003 4:26 pm

Great macro!

gn0m3
a lesser mummy
a lesser mummy
Posts: 39
Joined: Sat Dec 13, 2003 10:43 am

Post by gn0m3 » Mon Dec 15, 2003 4:44 pm

I have the same issue (sanguine slippers), so I messed around with this to perfect it for myself.

1) Instead of /cleanup, I'd just say /if $invPanel==False /press i. This will open your inventory if it's open. You can store that info in a variable and reset state at the end if you're being thorough.

2) I'd clean up a few of the click routines. I personally used /click left pack and /click left inv rather than specifying exact coords, just because I think it's more robust.

Other than that it works like a charm for me. I'm saving mana in a huge way considering how much I cast AR.