PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Request for scripts => Topic started by: XTC on 08 August, 2008, 16:27:02

Title: Uptime script
Post by: XTC on 08 August, 2008, 16:27:02
I would like to have a script that kick users for a week if the user havent been in the hub for 40 hour/month. That would make the users stay in the hub 40 hour in the hub every month. The positive thing with this is users have to stay in the hub and share. And 40 hour/month is not much. Users have to be able to check their uptime in the hub. They should see the command when they rightclick at the hub and see it. The monthly uptime should show up in a new page. eg:

1. Rightclick at the hub
2. Hubname
3..eg: "Your Monthly Uptime or Your Stat"


And the user should se this. eg:

Nick: User
Total monthly uptime: XX Day(s), XX Hour(s), XX Minute(s)
Daily average uptime: XX Hour(s), XX Minute(s)
Current Rank: .........         if not to much.

This message have do show up every time user connect to the hub.

I dont know how big this script is and if it take much time to do and if somebody would do it.

It would be great if this script could be made in both API 1 and 2 so everybody could use it. I know that People use API 2 nowdays. But I need it in API 1.

If anybody is interested in this request. Post a reply. If you want it to, maybe some scripter does this.

And to scripter. What do you think ??
Title: Re: Uptime script
Post by: Yahoo on 09 August, 2008, 14:32:45
Hello
you can give a try to TopHubbers script created by jiten
i doesnt check total hubtime
but i check Average Hubtime and if the Average Hubtime is Below the specified Average Hubtime
it send warning to the user


Title: Re: Uptime script
Post by: XTC on 09 August, 2008, 15:45:35
Ok thx.

Title: Re: Uptime script
Post by: Yahoo on 09 August, 2008, 15:58:38
change this setting in u r script

   -- Send message to users with lower than specified Average uptime (AUT) [true = on; false = off]
   bWarning = false,
   -- Minimum Average uptime (hours) that triggers the warning
   iAUT = 1,


to watever you want