help again :P

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

help again :P

Post by thegnome » Sat Dec 06, 2003 6:03 am

#include routines.mac

Sub Main

/itemtarget brew barrel
/face item
/click left item

:Make
/sendkey down ctrl

/finditem "XXX"
/if $find()==FALSE /goto :Done
/click left enviro 0

/finditem "XXX"
/if $find()==FALSE /goto :Done
/click left enviro 1

/finditem "XXX"
/if $find()==FALSE /goto :Done
/click left enviro 2

/sendkey up ctrl
/delay 1
/click left enviro combine

:WaitCombine
/if "$cursor()"!="TRUE" /goto :WaitCombine

:ClickAuto
/click left auto
/delay 1
/if "$cursor()"!="TRUE" /goto :Make
/goto :ClickAuto

/goto :Make

:Done
/sendkey up ctrl
/click left enviro done
/return
When i run this macro it tries to place the items in the brew barrel before the brew barrel opens up, so it drops everything on the groud and then the brew barrel opens. Please help...

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Post by EqMule » Sat Dec 06, 2003 9:30 am

//$envopen
//returns the name of the enviro if it is open
//example: /echo $envopen | Output if successful: Oven


taken from the source... and im sure its documented in the readme as well

Code: Select all

/declare mytimer timer
/itemtarget brew barrel 
/face item
:openenv 
/click left item
/varset mytimer 3s
:waitforenvtoopen
/if "$envopen"!="brew barrel" {
    /delay 0
    /if n @mytimer<=0 /goto :openenv
    /goto :waitforenvtoopen
}
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.