PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: 6Marilyn6Manson6 on 22 December, 2004, 14:09:53

Title: BadShare
Post by: 6Marilyn6Manson6 on 22 December, 2004, 14:09:53
I have this scripts..... but.. not found:


BadShare = 11534336 -- Bad Share Value
BanTime = 1440 --In minutes

msg = "\r\n\r\n\tBad share value detected!\r\n"
msg = msg.."\tYour share [ "..format("%.2f GB",BadShare /(1024 * 1024 * 1024)).." ] is unacceptable\r\n"
msg = msg.."\tYour banned for [ "..BanTime.." ] minutes.\r\n\r\n"

function DataArrival(user,data)
if strsub(data, 1,7) == "$MyINFO" then
local s,e,share = strfind(data, "(%d+)%$%|$")
if tonumber(share) ==  BadShare then
user:SendData(msg)
user:TimeBan(BanTime)
end
end
end



why? thanks a lot
Title:
Post by: blackwings on 22 December, 2004, 14:20:46
don't understand your problem , please explain more :)

and a small tip marilyn, use [*CODE]YOUR CODE[*/CODE]   (without the *), it makes it easier for everyone to look at the code etc.
Title:
Post by: 6Marilyn6Manson6 on 22 December, 2004, 14:25:29
QuoteOriginally posted by blackwings
don't understand your problem , please explain more :)

and a small tip marilyn, use [*CODE]YOUR CODE[*/CODE]   (without the *), it makes it easier for everyone to look at the code etc.

now is ok but..script not found :C
Title:
Post by: Typhoon on 22 December, 2004, 17:35:28
use a CDM client for that , much better and more acurate


and why waste resources on the hub when clients can do it ;o)


Typhoon?
Title:
Post by: 6Marilyn6Manson6 on 22 December, 2004, 18:30:59
I use iDC++ but.. in my hub for script use DC++ and i have login of mldonkey and... with this script.. i want stop it.. is it possible? what is error? thanks a lot
Title:
Post by: Typhoon on 23 December, 2004, 16:26:26
hi MM

use this one for a try ..

if strfind(user.sMyInfoString, "mldonkey", 1, 1) or strfind(user.sMyInfoString, "replika", 1, 1) or strfind(user.sMyInfoString, "pepek", 1, 1) or strfind(user.sMyInfoString, "mldc", 1, 1) then
user:SendData(BotName, "All mlDonkey traces cause disconnection ... begone foul swine ... |")
user:Disconnect()
return 1
end


hope you figure it out ;o)


Typhoon?