Restriction script
 

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

Restriction script

Started by sphinx_spb, 27 July, 2007, 15:42:07

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sphinx_spb

Can I ask a script or somewhat for this: enter hub is free, but for download user must share 5G, and for search 8G (for example). I saw this on one Verlihub. Is this possible with Ptokax?

Mr.T

where in the scrip can i change to 50gb share limit  :)
i have find it lol :)

sphinx_spb

#2
Hi, Mutor! Big thanks for the script! But...

[10:56] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)
[10:59] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)
[11:12] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)
[13:14] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)
[15:25] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)
[16:36] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)


I have no idea why this error occurs...
Maybe wrong pattern

local s,e,search = string.find(data,"([^%?]+)|$")

(string 85)

bastya_elvtars

Quote from: sphinx_spb on 18 August, 2007, 16:10:31

[10:56] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)
[10:59] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)
[11:12] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)
[13:14] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)
[15:25] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)
[16:36] Syntax C:\ptokax\scripts\Shareres.lua:87: attempt to concatenate local 'search' (a nil value)


local s,e,search = string.find(data,"([^%?]+)|$")

I don't get it. What is this line supposed to do, Sir?
Everything could have been anything else and it would have just as much meaning.

sphinx_spb

Well, script is working fine. But this error is occurs sometimes, as you see.
I think, this line is pattern for users' search requests, doesn't it?

bastya_elvtars

The question was targeted at Mutor. :)
In fact, I really do not get what that code should do, why no active and passive search requests are handled separately etc.
Everything could have been anything else and it would have just as much meaning.

sphinx_spb

Тhanks for your effort, Mutor, i really appreciate it! :D
I will test the script now.

baba.runner

Hi Mutor

Thanks for this interesting Script.

The only issue I have with it , is that it does not kick a user when he tried a certain time to download or search, when he did not match the requirements. Perhaps it is due to the fact that I use also Leviathan, a all in one Script!
I found in your script the place where it sends the command to timeban I think it is user:timeban(..........
Can I change that to use a Leviathan command such as !drop or another command?

Thx for your help

SMF spam blocked by CleanTalk