PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: Ajax on 29 May, 2005, 18:06:11

Title: Fake bot
Post by: Ajax on 29 May, 2005, 18:06:11
helpme please
errors.
fixed please

sBot = "Fake Share"

badShare = { "10000000000","5368709120","10737418240","13630010000","16106127360",
"21474836480","26843545600","27000000000","32212254720","7970010000",
"37580963840","37970010000","6599201000000","65992010000000","36772010000000",
"3677201000000","42949672960","48318382080","214266156265","53687091200",
"59055800320","1747201000000","16772010000000","147720100000000","10240000000000",
"64424509440","65719010000","69793218560","75161927680","80530636800","85899345920",
"91268055040","96636764160","102005473280","102400000000","107374182400","118648471552",
"128849018880","140301549174","161061273600","174720100000","183287729356","214748364800",
"268435456000","322122547200","375809638400","107524506255.36","429496729600","536870912000",
"657190100000","1024000000000","183287729357","102392020337","13625783747","174719269601",
"87671019929.6","88884348190.72","90001039687.68","92449171046.4","95627446845.44","91053306675.2",
"96926674452.48","96851512524.8","97817880166.4","98784247808","99997576069.12","105226698752",
"110004849868.8","119367878574.08","120001386250.24","111110803947.52","123319248486.4","103841571799.04",
"124231929036.8","125455994716.16","97817880166.4","125831804354.56","199715979264","199995152138.24",
"181236882472.96","99943888977.92","221652524728.32","276263033896.96","112989852139.52","158537980313.6",
"65712999629","26993869455","140295106724" }

function Main()
   frmHub:RegBot(sBot)
end

function NewUserConnected(user)
   if (checkFake(user)) then
      user:SendPM(sBot, "You are using Fake Share.")
      SendToAll(sBot, "The user "..user.sName.." has been banned for Fake Share.")
      user:Ban()
   end
end

function checkFake(user)
   local s, e, shared = strfind(user.sMyInfoString, "$ALL S+ .-$ $.+.$.-$(%d+)")
end
Title:
Post by: Dessamator on 29 May, 2005, 18:21:16
use nl's gui converter !
Title:
Post by: TiMeTrAVelleR on 29 May, 2005, 20:21:36
--Lua 5--

sBot = "Fake Share"

badShare = { "10000000000","5368709120","10737418240","13630010000","16106127360",
"21474836480","26843545600","27000000000","32212254720","7970010000",
"37580963840","37970010000","6599201000000","65992010000000","36772010000000",
"3677201000000","42949672960","48318382080","214266156265","53687091200",
"59055800320","1747201000000","16772010000000","147720100000000","10240000000000",
"64424509440","65719010000","69793218560","75161927680","80530636800","85899345920",
"91268055040","96636764160","102005473280","102400000000","107374182400","118648471552",
"128849018880","140301549174","161061273600","174720100000","183287729356","214748364800",
"268435456000","322122547200","375809638400","107524506255.36","429496729600","536870912000",
"657190100000","1024000000000","183287729357","102392020337","13625783747","174719269601",
"87671019929.6","88884348190.72","90001039687.68","92449171046.4","95627446845.44","91053306675.2",
"96926674452.48","96851512524.8","97817880166.4","98784247808","99997576069.12","105226698752",
"110004849868.8","119367878574.08","120001386250.24","111110803947.52","123319248486.4","103841571799.04",
"124231929036.8","125455994716.16","97817880166.4","125831804354.56","199715979264","199995152138.24",
"181236882472.96","99943888977.92","221652524728.32","276263033896.96","112989852139.52","158537980313.6",
"65712999629","26993869455","140295106724" }

function Main()
frmHub:RegBot(sBot)
end

function NewUserConnected(user)
if (checkFake(user)) then
user:SendPM(sBot, "You are using Fake Share.")
SendToAll(sBot, "The user "..user.sName.." has been banned for Fake Share.")
user:Ban()
end
end

function checkFake(user)
local s, e, shared = string.find(user.sMyInfoString, "$ALL S+ .-$ $.+.$.-$(%d+)")
end
Title:
Post by: bastya_elvtars on 29 May, 2005, 23:49:45
QuoteOriginally posted by Dessamator
use nl's gui converter !

Better not encourage ppl on doing this. It's a great tool, but sometimes can lead to trouble...
Title:
Post by: plop on 30 May, 2005, 13:36:05
optimized and fixed.
the checkfake didn't work timetravler.
sBot = "Fake Share"

badShare = { "10000000000","5368709120","10737418240","13630010000","16106127360",
"21474836480","26843545600","27000000000","32212254720","7970010000",
"37580963840","37970010000","6599201000000","65992010000000","36772010000000",
"3677201000000","42949672960","48318382080","214266156265","53687091200",
"59055800320","1747201000000","16772010000000","147720100000000","10240000000000",
"64424509440","65719010000","69793218560","75161927680","80530636800","85899345920",
"91268055040","96636764160","102005473280","102400000000","107374182400","118648471552",
"128849018880","140301549174","161061273600","174720100000","183287729356","214748364800",
"268435456000","322122547200","375809638400","107524506255.36","429496729600","536870912000",
"657190100000","1024000000000","183287729357","102392020337","13625783747","174719269601",
"87671019929.6","88884348190.72","90001039687.68","92449171046.4","95627446845.44","91053306675.2",
"96926674452.48","96851512524.8","97817880166.4","98784247808","99997576069.12","105226698752",
"110004849868.8","119367878574.08","120001386250.24","111110803947.52","123319248486.4","103841571799.04",
"124231929036.8","125455994716.16","97817880166.4","125831804354.56","199715979264","199995152138.24",
"181236882472.96","99943888977.92","221652524728.32","276263033896.96","112989852139.52","158537980313.6",
"65712999629","26993869455","140295106724" }

function Main()
frmHub:RegBot(sBot)
tBadShare = {}
for index, val in ipairs(badShare) do
tBadShare[val] = 1
end
end

function NewUserConnected(user)
if (checkFake(user)) then
user:SendPM(sBot, "You are using a Fake Share.")
SendToAll(sBot, "The user "..user.sName.." has been banned for Fake Share.")
user:Ban()
end
end

function checkFake(user)
local s, e, shared = string.find(user.sMyInfoString, "$ALL S+ .-$ $.+.$.-$(%d+)")
if shared and tBadShare[shared] then
return 1
end
end

plop
Title:
Post by: Dessamator on 30 May, 2005, 14:59:09
QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by Dessamator
use nl's gui converter !

Better not encourage ppl on doing this. It's a great tool, but sometimes can lead to trouble...
hmm, indeed, but for that simple script, it would have worked, and what do u suggest instead of that, plop's converter?
Title:
Post by: bastya_elvtars on 30 May, 2005, 15:28:45
QuoteOriginally posted by Dessamator
and what do u suggest instead of that, plop's converter?

BMCW, that is Bimanual Conversion Way, i.e. HANDS. :D
Title:
Post by: Dessamator on 30 May, 2005, 15:41:18
QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by Dessamator
and what do u suggest instead of that, plop's converter?

BMCW, that is Bimanual Conversion Way, i.e. HANDS. :D
looool, ok then just setup the how to with that info, and ill refer them to it ,  :D