ElBato Posted November 18, 2014 Share Posted November 18, 2014 I want to do this and I have no idea. This image is a time counter that the character is online, the counter returns to 0 when it returns to login. This image is the same as the first, but the time that the server is online The part in the htm ready, but I need the java side Thanks in advance and sorry for my english.. Link to comment Share on other sites More sharing options...
0 ExCaLiBuR® Posted December 5, 2014 Share Posted December 5, 2014 // Server Time private static String getServerRunTime() { int timeSeconds = (GameTimeController.getGameTicks() - 36000) / 10; String timeResult = (timeSeconds >= 86400 ? Integer.toString(timeSeconds / 86400) + " Days " + Integer.toString((timeSeconds % 86400) / 3600) + " hours." : Integer.toString(timeSeconds / 3600) + " Hours " + Integer.toString((timeSeconds % 3600) / 60) + " mins."); return timeResult; } Link to comment Share on other sites More sharing options...
0 nikosdevil20 Posted November 19, 2014 Share Posted November 19, 2014 I want to do this and I have no idea. This image is a time counter that the character is online, the counter returns to 0 when it returns to login. This image is the same as the first, but the time that the server is online The part in the htm ready, but I need the java side Thanks in advance and sorry for my english.. you want that on npcright?? Link to comment Share on other sites More sharing options...
0 Cray-Z Posted November 19, 2014 Share Posted November 19, 2014 waiting for this too Link to comment Share on other sites More sharing options...
0 ElBato Posted November 19, 2014 Author Share Posted November 19, 2014 you want that on npcright?? Yes Link to comment Share on other sites More sharing options...
0 Sawadee Posted November 20, 2014 Share Posted November 20, 2014 hmmm nice one i would like to have link to download it anyone have this System ? Link to comment Share on other sites More sharing options...
0 ElBato Posted November 21, 2014 Author Share Posted November 21, 2014 Any ideas anyone? :-[ Link to comment Share on other sites More sharing options...
0 Dev Atlas Posted November 28, 2014 Share Posted November 28, 2014 well the only sure is that you will need system coding.. but i haven't understand yet where are you gonna add that image? Link to comment Share on other sites More sharing options...
0 ElBato Posted December 4, 2014 Author Share Posted December 4, 2014 (edited) Sorry for the delayed response, I was sick. I am creating a npc/command which displays the statistics of the character and server. What I lack is the code to display the time line of the session character and server. Sorry for my eng Edited December 4, 2014 by ElBato Link to comment Share on other sites More sharing options...
0 Fanky Posted December 5, 2014 Share Posted December 5, 2014 so you actually need a time counter that will get increased until a player log out? Link to comment Share on other sites More sharing options...
0 ElBato Posted December 6, 2014 Author Share Posted December 6, 2014 so you actually need a time counter that will get increased until a player log out?Yes // Server Time private static String getServerRunTime() { int timeSeconds = (GameTimeController.getGameTicks() - 36000) / 10; String timeResult = (timeSeconds >= 86400 ? Integer.toString(timeSeconds / 86400) + " Days " + Integer.toString((timeSeconds % 86400) / 3600) + " hours." : Integer.toString(timeSeconds / 3600) + " Hours " + Integer.toString((timeSeconds % 3600) / 60) + " mins."); return timeResult; } Thanks ExCaLiBuR®, u are amazing.. 1 less, lack the other :D Link to comment Share on other sites More sharing options...
0 MeVsYou Posted December 10, 2014 Share Posted December 10, 2014 Locked Link to comment Share on other sites More sharing options...
Question
ElBato
The part in the htm ready, but I need the java side
Thanks in advance and sorry for my english..
Link to comment
Share on other sites
11 answers to this question
Recommended Posts