PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: Yahoo on 27 November, 2007, 09:05:29

Title: Upload Limit Checker
Post by: Yahoo on 27 November, 2007, 09:05:29
 Hello SIR
i will like to have a script which can or will check the upload limits of all users. where the owner will put the minimum and maximum speed limit

The maximum limit can be set to unlimited
as there are users in my hub who put upload limit like 44kbps and all

Those users whose limits are below the prefered limits must not be allowed to enter the hub

And the ops whose limits are below the prefered limits must get message like
"Your Speed Limits are below the set ones so please increase your limits otherwise you will be removed from opship"

Masters must not go through this check

Thanks in Advance
Title: Re: Upload Limit Checker
Post by: Yahoo on 01 December, 2007, 18:42:22
no replies  :-[

the idea was tht bad????
Title: Re: Upload Limit Checker
Post by: Northwind on 08 December, 2007, 13:26:13
Not bad idea but its cristmas time and coders are humans too and they will spend time with their loved ones. Dual posting is not the answer :D just keep waiting and the masters will answer if they want. I havent been around quite time and my lua skills are very bad so i cant hel ya out. I hope CB will help :D
Title: Re: Upload Limit Checker
Post by: CrazyGuy on 08 December, 2007, 15:29:54
It's not really possible to check a line's speeds from the hubside.
The only way this can be done is sending a specific file with a fixed size to a client multiple times and take the average time it takes.
However, clients do not just accept files, so you may need this to be scripted from a client side as well.
And it's not gonna be possible to force all your users to use a client that supports LUA just for your hub  :P
Title: Re: Upload Limit Checker
Post by: bastya_elvtars on 08 December, 2007, 16:41:03
This has been asked before. NO, it is not possible, check it manually. You know, manpower is also necessary for the effective maintenance of a DC hub.
Title: Re: Upload Limit Checker
Post by: Yahoo on 09 December, 2007, 07:56:29
thank u mutor

but there is sum prob the script is not working
i changed
local minlimit = 44

to
local minlimit = 1024
and then i tried to connect the hub with upload limit of 100kbps
the script didnt blocked me

can u please have a look again
Title: Re: Upload Limit Checker
Post by: Yahoo on 17 December, 2007, 15:22:23
hello mutor
i am getting the following error
limit.lua:4: attempt to index global 'Core' (a nil value)
Title: Re: Upload Limit Checker
Post by: Thor on 17 December, 2007, 15:32:41
You are using old PtokaX (older than 0.3.6.0d). Upgrade your hubsoftware.
Title: Re: Upload Limit Checker
Post by: Yahoo on 18 December, 2007, 14:00:44
i am using the latest version of ptokax check out
This hub is running PtokaX DC Hub 0.3.6.0

still i am getting tht problem
limit.lua:4: attempt to index global 'Core' (a nil value)
Title: Re: Upload Limit Checker
Post by: Yahoo on 19 December, 2007, 08:49:45
hello
i tried to search for ptokax version 0.3.6.0d but was unsuccessful

so can any1 giv me the link were i could find tht version