USER stats script teaser ;)
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

USER stats script teaser ;)

Started by [NL]Pur, 27 January, 2004, 14:52:51

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[NL]Pur

well i got basicilly the script working,
but i really like too know how it goes on bigger hubs first
like 400 users.
Here's looks like

Top Ten since last login			 Hub uptime: 1 hours 30 minutes 
 _____________________________________________________________________________
/  										
	<1.>	[NL]Pinkie64bit
					100.00%	1 hours 30 minutes 
	<2.>	[NL]Puru
					100.00%	1 hours 30 minutes 
	<3.>	[TGT][NL]Donna[eric]
					100.00%	1 hours 30 minutes 
	<4.>	[NL]..::]l[SilveR]l[::..
					100.00%	1 hours 30 minutes 
	<5.>	Drekbak
					100.00%	1 hours 30 minutes 
	<6.>	[adsl]ap.nl
					66.67%	1 hours 
	<7.>	susanne
					66.67%	1 hours 
	<8.>	semp
					66.67%	1 hours 
	<9.>	Bartbond008
					33.33%	30 minutes 
	<10.>	[NL]_Purmerend_2
					33.33%	30 minutes 
 _____________________________________________________________________________/


it can give

alltime stats    
alltime top 10,50 and 100
online stats
online top 10,50 and 100

plz some feedback on it, stuff i can add or summthing :)

plop

cool start, keep it going.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

[NL]Pur


plop

i wonder which clone talks the most in my hub. lol

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

[NL]Pur


plop


just 1 client here 2 work. lol

was working on some modifications of the kick/ban functions of a.i..
got a bit tired of unbanning myself that i made a few clones.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

[NL]Pur

plopper de plop

that are many plops :D

plop

QuoteOriginally posted by [NL]Pur
plopper de plop

that are many plops :D
and 2 plops who plop them plop eeehm out.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

c h i l l a

dunno.. but I think there is a function from RabidWombat and from Tezlo in there.

You have 2 table right, one is current one is the total time  right??

so you run through both each tick..
+ you also check on the second if the user is in the first table...

you know a script called hubtime??

well here the thing either have one table with all user in it, and count each one up, and using the GetItemByName()  function.

Or use 2 tables (current Hubtime), but only count one,
the current online time, and when a user disconnects add that time to, the main table. I think the most efficient, solution.

Or Plops way, store the Connection time, and on disconnect calculate the time between.
Also very good when you have a timer, that will like only calcutlate people who been online over 10 min or so.
Then I think its the best you can have actually.
hmm.. i think I see something here to update myself ;).

But more as a combination of both..  since I don't like the Julianday() function.. think its to high for me. (Although I'm stoned :D)

[NL]Pur

i used the functions
function Serialize(tTable,sTableName,hFile,sTab)   <-- i think this is rabids one


sorting i don't know ,        tezlo ?
function sorting(table)


i used getitembyname also
but since it's giving users online that aren't online
and is bugged like **$#(  i'm not using it.

futher of all i don't care about accurency of the script since i'm giving every one online each 15 min a point.

if they just login a 2 sec before i give point they may find themselves lucky.

the rest i've written from scratch with help of phatty and guibs :)

i'll add credits for the two functions i have used
anyone knows who wrote sorting ?


i had the script first with on disconnect a add but i found that the alltime stats we're a bit fake.

i don't recommend it too be run in a big hub

c h i l l a

nope I thaught this year thing was from tezlo.
but sorting no idea, looks like nomral code to my, I als use it, but in different ways.

well..  okey.

And GetItemByName returned nick online when they weren't.
Hu..  you must give an exsample please.
I only know GetItemByName work lowercase as upper as normal.

Well I thaught you wanted to optimes it, and if its only every 15 min. then why not. Only use one table?

[NL]Pur

strange thing is i didn't saw the hubtime script since today.

and the function that i wrote looks simular too his.

VidFamne

Look here  to see if you could get some ideas. ;)

c h i l l a

the idea is the same I'd say, but your is different, totally, I think. Same aim but different handling / Style ;)

[NL]Pur

true,

tho i'm thinking of extending this one a little bit futher soon.

SMF spam blocked by CleanTalk