I have a very basic script designed to hire a tank merc from one of the general race merc liaisons in PoK.
The sticking point is
I've tried longer delays, but that just pauses longer before the next
Lua:
---@type Mq
local mq = require("mq")
mq.TLO.Target.RightClick()
mq.delay(2000, function()
return mq.TLO.Window("MMTW_MerchantWnd").Open()
end)
mq.delay(100)
print("Select Journeyman Merc")
--mq.cmd.notify("MMTW_MerchantWnd MMTW_TypeComboBox listselect 3")
mq.cmd("/notify MMTW_MerchantWnd MMTW_TypeComboBox listselect 3")
mq.delay(1000)
print("Select Journeyman Tank")
mq.cmd.notify("MMTW_MerchantWnd MMTW_SubtypeListBox listselect 2")
mq.exit()
mq.delay(100)
mq.cmd.notify("MMTW_MerchantWnd MMTW_HireButton leftmouseup")
mq.delay(100)
The sticking point is
mq.cmd("/notify MMTW_MerchantWnd MMTW_TypeComboBox listselect 3"). It's not selecting the Journeyman option from the dropdown when used in the running script. If I use that exact command with /lua parse, it does the job. And certainly if I use the raw command it works. I've also tried with /docommand prepended (again, mq.cmd and raw command both work).I've tried longer delays, but that just pauses longer before the next
mq.cmd (which has the expected result).

