Ulysses Stuff > Releases
Utime -- Show how long your players have been connected this session and total
MrPresident:
--- Quote from: Megiddo on January 03, 2008, 09:12:03 PM ---New version!
v1.20 - *(01/03/08)*
* [ADD] Client config to change colors and position of Utime HUD element, as well as the ability to disable it.
--- End quote ---
lol, you would =)
Oh... Megiddo...
Lt.Smith:
Very nice, I was looking for something like this and then this showed up :) Thanks Megiddo. I have a question though:
I was looking through the code, because what I want to do is have one database with times for all our servers. The idea is that we then add a little bit of script into our forums that retrieves a player's total time spent to sex it up a bit. In any case, I looked through the code and I'm confused.
--- Code: ---sql.QueryRow( "SELECT totaltime, lastvisit FROM utime WHERE player = " .. uid .. ";" )
--- End code ---
I understand that this fetches the total time spent for the player, but nowhere do I see a require( "mysql" ) statement. Nor do I see an sql setup anywhere. As such, I suppose I have 2 questions:
1) What is the function of the SQL queries?
2) How can I edit this to work off a central database? I imagine the queries can be used as-is, but I still haven't figured out what database they're transmitting to.
Thanks in advance,
Smith
Megiddo:
It's using litesql right now, so you just have to change the function calls and require mysql. :)
Lt.Smith:
I love you :) Thanks!
TehBigA:
Lol I love the way after I make the super customization that u make it too XD <3
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version