Jump to content

Hafdellaren

Members
  • Posts

    10
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

1131 profile views

Hafdellaren's Achievements

Newbie

Newbie (1/10)

3

Reputation

  1. Great, but I still have problems jumping over the wilderness ditch when first time jumping in the session.
  2. Looks like a modified version of MattGp,s script?
  3. 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
  4. 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);
  5. 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
  6. 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/
  7. Hi, so what "execution environment JRE" should i use? It's set as CDC-1.1/Foundation-1.1 by default. Thanks
  8. May I test this please?
×
×
  • Create New...