It does not refresh every 60 seconds and I've tried the methods responsible for calculating the minutes to hours getGameTime, getGameDay, getGameHour, getGameMinute and did not work what I'm doing wrong?
.Any Solution or make the soulshot Toggle
somewon can help me how i can make my custom soulshot left click toggle
all works only toggle i can't manage it, 😞
thanks in advance.
I was looking for server with a low rates,eventually i found l2 elixir.I Joined beta and after so many years since 2008 i found a friend that we played together, memories came back. i cant wait for the grand oppening!. dont miss it!
Question
l2jkain
Hello I'm creating an .info I wanted by an option to show how many hours the server is online but it is not working correctly the code is thus :
aCis
public static String getServerRunTime() { int timeSeconds = (GameTimeTaskManager.getInstance().getGameTime()); String timeResult = ""; if (timeSeconds >= 86400) timeResult = Integer.toString(timeSeconds / 86400) + " Days " + Integer.toString((timeSeconds % 86400) / 3600) + " hours"; else timeResult = Integer.toString(timeSeconds / 3600) + " Hours " + Integer.toString((timeSeconds % 3600) / 60) + " mins"; return timeResult; } original part jServer H5 public static String getServerRunTime() { int timeSeconds = (GameTimeController.getGameTicks() - 36000) / 10; String timeResult = ""; if (timeSeconds >= 86400) timeResult = Integer.toString(timeSeconds / 86400) + " Days " + Integer.toString((timeSeconds % 86400) / 3600) + " hours"; else timeResult = Integer.toString(timeSeconds / 3600) + " Hours " + Integer.toString((timeSeconds % 3600) / 60) + " mins"; return timeResult; }It does not refresh every 60 seconds and I've tried the methods responsible for calculating the minutes to hours getGameTime, getGameDay, getGameHour, getGameMinute and did not work what I'm doing wrong?
Edited by l2jkain2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now