PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: arunsohal on 13 May, 2004, 16:27:47

Title: ANY SCRIPT TO STOP HUB FLOODER
Post by: arunsohal on 13 May, 2004, 16:27:47
IS THERE ANY SCRIPT THAT CAN STOP THE HUR-HURI DESTROYER. DOES ANYONE HAV THIS DESTROYER FILE THAT THEY CAN SEND ME?
Title:
Post by: pHaTTy on 13 May, 2004, 16:35:59
--//Anti_Force v.03 by Phatty
--//Thx to Meka for his prog on testing.

table = {

["Ruri_Ruri"]="[USER] - [UIP] was banned for using a Ruri Hub Destroyer!",
["R u r i _ R u r i"]="[USER] - [UIP] was banned for using a Modified Ruri Hub Destroyer",

}

BOT = "DarkForce"

function DataArrival(user,data)
if strsub(data,1,7) == "$MyINFO" then
if user.sName = "" then
SendToAll(BOT,user.sName.." has been disconnected for having a nil-nick")
user:Disconnect()
return 1
end
local s,e,name = strfind(data,"^%$MyINFO %$ALL (%S+)")
if name ~= user.sName then
SendToAll(BOT,user.sName.." has been disconnected for attempting to myinfo flood the hub")
user:Disconnect()
return 1
end
for i,v in table do
if strfind(data,i) then
user:Ban()
local tosend = gsub(v,[USER],user.sName) - start tosend local
local tosend = gsub(tosend,[UIP],user.sIP) - keep it local
SendToAll(BOT,tosend)
local tosend = nil - clear local to end function without stress
return 1
end
end
end
end
Title: Re: ANY SCRIPT TO STOP HUB FLOODER
Post by: fanem008 on 27 May, 2007, 22:14:17
Is this script workin on 0.3.6 and is god for all kind of fl00ders
If  not, what can u reconand me to use, for best protecion
Title: Re: ANY SCRIPT TO STOP HUB FLOODER
Post by: Psycho_Chihuahua on 27 May, 2007, 23:03:53
PtokaX has a Deflood built in, set that up good and then flooding shouldnt be a problem anymore

you can find more infos on that in the PtokaX Wiki (http://wiki.ptokax.ath.cx)
Title: Re: ANY SCRIPT TO STOP HUB FLOODER
Post by: microsoft on 31 May, 2007, 22:39:49
Ive tested that script
Ive recived this:
[23:29] Syntax E:\KITURI\SERVER HUB\Ptoka  x dchub TEST1\scripts\ANTI-ruri.lua:15: 'then' expected near '='
Title: Re: ANY SCRIPT TO STOP HUB FLOODER
Post by: microsoft on 31 May, 2007, 23:45:06
No i`m not

I`m using 0.3.6
now this:
[00:35] Syntax E:\KITURI\SERVER HUB\Ptoka  x dchub TEST1\scripts\ANTI-ruri.lua:29: unexpected symbol near '['
Title: Re: ANY SCRIPT TO STOP HUB FLOODER
Post by: PPK on 31 May, 2007, 23:47:29
Quote from: microsoft on 31 May, 2007, 23:45:06
No i`m not
Then you are in wrong forum section, lua 4 scripts will not work with PtokaX version you using!
Title: Re: ANY SCRIPT TO STOP HUB FLOODER
Post by: -SkA- on 07 June, 2007, 20:36:43
test post
Title: Re: ANY SCRIPT TO STOP HUB FLOODER
Post by: bastya_elvtars on 07 June, 2007, 21:13:55
Try again, in other boards as well.