PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: -RICK- on 04 May, 2006, 15:27:01

Title: Block download /search for low sharders /hubs /slots Changed added timeban ect
Post by: -RICK- on 04 May, 2006, 15:27:01
Changed pm part (small bug)


-- TEST SCRIPT ( i know it has to be recoded but this is still a testscript)

-- Zoeken blocken/downloaden onder ** gig of slot/hubsetting // ?block search and downloading when share is under ** GB or hub slots setting
-- Aangevraagd door DaChuck ?// On request by DaChuck
-- -04-04-2006 ? -RICK- 2006
-- Lua 5.0
-- Het script heeft 1 minuut nodig om actief te worden // --script needs 1 minute to get fully active

Title: Re: Block download and search for low sharders (testscript)
Post by: -RICK- on 04 May, 2006, 22:44:23
hehhe yeah otherwise i get compliains :PPPPPPPPP
Title: Re: Block download and search for low sharders max hubs max slots(testscript)
Post by: eyklidis on 05 May, 2006, 11:26:23
Hi Rick

I am getting 2 strange errors? :(
1st i log on the hub with zion client 2.02 and i get 2 messages straight away
[12:15:53] *** You are not allowed to download in this hub share 20 GB atleast and Max 10 hubs or 10 Slots to get this function
[12:15:54] *** You are not allowed to download in this hub share 20 GB atleast and Max 10 hubs or 10 Slots to get this function

2nd i search for marley for example with client dc++ 0.674 and getting this
[12:19] <PtokaX> Sorry minimal allowed search length is 1.
[12:19] Syntax ...φάνεια εργασίας\0.3.4.0.dbg\scripts\shavesharev5.lua:73: bad argument #1 to `lower' (string expected, got nil)
Please give me a help or come from here voor lekker koffie drinken? :)
Thanks in advance oOO and i use ptokax 0.3.4.0 dbg :P
Title: Re: Block download and search for low sharders max hubs max slots(testscript)
Post by: -RICK- on 05 May, 2006, 12:41:37
the error is solved

and zion is sending unknown data ( i blocked that also) it saves data

you can try to disabel that mark line
174

UnknownArrival = function (user, data)
    if BlockProfiles[user.iProfile][1] == 1 and ((user.iShareSize <= (Minshare*1024*1024*1024)) or (user.iSlots > MaxSlots) or (user.iHubs > MaxHubs)) and Block[user.sName] ~= nil  then
--        user:SendData(msgb)         << this line
        return 1
    end
end


Title: Re: Block download /search for low sharders /hubs /slots Changed(testscript)
Post by: eyklidis on 07 May, 2006, 10:09:24
Hi Rick

Sorry for being stupid and late but i was testing it without uncheking the option inside zion client  Send $UserIP for all users :o

The script is working fine and thanks for your fast reply  ;)