See IContext.IsEnabled.
See IContext.IsInCombat.
Instance of SendToServer class provided to the script engine.
Send.StopMove();
Send.RequestItemList();
Filepath of current script.
Current version of running program.
eg: 2.3.0
See IContext.DisableBot.
Dispatch a callback within the current UI thread context
See IContext.EnableBot.
See IContext.StartCombat.
See IContext.StopCombat.
min version number eg: 2.1.1
Sets a timer for specified amount of miliseconds and resolves the promise when timeout is reached.
console.log('start');
await sleep(500);
console.log('after 500ms');
Amount of miliseconds to sleep for.
Useful for cleaning up resources when stopping the script
Example