PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: blackwings on 03 March, 2005, 06:09:56

Title: Simple Share Checker (LUA 5)
Post by: blackwings on 03 March, 2005, 06:09:56
A simple share checking script I made -----------------------------------------------------------
-- Simple Share Bot v.1.0
-- Made by: blackwings
--------------------------------------------------------------
-- START OF CONFIGURATION ------------------------------------
--------------------------------------------------------------
Bot = "#Share-Checker"

-- ["Profile"] = {minShare},
tlShare = {
[0] = {0},
[1] = {0},
[2] = {50},
[3] = {12},
[-1] = {5},
}

-- Choose what unit the share check should be on at line 31
-- if you change the unit, remeber the change it in the message on line 34

--------------------------------------------------------------
-- END OF CONFIGURATION --------------------------------------
--------------------------------------------------------------
KB = 1024
MB = 1048576
GB = 1073741824
TB = 1099511627776

function MyINFOArrival(user,data)
if tlShare[user.iProfile] then
local minShare = tlShare[user.iProfile][1]*GB
local minNr = tlShare[user.iProfile][1]
if user.iShareSize < minShare then
user:SendData(Bot, "Minimum share is "..minNr.." GB!!")
user:Disconnect()
end
end
end
Title:
Post by: Jerry on 28 May, 2005, 10:44:35
Hi guys,

It is possible to do into this script different share for Active users and different for passive users?

Thank you in advance for reply!