how to ?

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

thegnome
orc pawn
orc pawn
Posts: 16
Joined: Fri Sep 05, 2003 7:04 am

how to ?

Post by thegnome » Fri Dec 05, 2003 3:41 am

Can anyone give me a sample macro to move a pc from one loc to another loc and also open a door.

ie,

move from
loc a (x,y)
loc b (x,y)
loc c (x,y)
open door if closed
loc e (x,y)
loc f (x,y)
open door if closed
loc a (x,y) which will go into a loop and start all over....

thanks

inorpo
a lesser mummy
a lesser mummy
Posts: 31
Joined: Sat Nov 29, 2003 1:44 pm

Post by inorpo » Fri Dec 05, 2003 11:48 am


thegnome
orc pawn
orc pawn
Posts: 16
Joined: Fri Sep 05, 2003 7:04 am

Post by thegnome » Sat Dec 06, 2003 2:06 am

there is no easy move command.. that i can insert .. as simple as /move to loc x,y ?

thegnome
orc pawn
orc pawn
Posts: 16
Joined: Fri Sep 05, 2003 7:04 am

Post by thegnome » Sat Dec 06, 2003 3:33 am

is there a command to open all containers ? on you

thegnome
orc pawn
orc pawn
Posts: 16
Joined: Fri Sep 05, 2003 7:04 am

Post by thegnome » Sat Dec 06, 2003 4:19 am

Sub Main

#turbo
/declare OldMoney local
/declare NewMoney local

/autoinv
/sendkey down shift

:Finding
/if n $count("XXX")==0 /goto :Done
/finditem "XXX"

:WaitFind
/if "$cursor()"=="FALSE" /goto :WaitFind

:Selling
/delay 1s
/varset OldMoney $char(cash)
/sellitem $selecteditem(count)
/click left merchant sell

:WaitSell
/varset NewMoney $char(cash)
/if n @NewMoney==@OldMoney /goto :WaitSell
/goto :Finding

:Done
/sendkey up shift
/endmacro

/return
how do i add it so it well look for another items and sell it also.. after it finihes selling the 1st item.


WOOT i figure this one out.. still need help with the above