Do you have an event or something of the sort running that would perform such a task?
|
|

Hello Rune-Server,
I've added a new load of shit to my quest interface such as Uptime, players online etc but the only problem i have is that i have to log out and back in again for it to update, how do i make the quest interface automatically update every second ?
++Rep for help
Thanks,
Diesel

Do you have an event or something of the sort running that would perform such a task?
You code it to do itSimple.
Umm something like:
requiredUpdate = true;
or
updaterequired.
Something like that, under the players online and uptime, put it under that.

put it in process (serious).
Or, have an event do it every second if you're using events.



This is what i do..Example:
Texthandler -
playerHandler.java -Code:if (c.logincount = true) { c.sendQuest("Currently [" + PlayerHandler.getPlayerCount() + "] Players ", 663); } else { c.sendQuest("Currently [" + PlayerHandler.getPlayerCount() + "] Players ", 663); }
Hope that helps..Code:public static int getPlayerCount() { int count = 0; for (int i = 0; i < players.length; i++) { if ((players[i] != null) && !players[i].disconnected) { count++; } } return count; }
| « Lending System Interface | need a few delta codes » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |