Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
mq2events_character.ini
file:[LockedDoor]
trigger=#*# and you're not holding the key#*#
command=/multiline ; /echo Unlocking the door ; /timed 1 /itemnotify "Cheirometric Lockpick Device" leftmouseup ; /timed 3 /doortarget ; /timed 5 /click left door ; /timed 7 /autoinv ; /timed 9 /autoinv
Both mq2rogue and unreleased Brad automatically pick locksTrying to do this month's collection set in Karnor's Castle with a bard who had lockpick tools. I couldn't figure out how to automate this. Was using CTWN's awesome ground spawn plugin but the 2 locked doors kept kicking my ass.
Would need to event check for message "it's locked and you're not holding the key", then pick up the lockpick tool of your choice so it's on your cursor, then target the nearest door and click the door while holding the lockpick device.
A bit beyond my scripting capabilities for now.
Edit: Found a method that works for me... inserted the following code in the bard'smq2events_character.ini
file:
Unlock door:[LockedDoor] trigger=#*# and you're not holding the key#*# command=/multiline ; /echo Unlocking the door ; /timed 2 ; /itemnotify "Cheirometric Lockpick Device" leftmouseup ; /timed 4 ; /doortarget ; /timed 6 ; /click left door ; /timed 8 ; /autoinv
cmV0dXJuIHsKIFsic2luZ2xlY29tbWFuZCJdID0gZmFsc2UsCiBbImNvbW1hbmQiXSA9ICIiLAogWyJsb2FkIl0gPSB7CiAgWyJ6b25lIl0gPSAiIiwKICBbImNsYXNzIl0gPSAiIiwKICBbImFsd2F5cyJdID0gZmFsc2UsCiB9LAogWyJjYXRlZ29yeSJdID0gIkdlbmVyYWwiLAogWyJ0eXBlIl0gPSAiZXZlbnRzIiwKIFsicGF0dGVybiJdID0gIiMqI2FuZCB5b3UncmUgbm90IGhvbGRpbmcgdGhlIGtleSMqIyIsCiBbImNvZGUiXSA9ICJiRzlqWVd3Z2JYRWdQU0J5WlhGMWFYSmxLQ2R0Y1NjcENncHBaaUJ1YjNRZ2NHRmphMkZuWlM1c2IyRmtaV1JiSjJWMlpXNTBjeWRkSUhSb1pXNGdjSEpwYm5Rb0oxUm9hWE1nYzJOeWFYQjBJR2x6SUdsdWRHV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script is intended to be imported to Lua Event Manager (LEM). Try "\a-t/lua run lem\a-x"') end
local function event_handler()
-- pause automation, alternatively have autostand off
-- mq.cmdf('/%s pause on', mq.TLO.Me.Class.ShortName())
mq.cmd('/mqp on')
mq.delay(200)
mq.cmd('/itemnotify "Mechanized Lockpicks" leftmouseup')
mq.delay(200)
mq.cmd('/doortarget')
mq.delay(200)
mq.cmd('/click left door')
mq.delay(200)
mq.cmd('/autoinv')
mq.delay(200)
mq.cmd('/mqp off')
end
return {eventfunc=event_handler}
let me be real clear here - you're doing a "/whatever pause on" like a /rog pause onConverted to LEM - You'll need to change /mqp on/off to pause your automation, if it's not a macro, and change mechanized lockpicks to whatever you are using. Tested in Karnor's with Groundgrab.mac
Unlock Door:cmV0dXJuIHsKIFsic2luZ2xlY29tbWFuZCJdID0gZmFsc2UsCiBbImNvbW1hbmQiXSA9ICIiLAogWyJsb2FkIl0gPSB7CiAgWyJ6b25lIl0gPSAiIiwKICBbImNsYXNzIl0gPSAiIiwKICBbImFsd2F5cyJdID0gZmFsc2UsCiB9LAogWyJjYXRlZ29yeSJdID0gIkdlbmVyYWwiLAogWyJ0eXBlIl0gPSAiZXZlbnRzIiwKIFsicGF0dGVybiJdID0gIiMqI2FuZCB5b3UncmUgbm90IGhvbGRpbmcgdGhlIGtleSMqIyIsCiBbImNvZGUiXSA9ICJiRzlqWVd3Z2JYRWdQU0J5WlhGMWFYSmxLQ2R0Y1NjcENncHBaaUJ1YjNRZ2NHRmphMkZuWlM1c2IyRmtaV1JiSjJWMlpXNTBjeWRkSUhSb1pXNGdjSEpwYm5Rb0oxUm9hWE1nYzJOeWFYQjBJR2x6SUdsdWRHVnVaR1ZrSUhSdklHSmxJR2x0Y0c5eWRHVmtJSFJ2SUV4MVlTQkZkbVZ1ZENCTllXNWhaMlZ5SUNoTVJVMHBMaUJVY25rZ0lseGhMWFF2YkhWaElISjFiaUJzWlcxY1lTMTRJaWNwSUdWdVpBb0tiRzlqWVd3Z1puVnVZM1JwYjI0Z1pYWmxiblJmYUdGdVpHeGxjaWdwQ2lBZ0lDQXRMU0J3WVhWelpTQmhkWFJ2YldGMGFXOXVMQ0JoYkhSbGNtNWhkR2wyWld4NUlHaGhkbVVnWVhWMGIzTjBZVzVrSUc5bVpnb2dJQ0FnTFMwZ2JYRXVZMjFrWmlnbkx5VnpJSEJoZFhObElHOXVKeXdnYlhFdVZFeFBMazFsTGtOc1lYTnpMbE5vYjNKMFRtRnRaU2dwS1FvZ0lDQWdiWEV1WTIxa0tDY3ZiWEZ3SUc5dUp5a0tJQ0FnSUcxeExtUmxiR0Y1S0RJd01Da0tJQ0FnSUcxeExtTnRaQ2duTDJsMFpXMXViM1JwWm5rZ0lrMWxZMmhoYm1sNlpXUWdURzlqYTNCcFkydHpJaUJzWldaMGJXOTFjMlYxY0NjcENpQWdJQ0J0Y1M1a1pXeGhlU2d5TURBcENpQWdJQ0J0Y1M1amJXUW9KeTlrYjI5eWRHRnlaMlYwSnlrS0lDQWdJRzF4TG1SbGJHRjVLREl3TUNrS0lDQWdJRzF4TG1OdFpDZ25MMk5zYVdOcklHeGxablFnWkc5dmNpY3BDaUFnSUNCdGNTNWtaV3hoZVNneU1EQXBDaUFnSUNCdGNTNWpiV1FvSnk5aGRYUnZhVzUySnlrS0lDQWdJRzF4TG1SbGJHRjVLREl3TUNrS0lDQWdJRzF4TG1OdFpDZ25MMjF4Y0NCdlptWW5LUXBsYm1RS0NuSmxkSFZ5YmlCN1pYWmxiblJtZFc1alBXVjJaVzUwWDJoaGJtUnNaWEo5IiwKIFsibmFtZSJdID0gIlVubG9jayBEb29yIiwKfQ==
Unlock Door:local mq = require('mq') if not package.loaded['events'] then print('This script is intended to be imported to Lua Event Manager (LEM). Try "\a-t/lua run lem\a-x"') end local function event_handler() -- pause automation, alternatively have autostand off -- mq.cmdf('/%s pause on', mq.TLO.Me.Class.ShortName()) mq.cmd('/mqp on') mq.delay(200) mq.cmd('/itemnotify "Mechanized Lockpicks" leftmouseup') mq.delay(200) mq.cmd('/doortarget') mq.delay(200) mq.cmd('/click left door') mq.delay(200) mq.cmd('/autoinv') mq.delay(200) mq.cmd('/mqp off') end return {eventfunc=event_handler}
It is obviously, but it is still there, would be better (and less confusing for folks) if it wasn't.Am I mistaken in that that part is commented out in the script example?