Google is not really helping here...
Trying to use 'proper' way for sleeping...
- Code: Select all
function dropItemFromHand(){
setTimeout(g.dropItemFromHand(), defaultActionWait);
}
Getting runtime error:
- Code: Select all
org.mozilla.javascript.EcmaError: TypeError: run is not a function, it is boolean.
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3951)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3929)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3962)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3981)
at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4036)
at org.mozilla.javascript.JavaAdapter.getFunction(JavaAdapter.java:552)
at adapter1.run(<adapter>)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Switched back to
- Code: Select all
function dropItemFromHand(){
g.dropItemFromHand();
customSleep();
}
Error dissappeared.
Clearly missing some knowledge here..