Trying 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's
mq2events_character.ini file:
Unlock door
Code:
[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