switching worn gear [Request Fulfilled]

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

gingertips
a hill giant
a hill giant
Posts: 230
Joined: Wed Jun 26, 2002 3:47 am
Location: Tseu-Qorcam

switching worn gear [Request Fulfilled]

Post by gingertips » Thu Aug 29, 2002 6:28 am

mornin all!

I need suggestion for switching gear between whats currently worn and whats in my inventory - would be useful to swap out a few cha and wis items during a tradskill macro. would also be nice to switch between slime boots and sow boots automatically when my druid bot gets a tell askin for a sow and then switch them back after.

whats best suggestion?

:wink:

User avatar
Ravena666
a ghoul
a ghoul
Posts: 101
Joined: Fri Aug 23, 2002 2:57 am

Post by Ravena666 » Thu Aug 29, 2002 6:49 am

Ill try to mess around with a macro tomarro and try to help ya out.
for now 3am... Iam off to bed
*yawnn*
~~ SPOON ~~
~~ SPORK ~~

eqjim
a lesser mummy
a lesser mummy
Posts: 35
Joined: Tue Aug 27, 2002 3:56 pm

Post by eqjim » Thu Aug 29, 2002 8:53 am

i made this to switch out my BP to pog one and then after im healed to 100.. put my fungi back in.. i guess can sorta take this and edit it. it does switch out the gear tho.

Code: Select all

Sub Main
/if n $char(hp,pct)<=100 {  | check hp
/if $invpanel==false /press i  | open inventory
/finditem "Silver Moon Chest Wraps" | put pog bp on cursor
/click left equip chest   | equip pog bp
:checkhp
/click right equip chest  | right click for effect
/delay 15  | wait 15 sec for casting
/if n $char(hp,pct)<=100 /goto :checkhp | check if still injured
/click left equip chest  | re-equip fungi
/if $pack(1,open)==false {  | if bag 1 not open
/if $invpanel==false /press i  | check for inventory
/click right inv 1  | open bag
}
/click left pack 1 1   | put bp in slot 1 of bag 1
/click left pack 1 done    | close bag
/if $invpanel==true /press i  | close inventory
/return
it worked except for the checking hp part :( so that might be broke.. but did get pog, equip,right click, wait, re equip fungi, and then bagged my pog bp agian.
Last edited by eqjim on Thu Aug 29, 2002 8:56 am, edited 1 time in total.

eqjim
a lesser mummy
a lesser mummy
Posts: 35
Joined: Tue Aug 27, 2002 3:56 pm

double post

Post by eqjim » Thu Aug 29, 2002 8:53 am

damn it said something about not being to send a email.. so i tried to post agian :(

double post!
Last edited by eqjim on Thu Aug 29, 2002 8:54 am, edited 1 time in total.

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Fri Aug 30, 2002 12:42 am

wow.. actually wearing a fungi.. must be nice to be on a blue server.

gingertips
a hill giant
a hill giant
Posts: 230
Joined: Wed Jun 26, 2002 3:47 am
Location: Tseu-Qorcam

Post by gingertips » Fri Aug 30, 2002 6:16 am

nice just what i wanted thx

curiousgeorge
orc pawn
orc pawn
Posts: 10
Joined: Mon Aug 26, 2002 1:02 pm

ooo variation?

Post by curiousgeorge » Tue Sep 10, 2002 5:07 pm

okay i'm a paladin and I wear an SS helm, but a nice macro that willl switch out to a DW helm, heal to 100% hp, then switch back is possible? That's sweet. so let me see if I can work this variation:

edit : I pity the fool that doesnt use code brackets

Code: Select all

Sub Main 
/if n $char(hp,pct)<=100 {  | check hp 
/if $invpanel==false /press i  | open inventory 
/finditem "Deepwater Helm" | put Deepwater Helm on cursor 
/click left equip Head   | equip Deepwater helm 
:checkhp 
/click right equip Head  | right click for effect 
/delay 15  | wait 15 sec for casting 
/if n $char(hp,pct)<=100 /goto :checkhp | check if still injured 
/click left equip head  | re-equip scaled knight's helm 
/if $pack(1,open)==false {  | if bag 1 not open 
/if $invpanel==false /press i  | check for inventory 
/click right inv 1  | open bag 
} 
/click left pack 1 1   | put helm in slot 1 of bag 1 
/click left pack 1 done    | close bag 
/if $invpanel==true /press i  | close inventory 
/return
would that work? and would do the hp check for whomever I have targeted right?
wait, where did you say you put the cheeze-wiz?

Ariain
a ghoul
a ghoul
Posts: 88
Joined: Fri Oct 11, 2002 10:35 am

Post by Ariain » Fri Oct 11, 2002 4:32 pm

Is there anyway to switch items without the click command?

eqjim
a lesser mummy
a lesser mummy
Posts: 35
Joined: Tue Aug 27, 2002 3:56 pm

Post by eqjim » Fri Oct 11, 2002 4:39 pm

not that i know of.

Catt
a lesser mummy
a lesser mummy
Posts: 76
Joined: Mon Sep 16, 2002 2:49 am

Post by Catt » Sat Oct 12, 2002 12:10 am

just a minor point, /delay is 1/10s of a second, so 15 is only 1.5 seconds