Minimum Share 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

Minimum Share script

Started by EXNET OWNER, 08 September, 2004, 01:14:31

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

EXNET OWNER

I need a script that wont let users in without 500mb of share, this must be standalone and not built into another script. I must also be able to do the function +checkshare and it will give me an answer whether the user has the correct share amount

thanks

p.s only op's can use the +checkshare command

BottledHate

#1
what is the point of a check share command for size, if
the script is not supposed to let that size and bellow in?

at any rate... do a strfind on the myinfo string for the byte size... then compare it to the bytes in 500mb.

this does half of what u want, the other half is pointless the way it was explained.

function NewUserConnected(user)
   local s,e,Share = strfind(user.sMyInfoString, "^%$MyINFO %$ALL [^ ]+ [^$]*%$ $[^$]+[^$]%$[^$]*%$%s*(%d+)%$" )
   if tonumber(Share) < 524288000 then
      --share too small, do stuff.
   end
end


i just had an idea!!! instead of tying out +checkshare ....

look over to the right, and there is their share!

lol, sorry :D

-BH
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

BottledHate

#2
nice script, i'll have to remember that stuff about
waiting to boot so users are sure t get their parting
messages.

QuoteOriginally posted by Mutor
P.S. For BottledHate: do stuff. <-Love that bit 8-)

 :D what, you don't know the universal dostuff function ????  ;)

lol...

i was trying to encourage learning.

-BH
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

Herodes

yeah I love doStuff() it is so much better than toDo() ... :D

Btw have you checked ShaveShare v5 ?

??????Hawk??????

#4
heya peeps  



doStuff() and toDo()   are so Outdated..

try the new   ExecuteCrap()    ..   it works Great..   :P

 :D  :D  :D  :D  :D  :D

Herodes

QuoteOriginally posted by ??????Hawk??????
heya peeps  



doStuff() and toDo()   are so Outdated..

try the new   ExecuteCrap()    ..   it works Great..   :P

 :D  :D  :D  :D  :D  :D
loly thats still something to play with ;D

BottledHate

hmmmmmmm, that function looks pretty damn cool...
very efficient, gets to the point, and leaves nothing
for you to wonder about.... :D :D i'll def have to use
 executeCrap() in my next help post... LOL


-BH
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

SMF spam blocked by CleanTalk