-
Posts
10 -
Joined
-
Last visited
-
Feedback
0%
Everything posted by Hafdellaren
-
Great, but I still have problems jumping over the wilderness ditch when first time jumping in the session.
-
Looks like a modified version of MattGp,s script?
-
Now it just says 12:45:43 from login screen and aswell when it runs EDIT: It works now. Changed -> final long runTime = System.currentTimeMillis() - startTime; To -> long runTime = System.currentTimeMillis() - startTime; and moved it to onPaint
-
At the login screen it says; Elapsed Time - 00:00:00 and when it actually starts ingame it just says 12:25:06 and stays like that. So I've added private long startTime; final long runTime = System.currentTimeMillis() - startTime; public final String formatTime(final long ms){ long s = ms / 1000, m = s / 60, h = m / 60; s %= 60; m %= 60; h %= 24; return String.format("%02d:%02d:%02d", h, m, s);} then to onStart I've added startTime = System.currentTimeMillis(); and onPaint: g.drawString("Elapsed Time: " + formatTime(startTime), 10, 332);
-
How do I use the string in onPaint? right now I have g.drawString("Elapsed Time: " + startTime, 20, 265); but it isn't working so well lol
-
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
Hafdellaren replied to Apaec's topic in Tutorials
I feel you. I found this guide tho, hopefully that will teach us some more http://osbot.org/forum/topic/28798-pandemics-scripting-series-part-i-setup-and-basic-logic-updated-for-osbot-2/ -
A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec
Hafdellaren replied to Apaec's topic in Tutorials
Hi, so what "execution environment JRE" should i use? It's set as CDC-1.1/Foundation-1.1 by default. Thanks -
May I test this please?