PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: EXNET OWNER on 08 September, 2004, 01:14:31

Title: Minimum Share script
Post by: EXNET OWNER on 08 September, 2004, 01:14:31
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
Title:
Post by: BottledHate on 08 September, 2004, 02:11:33
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
Title:
Post by: BottledHate on 08 September, 2004, 02:53:24
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
Title:
Post by: Herodes on 08 September, 2004, 10:57:49
yeah I love doStuff() it is so much better than toDo() ... :D

Btw have you checked ShaveShare v5 ?
Title:
Post by: ??????Hawk?????? on 08 September, 2004, 18:23:03
heya peeps  



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

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

 :D  :D  :D  :D  :D  :D
Title:
Post by: Herodes on 09 September, 2004, 02:41:10
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
Title:
Post by: BottledHate on 09 September, 2004, 02:51:06
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