MMOMinion
How to implement the sleep function in minion? - Printable Version

+- MMOMinion (https://www.mmominion.com)
+-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87)
+--- Forum: Support - English, Deutsch, 中文 (https://www.mmominion.com/forumdisplay.php?fid=92)
+---- Forum: English Support & Questions (https://www.mmominion.com/forumdisplay.php?fid=93)
+---- Thread: How to implement the sleep function in minion? (/showthread.php?tid=24574)



How to implement the sleep function in minion? - gb4s2kk9b9 - 07-25-2024

<p>How to implement the sleep function in minion?<br></p>


RE: How to implement the sleep function in minion? - gb4s2kk9b9 - 07-25-2024

I found a function that barely works.
ml_global_information.Queue()
The definition of this function is inside the Bots\FFXIVMinion64\LuaMods\ffxivminion\ffxiv_init.lua file.
Use it like this: ml_global_information.Queue(5000,function() Player:MoveTo(2,2,9) end)
The problem with this is that it does not block the execution of subsequent code. The delay only applies to the operation input to this Queue function.