Brought back an old friend from the dead... /click left door
You do not *HAVE* to face the door to "click" it but I still recommend that you do, your char doesn't need the attention...
Usage:
Sub OpenDoor
:retrydoortarget
/doortarget DOOR1
/delay 1
/if (!${Switch.ID}) {
/goto :retrydoortarget
}
/face door nolook
/delay 1
:retryopendoor
/if (!${Switch.Open}) {
/click left door
/delay 1s
/goto :retryopendoor
}
/return
MQ2Main: Enabled mercs for Group Min/Max/Avg, fixed Me.FirstBook and Me.LastBook
MQ2SpellSearch: Updated target types
MQ2MMONoWelcome: Will now report if offset is not found
MQ2MyButtons: Updated to save/restore window position/size
MQ2Main: Fixed MRU ini issue
MQ2Main: Added code to report and fail if read buffer is too small for Ini
MQ2MMOTLO: Added code to report and fail if read buffer is too small for MMOIni
Updated to core MQ2-20131215
MacroQuest2.com Changes:
12-15-2013 by EqMule
This is NOT a critical update (no need to update unless you really need the following
I just added FindItemByID and renamed FindItem to FindItemByName
Updated ${Mercenary.State} to return "NOMERC" if you dont have a merc.
There is a /while command in right now (has been for a while -pun intended)
I just wasnt ready to announce it earlier, look, this is extremely beta.
IF you are gonna try it, you cannot expect it to work perfectly
I basically only tried:
/while (${Target.ID}) {
/delay 1s <--- IMPORTANT
/echo Hi there we have a target
}
You can NOT do:
/while (something) /echo hi there
right now it NEEDS the {} enclosure...
and please unless you want your cpu to freak out... use a "/delay something" within that closure...
see my example above (the <-- IMPORTANT)