people, i want to know how to do this on world.status :
-How much players can log in the world
-For how long the server is on
ID:270133
![]() Jan 17 2006, 8:57 am
|
|
Loduwijk wrote:
Pharaoh Atem wrote: > var/max_players client/verb/maximum_players(N as num) mob can you aplly your code to my code? |
1. Any peice of code can be modified to do anything, if you couldnt do that, it wouldnt be programming, it would be... something else.
2. No exemple given on any forum anywhere is gona be formated to your specific needs. You will not be able to copy paste it into your code and expect it to work. Those are called libraries. Answer : No, write your own from the given exemple. |
Well, that's not true. Number one, that is.
For example, stat() cannot be rewritten to display a person's suffix with red text instead of blue. Hell, you can't even make it display the mob with an altered name beside it without changing the name directly. |
FranquiBoy wrote:
1. Any peice of code can be modified to do anything, if you couldnt do that, it wouldnt be programming, it would be... something else. i dont understood his code |
Loduwijk wrote:
Pharaoh Atem wrote: > var/max_players -For how long the server is on > client/verb/maximum_players(N as num) Try to make a function that displays it in hours, minutes and seconds rather than just seconds. i want do something like : [players logged in]/[max players that can log in] |
Look up what you dont get here : http://www.byond.com/docs/ref/
|
var/max_players //Creates a new varible called max_players. It's not really complicating if you examine what it says. I mean I don't fully "understood" your English, but I can kind of tell what it says by the words around it. If you don't understand how to program, then maybe you should check out ZBT. |
Make a variable for each thing you want to put into world.status.
There is already a variable for this called time belonging to the world.
Put the variables into the status. For the time, you will want to update it every once in a while.
Try to make a function that displays it in hours, minutes and seconds rather than just seconds.