Insultbot
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Insultbot

Started by BeeR, 15 March, 2005, 08:03:05

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BeeR

Insults = {}
Insulaway = {}
tmpusersName = ""
usersName = ""

RepInsults = {

"<[USER]> It's hard to get the big picture when i have such a small screen.",
"<[USER]> I've come across decomposed bodies that are less offensive than you are [NICK].",
"<[USER]> [NICK], i've only got one nerve left, and you're getting on it.",
"<[USER]> Keep talking [NICK], someday you'll say something intelligent!",
"<[USER]> Keep talking [NICK], I always yawn when I'm interested.",
"<[USER]> Hey [NICK], any friend of yours ... is a friend of yours.",
"<[USER]> [NICK], let's play horse. I'll be the front end and you be yourself.",
"<[USER]> Huh. i didnt say that!",
"<[USER]> [NICK], let's play house. You be the door and I'll slam you.",
"<[USER]> I better take a mental note . . . oh, shit I'm out of paper!",
"<[USER]> I'm better at sex than anyone, now all i need is a partner.",
"<[USER]> Calling [NICK] stupid would be an insult to stupid people.",
"<[USER]> [NICK], can I borrow your face for a few days while my ass is on vacation?",
"<[USER]> Careful [NICK], don't let your brains go to your head!",
"<[USER]> Diarrhea of the mouth; constipation of the ideas.",
"<[USER]> [NICK], did you eat paint chips when you were a kid?",
"<[USER]> [NICK], did your parents have any children that lived?",
"<[USER]> [NICK], do you ever wonder what life would be like if you'd had enough oxygen at birth?",
"<[USER]> [NICK], do you want me to accept you as you are or do you want me to like you?",
"<[USER]> [NICK], don't let your mind wander, it's too little to be let out alone.",
"<[USER]> Every girl has the right to be ugly, but my girl abused the privilege.",
"<[USER]> Some people are has-beens. [NICK] is a never-was.",
"<[USER]> Go ahead [NICK], tell them everything you know. It'll only take 10 seconds.",
"<[USER]> Yo [NICK], Take a vacation; go to Club Dead.",
"<[USER]> Talk is cheap, but so is [NICK].",
"<[USER]> There are only two things I dislike about the girl i fancy, her face. lol",
"<[USER]> There are several people in this world that I find obnoxious and [NICK] is all of them.",
"<[USER]> Hey [NICK], they say space is a dangerous place . . . especially if it's between your ears! ",
"<[USER]> They say that two heads are better than one. In [NICK]'s case, one would have been better than none.",
"<[USER]> They say truth is stranger than fiction. Look what [NICK]'s mother gave birth to.",
"<[USER]> [NICK] smells the coffee, but can't find a cup.",
"<[USER]> Too bad stupidity isn't painful.",
"<[USER]> Here's 20 cents. Call all your friends and bring back some change!",
"<[USER]> We all spring from apes but [NICK] didn't spring far enough.",
"<[USER]> [NICK], we heard that when you ran away from home your folks sent you a note saying, 'Do not come home and all will be forgiven.'",
"<[USER]> [NICK], we know that you would go to the end of the world for us. But would you stay there?",
"<[USER]> [NICK], we know you could not live without us. We'll pay for the funeral.",
"<[USER]> [NICK], we'll get along fine as soon as you realize I'm God.",
"<[USER]> Well [NICK], I'll see you in my dreams....................if I eat too much.",
"<[USER]> What color is the sky in your world [NICK]?",
"<[USER]> Whatever anyone says to [NICK] goes in one ear and out the other because nothing is blocking traffic.",
"<[USER]> When God was throwing intelligence down to the Earth, [NICK] was holding an umbrella.",
"<[USER]> [NICK], when you feel terrific, notify your face.",
"<[USER]> I always wanted to be a troubleshooter but now I see [NICK] is not worth it!",
"<[USER]> Any similarity between [NICK] and a human is purely coincidental!",
"<[USER]> Anyone who told [NICK] to be emself couldn't have given them worse advice.",
"<[USER]> Is [NICK] always so stupid or is today a special occasion?",
"<[USER]> [NICK], are you brain-dead?",
"<[USER]> [NICK], are your parents siblings?",
"<[USER]> [NICK], As an outsider, what do you think of the human race?",
"<[USER]> [NICK], your as useless as rubber lips on a woodpecker",
"<[USER]> [NICK], no one will ever know that you've had a lobotomy, if you wear a wig to hide to the scars and learn to control the slobbering. ",
"<[USER]> [NICK], nobody says that you are dumb. They just say you were sixteen years old before you learned how to wave good-bye.",
"<[USER]> Before [NICK] came along we were hungry. Now we are fed up.",
"<[USER]> [NICK] go away or I shall taunt you a second time",
"<[USER]> Believe me, I don't want to make a monkey out of [NICK], Why should I take all the credit?",
"<[USER]> [NICK], of all the people I've met you're certainly one of them.",
"<[USER]> Ordinarily people live and learn. [NICK] just lives.",
"<[USER]> Pardon me [NICK], but you've obviously mistaken me for someone who gives a damn.",
"<[USER]> Brains aren't everything. In fact, in [NICK]'s case they're nothing!",
"<[USER]> People can't say that [NICK] has absolutely nothing! After all, they have inferiority!",
"<[USER]> People say that [NICK] is outspoken but not by anyone that I know of.",
"<[USER]> People say that [NICK] is the perfect idiot. I say that they are not perfect but are doing all right.",
"<[USER]> [NICK], perhaps your whole purpose in life is simply to serve as a warning to others.",
"<[USER]> [NICK], did the mental hospital test too many drugs on you today?",
"<[USER]> [NICK], please breathe the other way. You're bleaching my hair.",
"<[USER]> [NICK], did your parents ever ask you to run away from home?",

}

AwayInsults = {

"I'm not here right now please leave a message with someone else u fucking moron",
"If i were here you think i'd answer u anyways?",
"WHAT?! im not here cant you see?!",
"FFS, go away!",
"Why dont we have a nice hot cup of SHUT THE FUCK UP!",
"Ive seen some stupid people, but you make stupid look intelligent, cant you see im not around?",

}

InsultOpIn = {

"<[USER]> Yoooo fags im back in da hub",
"<[USER]> Hey hey big ass is back!!!",
"<[USER]> Honeys im home...fucking idiots",
"<[USER]> LAME!!!!LAME!!!!LAME!!!!EVERYONE!!!",

}


SimpleOnOffForTrucker = 1   --// There ya go ;) 1 is on
chancerate = 100;      --// Anything below this number on scale to
                  --| 100, will allow the insult, 100 is 100% chance
LameOps = 1;       --// Ops insult on enter



function Main()
   BOT = "Johnny][Violent" --// not bad plop... ;)
   SetTimer(7300)
   _VERSION = "0.5"
end


function OpConnected(user)
   if LameOps == 1 then
      local reply = gsub(InsultOpIn[random(1,getn(InsultOpIn))],"%b[USER]",user.sName)
      SendToAll(reply)
   end;
end;

function OnTimer()
   if Insults[1] then
      local RandomNumber = random(1,getn(Insults))
      local reply = Insults[RandomNumber]
      tremove(Insults,RandomNumber)
      SendToAll(reply)
      StopTimer()
   end;
end;

function DataArrival(user, data)
   if strsub(data, 1, 4) == "$To:" then
      local s,e,whoto = strfind(data, "$To:%s(%S+)")
      local nick = GetItemByName(whoto)
      if Insulaway[nick.sName] then
         user:SendPM(whoto,AwayInsults[random(1,getn(AwayInsults))].."... ")
      end;
   elseif strsub(data, 1, 1) == "<" then
      data=strsub(data,1,strlen(data)-1)
      local s,e,com = strfind(data, "%b<>%s+(%S+)")

      if com == "!set" then
         local s,e,comd = strfind(data, "%b<>%s+%S+%s+(%S+)")
         if com == "on" then
            SimpleOnOffForTrucker = 1;
            user:SendData(BOT,"Insult is enabled =)")
            return 1;
         else
            SimpleOnOffForTrucker = nil;
            user:SendData(BOT,"Insult is disabled WTF stupid ass....enable me!!!!")
            return 1;
         end;
      elseif com == "!away" or com == "!afk" then
         tinsert(Insulaway,1,user.sName)
         user:SendData(BOT,"You are set away fucker")
         return 1;
      elseif com == "!ver" or com == "!version" then
         local line = "\n-===============================================================-\n"
         line = line.." This hub is running Johnny the bastard ".._VERSION.." by Phatty \n"
         line = line.."-===============================================================-\n"
         SendToAll(BOT,line)
      else
         if Insulaway[user.sName] then
            tremove(Insulaway,user.sName)
            user:SendData(BOT,"I see you have returned...you are no longer set away ;)")
         end;
         if SimpleOnOffForTrucker == 1 then
            local chance = random(100)
            if chance <= chancerate then
               local temp = gsub(user.sName, "%b()", "")
               local temp = gsub(temp, "%b[]", "")
               local temp = gsub(temp, "?", "")
   
               local reply, x = gsub(RepInsults[random(1,getn(RepInsults))], "%b[USER]", user.sName)
               if temp == usersName then
                  reply = gsub(reply, "%b[NICK]", tmpusersName)
                  usersName = tmpusersName;
               else
                  reply = gsub(reply, "%b[NICK]", usersName)
               end;
               tinsert(Insults,1,reply)
               
               tmpusersName = usersName;
               usersName = temp;
      
               StartTimer()
            end;
         end;   
      end;
   end;
end;


This nice insultbot wont start after i converted it to lua5
some1 who nows why ?? (this is the lua4 version)
A cold BeeR is stunning !!

Q-Ball

Try this Converted it by hand why? who knows
as far as i can tell it works

then again im usually wrong

Insults = {}
Insulaway = {}
tmpusersName = ""
usersName = ""

RepInsults = {

"<[USER]> It's hard to get the big picture when i have such a small screen.",
"<[USER]> I've come across decomposed bodies that are less offensive than you are [NICK].",
"<[USER]> [NICK], i've only got one nerve left, and you're getting on it.",
"<[USER]> Keep talking [NICK], someday you'll say something intelligent!",
"<[USER]> Keep talking [NICK], I always yawn when I'm interested.",
"<[USER]> Hey [NICK], any friend of yours ... is a friend of yours.",
"<[USER]> [NICK], let's play horse. I'll be the front end and you be yourself.",
"<[USER]> Huh. i didnt say that!",
"<[USER]> [NICK], let's play house. You be the door and I'll slam you.",
"<[USER]> I better take a mental note . . . oh, shit I'm out of paper!",
"<[USER]> I'm better at sex than anyone, now all i need is a partner.",
"<[USER]> Calling [NICK] stupid would be an insult to stupid people.",
"<[USER]> [NICK], can I borrow your face for a few days while my ass is on vacation?",
"<[USER]> Careful [NICK], don't let your brains go to your head!",
"<[USER]> Diarrhea of the mouth; constipation of the ideas.",
"<[USER]> [NICK], did you eat paint chips when you were a kid?",
"<[USER]> [NICK], did your parents have any children that lived?",
"<[USER]> [NICK], do you ever wonder what life would be like if you'd had enough oxygen at birth?",
"<[USER]> [NICK], do you want me to accept you as you are or do you want me to like you?",
"<[USER]> [NICK], don't let your mind wander, it's too little to be let out alone.",
"<[USER]> Every girl has the right to be ugly, but my girl abused the privilege.",
"<[USER]> Some people are has-beens. [NICK] is a never-was.",
"<[USER]> Go ahead [NICK], tell them everything you know. It'll only take 10 seconds.",
"<[USER]> Yo [NICK], Take a vacation; go to Club Dead.",
"<[USER]> Talk is cheap, but so is [NICK].",
"<[USER]> There are only two things I dislike about the girl i fancy, her face. lol",
"<[USER]> There are several people in this world that I find obnoxious and [NICK] is all of them.",
"<[USER]> Hey [NICK], they say space is a dangerous place . . . especially if it's between your ears! ",
"<[USER]> They say that two heads are better than one. In [NICK]'s case, one would have been better than none.",
"<[USER]> They say truth is stranger than fiction. Look what [NICK]'s mother gave birth to.",
"<[USER]> [NICK] smells the coffee, but can't find a cup.",
"<[USER]> Too bad stupidity isn't painful.",
"<[USER]> Here's 20 cents. Call all your friends and bring back some change!",
"<[USER]> We all spring from apes but [NICK] didn't spring far enough.",
"<[USER]> [NICK], we heard that when you ran away from home your folks sent you a note saying, 'Do not come home and all will be forgiven.'",
"<[USER]> [NICK], we know that you would go to the end of the world for us. But would you stay there?",
"<[USER]> [NICK], we know you could not live without us. We'll pay for the funeral.",
"<[USER]> [NICK], we'll get along fine as soon as you realize I'm God.",
"<[USER]> Well [NICK], I'll see you in my dreams....................if I eat too much.",
"<[USER]> What color is the sky in your world [NICK]?",
"<[USER]> Whatever anyone says to [NICK] goes in one ear and out the other because nothing is blocking traffic.",
"<[USER]> When God was throwing intelligence down to the Earth, [NICK] was holding an umbrella.",
"<[USER]> [NICK], when you feel terrific, notify your face.",
"<[USER]> I always wanted to be a troubleshooter but now I see [NICK] is not worth it!",
"<[USER]> Any similarity between [NICK] and a human is purely coincidental!",
"<[USER]> Anyone who told [NICK] to be emself couldn't have given them worse advice.",
"<[USER]> Is [NICK] always so stupid or is today a special occasion?",
"<[USER]> [NICK], are you brain-dead?",
"<[USER]> [NICK], are your parents siblings?",
"<[USER]> [NICK], As an outsider, what do you think of the human race?",
"<[USER]> [NICK], your as useless as rubber lips on a woodpecker",
"<[USER]> [NICK], no one will ever know that you've had a lobotomy, if you wear a wig to hide to the scars and learn to control the slobbering. ",
"<[USER]> [NICK], nobody says that you are dumb. They just say you were sixteen years old before you learned how to wave good-bye.",
"<[USER]> Before [NICK] came along we were hungry. Now we are fed up.",
"<[USER]> [NICK] go away or I shall taunt you a second time",
"<[USER]> Believe me, I don't want to make a monkey out of [NICK], Why should I take all the credit?",
"<[USER]> [NICK], of all the people I've met you're certainly one of them.",
"<[USER]> Ordinarily people live and learn. [NICK] just lives.",
"<[USER]> Pardon me [NICK], but you've obviously mistaken me for someone who gives a damn.",
"<[USER]> Brains aren't everything. In fact, in [NICK]'s case they're nothing!",
"<[USER]> People can't say that [NICK] has absolutely nothing! After all, they have inferiority!",
"<[USER]> People say that [NICK] is outspoken but not by anyone that I know of.",
"<[USER]> People say that [NICK] is the perfect idiot. I say that they are not perfect but are doing all right.",
"<[USER]> [NICK], perhaps your whole purpose in life is simply to serve as a warning to others.",
"<[USER]> [NICK], did the mental hospital test too many drugs on you today?",
"<[USER]> [NICK], please breathe the other way. You're bleaching my hair.",
"<[USER]> [NICK], did your parents ever ask you to run away from home?",

}

AwayInsults = {

"I'm not here right now please leave a message with someone else u fucking moron",
"If i were here you think i'd answer u anyways?",
"WHAT?! im not here cant you see?!",
"FFS, go away!",
"Why dont we have a nice hot cup of SHUT THE FUCK UP!",
"Ive seen some stupid people, but you make stupid look intelligent, cant you see im not around?",

}

InsultOpIn = {

"<[USER]> Yoooo fags im back in da hub",
"<[USER]> Hey hey big ass is back!!!",
"<[USER]> Honeys im home...fucking idiots",
"<[USER]> LAME!!!!LAME!!!!LAME!!!!EVERYONE!!!",

}


SimpleOnOffForTrucker = 1 --// There ya go ;) 1 is on
chancerate = 100; --// Anything below this number on scale to
--| 100, will allow the insult, 100 is 100% chance
LameOps = 1; --// Ops insult on enter



function Main()
BOT = "Johnny][Violent" --// not bad plop... ;)
SetTimer(7300)
_VERSION = "0.5"
end


function OpConnected(user)
if LameOps == 1 then
local reply = string.gsub(InsultOpIn[math.random(1,table.getn(InsultOpIn))],"%b[USER]",user.sName)
SendToAll(reply)
end;
end;

function OnTimer()
if Insults[1] then
local RandomNumber = math.random(1,table.getn(Insults))
local reply = Insults[RandomNumber]
tos.remove(Insults,RandomNumber)
SendToAll(reply)
StopTimer()
end;
end;

function DataArrival(user, data)
if string.sub(data, 1, 4) == "$To:" then
local s,e,whoto = string.find(data, "$To:%s(%S+)")
local nick = GetItemByName(whoto)
if Insulaway[nick.sName] then
user:SendPM(whoto,AwayInsults[math.random(1,table.getn(AwayInsults))].."... ")
end;
elseif string.sub(data, 1, 1) == "<" then
data=string.sub(data,1,string.len(data)-1)
local s,e,com = string.find(data, "%b<>%s+(%S+)")

if com == "!set" then
local s,e,comd = string.find(data, "%b<>%s+%S+%s+(%S+)")
if com == "on" then
SimpleOnOffForTrucker = 1;
user:SendData(BOT,"Insult is enabled =)")
return 1;
else
SimpleOnOffForTrucker = nil;
user:SendData(BOT,"Insult is disabled WTF stupid ass....enable me!!!!")
return 1;
end;
elseif com == "!away" or com == "!afk" then
table.insert(Insulaway,1,user.sName)
user:SendData(BOT,"You are set away fucker")
return 1;
elseif com == "!ver" or com == "!version" then
local line = "\n-===============================================================-\n"
line = line.." This hub is running Johnny the bastard ".._VERSION.." by Phatty \n"
line = line.."-===============================================================-\n"
SendToAll(BOT,line)
else
if Insulaway[user.sName] then
tos.remove(Insulaway,user.sName)
user:SendData(BOT,"I see you have returned...you are no longer set away ;)")
end;
if SimpleOnOffForTrucker == 1 then
local chance = math.random(100)
if chance <= chancerate then
local temp = string.gsub(user.sName, "%b()", "")
local temp = string.gsub(temp, "%b[]", "")
local temp = string.gsub(temp, "?", "")

local reply, x = string.gsub(RepInsults[math.random(1,table.getn(RepInsults))], "%b[USER]", user.sName)
if temp == usersName then
reply = string.gsub(reply, "%b[NICK]", tmpusersName)
usersName = tmpusersName;
else
reply = string.gsub(reply, "%b[NICK]", usersName)
end;
table.insert(Insults,1,reply)

tmpusersName = usersName;
usersName = temp;

StartTimer()
end;
end;
end;
end;
end;
O.A.H / ???  Bringing Justice to Lamers

Jelf

That dont wont , DataArrival is wrong and also you have converted tremove to tos.remove.

It should be table.remove

Here...
Insults = {}
Insulaway = {}
tmpusersName = ""
usersName = ""

RepInsults = {

"<[USER]> It's hard to get the big picture when i have such a small screen.",
"<[USER]> I've come across decomposed bodies that are less offensive than you are [NICK].",
"<[USER]> [NICK], i've only got one nerve left, and you're getting on it.",
"<[USER]> Keep talking [NICK], someday you'll say something intelligent!",
"<[USER]> Keep talking [NICK], I always yawn when I'm interested.",
"<[USER]> Hey [NICK], any friend of yours ... is a friend of yours.",
"<[USER]> [NICK], let's play horse. I'll be the front end and you be yourself.",
"<[USER]> Huh. i didnt say that!",
"<[USER]> [NICK], let's play house. You be the door and I'll slam you.",
"<[USER]> I better take a mental note . . . oh, shit I'm out of paper!",
"<[USER]> I'm better at sex than anyone, now all i need is a partner.",
"<[USER]> Calling [NICK] stupid would be an insult to stupid people.",
"<[USER]> [NICK], can I borrow your face for a few days while my ass is on vacation?",
"<[USER]> Careful [NICK], don't let your brains go to your head!",
"<[USER]> Diarrhea of the mouth; constipation of the ideas.",
"<[USER]> [NICK], did you eat paint chips when you were a kid?",
"<[USER]> [NICK], did your parents have any children that lived?",
"<[USER]> [NICK], do you ever wonder what life would be like if you'd had enough oxygen at birth?",
"<[USER]> [NICK], do you want me to accept you as you are or do you want me to like you?",
"<[USER]> [NICK], don't let your mind wander, it's too little to be let out alone.",
"<[USER]> Every girl has the right to be ugly, but my girl abused the privilege.",
"<[USER]> Some people are has-beens. [NICK] is a never-was.",
"<[USER]> Go ahead [NICK], tell them everything you know. It'll only take 10 seconds.",
"<[USER]> Yo [NICK], Take a vacation; go to Club Dead.",
"<[USER]> Talk is cheap, but so is [NICK].",
"<[USER]> There are only two things I dislike about the girl i fancy, her face. lol",
"<[USER]> There are several people in this world that I find obnoxious and [NICK] is all of them.",
"<[USER]> Hey [NICK], they say space is a dangerous place . . . especially if it's between your ears! ",
"<[USER]> They say that two heads are better than one. In [NICK]'s case, one would have been better than none.",
"<[USER]> They say truth is stranger than fiction. Look what [NICK]'s mother gave birth to.",
"<[USER]> [NICK] smells the coffee, but can't find a cup.",
"<[USER]> Too bad stupidity isn't painful.",
"<[USER]> Here's 20 cents. Call all your friends and bring back some change!",
"<[USER]> We all spring from apes but [NICK] didn't spring far enough.",
"<[USER]> [NICK], we heard that when you ran away from home your folks sent you a note saying, 'Do not come home and all will be forgiven.'",
"<[USER]> [NICK], we know that you would go to the end of the world for us. But would you stay there?",
"<[USER]> [NICK], we know you could not live without us. We'll pay for the funeral.",
"<[USER]> [NICK], we'll get along fine as soon as you realize I'm God.",
"<[USER]> Well [NICK], I'll see you in my dreams....................if I eat too much.",
"<[USER]> What color is the sky in your world [NICK]?",
"<[USER]> Whatever anyone says to [NICK] goes in one ear and out the other because nothing is blocking traffic.",
"<[USER]> When God was throwing intelligence down to the Earth, [NICK] was holding an umbrella.",
"<[USER]> [NICK], when you feel terrific, notify your face.",
"<[USER]> I always wanted to be a troubleshooter but now I see [NICK] is not worth it!",
"<[USER]> Any similarity between [NICK] and a human is purely coincidental!",
"<[USER]> Anyone who told [NICK] to be emself couldn't have given them worse advice.",
"<[USER]> Is [NICK] always so stupid or is today a special occasion?",
"<[USER]> [NICK], are you brain-dead?",
"<[USER]> [NICK], are your parents siblings?",
"<[USER]> [NICK], As an outsider, what do you think of the human race?",
"<[USER]> [NICK], your as useless as rubber lips on a woodpecker",
"<[USER]> [NICK], no one will ever know that you've had a lobotomy, if you wear a wig to hide to the scars and learn to control the slobbering. ",
"<[USER]> [NICK], nobody says that you are dumb. They just say you were sixteen years old before you learned how to wave good-bye.",
"<[USER]> Before [NICK] came along we were hungry. Now we are fed up.",
"<[USER]> [NICK] go away or I shall taunt you a second time",
"<[USER]> Believe me, I don't want to make a monkey out of [NICK], Why should I take all the credit?",
"<[USER]> [NICK], of all the people I've met you're certainly one of them.",
"<[USER]> Ordinarily people live and learn. [NICK] just lives.",
"<[USER]> Pardon me [NICK], but you've obviously mistaken me for someone who gives a damn.",
"<[USER]> Brains aren't everything. In fact, in [NICK]'s case they're nothing!",
"<[USER]> People can't say that [NICK] has absolutely nothing! After all, they have inferiority!",
"<[USER]> People say that [NICK] is outspoken but not by anyone that I know of.",
"<[USER]> People say that [NICK] is the perfect idiot. I say that they are not perfect but are doing all right.",
"<[USER]> [NICK], perhaps your whole purpose in life is simply to serve as a warning to others.",
"<[USER]> [NICK], did the mental hospital test too many drugs on you today?",
"<[USER]> [NICK], please breathe the other way. You're bleaching my hair.",
"<[USER]> [NICK], did your parents ever ask you to run away from home?",

}

AwayInsults = {

"I'm not here right now please leave a message with someone else u fucking moron",
"If i were here you think i'd answer u anyways?",
"WHAT?! im not here cant you see?!",
"FFS, go away!",
"Why dont we have a nice hot cup of SHUT THE FUCK UP!",
"Ive seen some stupid people, but you make stupid look intelligent, cant you see im not around?",

}

InsultOpIn = {

"<[USER]> Yoooo fags im back in da hub",
"<[USER]> Hey hey big ass is back!!!",
"<[USER]> Honeys im home...fucking idiots",
"<[USER]> LAME!!!!LAME!!!!LAME!!!!EVERYONE!!!",

}


SimpleOnOffForTrucker = 1 --// There ya go ;) 1 is on
chancerate = 100; --// Anything below this number on scale to
--| 100, will allow the insult, 100 is 100% chance
LameOps = 1; --// Ops insult on enter



function Main()
BOT = "Johnny][Violent" --// not bad plop... ;)
SetTimer(7300)
_VERSION = "0.5"
end


function OpConnected(user)
if LameOps == 1 then
local reply = string.gsub(InsultOpIn[math.random(1,table.getn(InsultOpIn))],"%b[USER]",user.sName)
SendToAll(reply)
end;
end;

function OnTimer()
if Insults[1] then
local RandomNumber = math.random(1,table.getn(Insults))
local reply = Insults[RandomNumber]
table.remove(Insults,RandomNumber)
SendToAll(reply)
StopTimer()
end;
end;

function ToArrival(user, data)
	local s,e,whoto = string.find(data, "$To:%s(%S+)")
	local nick = GetItemByName(whoto)
	if Insulaway[nick.sName] then
		user:SendPM(whoto,AwayInsults[math.random(1,table.getn(AwayInsults))].."... ")
	end;
end;

function ChatArrival(user, data)
	data=string.sub(data,1,string.len(data)-1)
	local s,e,com = string.find(data, "%b<>%s+(%S+)")
	if com == "!set" then
		local s,e,comd = string.find(data, "%b<>%s+%S+%s+(%S+)")
		if com == "on" then
			SimpleOnOffForTrucker = 1;
			user:SendData(BOT,"Insult is enabled =)")
			return 1;
		else
			SimpleOnOffForTrucker = nil;
			user:SendData(BOT,"Insult is disabled WTF stupid ass....enable me!!!!")
			return 1;
		end;
	elseif com == "!away" or com == "!afk" then
		table.insert(Insulaway,1,user.sName)
		user:SendData(BOT,"You are set away fucker")
		return 1;
	elseif com == "!ver" or com == "!version" then
		local line = "\n-===============================================================-\n"
		line = line.." This hub is running Johnny the bastard ".._VERSION.." by Phatty \n"
		line = line.."-===============================================================-\n"
		SendToAll(BOT,line)
	else
		if Insulaway[user.sName] then
			table.remove(Insulaway,user.sName)
			user:SendData(BOT,"I see you have returned...you are no longer set away ;)")
		end;
		if SimpleOnOffForTrucker == 1 then
			local chance = math.random(100)
			if chance <= chancerate then
				local temp = string.gsub(user.sName, "%b()", "")
				local temp = string.gsub(temp, "%b[]", "")
				local temp = string.gsub(temp, "?", "")
				local reply, x = string.gsub(RepInsults[math.random(1,table.getn(RepInsults))], "%b[USER]", user.sName)
				if temp == usersName then
					reply = string.gsub(reply, "%b[NICK]", tmpusersName)
					usersName = tmpusersName;
				else
					reply = string.gsub(reply, "%b[NICK]", usersName)
				end;
				table.insert(Insults,1,reply)
				tmpusersName = usersName;
				usersName = temp;
				StartTimer()
			end;
		end;
	end;
end;

BeeR

Seems to work just fine here ,,
tnx both of u for your answer

best regards :]
A cold BeeR is stunning !!

H?LL?L?L??nG?L

#4
I put this script in but nothing is working ....  ?(  ?(  hmm tried it again and only the ops insult on entry is working unless i forgot to do something can anyone help? ?(  ?(

H?LL?L?L??nG?L

#5
AHAHA i found it . i think its the prefix interfering with other scripts ! can i change it to wot i want? ?( When i stopped the other scripts it worked :rolleyes:  

SMF spam blocked by CleanTalk