• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

do you know how to wait 3 seconds or sleep 3 sec on otclient v8

i try
sleep
delay

both do not work.

btw i am i scope cavebot
What do you want to delay?

There it probably no such function as 'sleep'. It would freez whole client for 3 seconds.
Only way to call something with delay is to make a function and create scheduled event:
Lua:
scheduleEvent(function() print("1 second delay") end, 1000)
You can pass variables by defining them above:
Lua:
local printText = "test text"
scheduleEvent(function() print(printText) end, 1000)
 
cavebot 1.3 do not like

scheduleEvent(function() print("1 second delay") end, 1000)

it in its ingameeditor.

Do you have any other solution ?

Btw what's best in otclient v8 git to look for functions build in?
 
Back
Top