can any one finish this so it floods the user?
botname = "SweetRevenge"
badusers = {"asswipe1","asswipe2","asswipe3"}
floodmessege = "YOU ARE NOT WELCOME HERE DO NOT ATTEMPT LOGGING IN HERE AGAIN"
times = "2000"
function Main()
frmHub:RegBot(botname)
end
function NewUserConnected(curuser)
for key,checkWord in badusers do
if strfind(curUser.sMyInfoString, checkWord, 1, 1) then
-- need help at this point
try this:
for i = 0, times, 1 do
curUser:SendData(botname, floodmessege)
end
Greets ZeroX
lol i tried out your script, it works whit that code and my client taked like 5~10 seconds to handle all the 2000 messages :)
-- NickFlooder by ?V?J??K?? and [NL]Zerox and well a little of everyone. Floods known troublemakers by thier nick on entry. be carefull because a user named robert and a user named roberto whould both get flooded using the trigger robert so avoid nicks with this charecteristic. ANYONE have any ideas to improove ths one?
botname = "SweetRevenge"
function Main()
frmHub:RegBot(botname)
end
badusers = {"asswipe1","asswipe2","asswipe3"}
floodmessege = "YOU ARE NOT WELCOME HERE DO NOT ATTEMPT LOGGING IN HERE AGAIN"
times = "2000"
function NewUserConnected(curuser)
for key,checkWord in badusers do
if strfind(curuser.sMyInfoString, checkWord, 1, 1) then
for i = 0, times, 1 do
curuser:SendData(botname, floodmessege)
end
end
end
end
be carefull because a user named robert and a user named roberto
what about changing:
if strfind(curuser.sMyInfoString, checkWord, 1, 1)then
to
if (curuser.sName == checkWord) then
Greetz ZeroX
cool I knew there had to be a way to do that thanks :)
ok heres a few updated for ya while i was bored
botname = "SweetRevenge"
function Main()
frmHub:RegBot(botname)
end
badusers = {
["asswipe1"] = 2000,
["asswipe2"] = 200,
["asswipe3"] = 20,
}
floodmessege = "I AM NOT WELCOME HERE I SHOULD NOT ATTEMPT LOGGING IN HERE AGAIN"
function NewUserConnected(curuser)
for key,checkWord in badusers do
if strfind(curuser.sMyInfoString, checkWord) then
for i = 0, badusers[curuser.sName], 1 do
curuser:SendData( "$Hello "..user.sName..i )
curuser:SendData( "$To: "..user.sName.." From: "..user.sName..i.." $<"..user.sName..i.."> "..floodmessage.."|")
end
curuser:Disconnect() -- // bye bye prick
end
end
end
cool you have good ideas when bored! so with this, they get flooded with $hello at handshake time as well as the main chat plus different flood amounts for different users? awsome :)