[LUA 5] Complete (fun script)
 

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

[LUA 5] Complete (fun script)

Started by ruler, 02 March, 2005, 23:43:13

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ruler

Bot = frmHub:GetHubBotName()

trigall=1

trigw = {
             
         lol={
     "hilarious!",
     "hehe",
   "lmao",
   "rofl",
   ":D",
     ":-)"  
                                 },

         fav={
     "Yeah [CURUSER], try this ----->  /fav  ",
     "Hmm, i think its like this dude! ----->  /fav  ",
     "try this ------->  /fav  ",
   "[CURUSER], this might work ----->  /fav  ",
     "I think /fav would work better [CURUSER] ;-)  "
                                 },

         funny={
     "hilarious!",
     "hehe",
   "lol",
   "lmao",
   "rofl",
     ":o))"
                                 },

         hehe={
     "hilarious!",
     "haha",
   "lol",
   ":-)",
   ":D",
   "lmao",
   "rofl",
     ":o))"
                                 },
                             
         haha={
     "hilarious!",
     "hehe",
   "lol",
   ":-)",
   ":D",
   "lmao",
   "rofl",
     ":o))"
                                 },

         ["pmsl"]={
     "hilarious!",
     "hehe",
   "lol",
   "lmao",
   ":D",
   "rofl",
     ":o))"
                                 },
                             
         rofl={
     "hilarious!",
     "hehe",
   "lol",
   "lmao",
   ":D",
   "rofl",
     ":o))"
                                 },
                             
         lmao={
     "hilarious!",
     "hehe",
   "lol",
   ":-)",
   ":D",
   ":-))",
   "rofl",
     ":o))"
                                 },

         ["how can i"]={
       "i hope [CURUSER]'s not asking me :D",
       "i have no idea, sorry",
      "no idea, ya got me on that one dude!",
      "Hmm, question time :/",
      "what do you think this is, infomation desk :D",
       "blow me a kiss and i might tell you :-)",
       "pass :D"
                                 },

         ["how do i"]={
       "i hope [CURUSER]'s not asking me :D",
       "i have no idea, sorry",
      "no idea, ya got me on that one dude!",
      "Hmm, question time :/",
      "what do you think this is, infomation desk :D",
       "blow me a kiss and i might tell you :-)",
       "pass :D"
                                 },

         ["how do you"]={
       "i hope [CURUSER]'s not asking me :D",
       "i have no idea, sorry",
      "no idea, ya got me on that one dude!",
      "Hmm, question time :/",
      "what do you think this is, infomation desk :D",
       "blow me a kiss and i might tell you :-)",
       "pass :D"
                                 },

         ["any good hubs"]={
       "users are NOT alowed to advertise here [CURUSER], you will be banned!",
       "sorry m8, users cant advertise here, you will get banned for that ;-)",
      "dont ask for hub addresses, users posting addresses will be banned!",
      "no idea, ya got me on that one dude!",
      "Hmm, as if this hub wasnt good enough for him pff!",
      "what do you think this is, infomation desk, try using the public hub list",
       "give us a kiss and i might tell you :-)",
       "yeah, nosafe.no-ip.org:411  ;-)"
                                 },

         ["this hub sucks"]={
       "hey [CURUSER], so do you ;-)",
       "like ya momma ;-)",
      "so do you [CURUSER]",
      "just like your crappy share [CURUSER] ;-)",
      "just like you ;-)",
      "with a crap share like yours, be lucky you got in here :D",
       "just like your lame nick, hahahaha",
       "sorry [CURUSER] the gay hubs are usually clearly stated, this is a DVD hub :D"
                                 },


         ["this hub sux"]={
       "hey [CURUSER], so do you ;-)",
       "like ya momma ;-)",
      "so do you [CURUSER]",
      "just like your crappy share [CURUSER] ;-)",
      "just like you ;-)",
      "with a crap share like yours, be lucky you got in here :D",
       "just like your lame nick, hahahaha",
       "sorry [CURUSER] the gay hubs are usually clearly stated, this is a DVD hub :D"
                                 },

         ["wb"]={
       "about time you got back :))",
       "took your time getting back :D",
      "didn't think you were comming back hehehe",
      "at last, your back  lol",
      "thought you forgot about us =)",
      "welcome back",
       "pff took your time about it  hehehe",
       "better late than never i guess ;-)"
                                 },
         ["how ru"]={
       "im ok, [CURUSER]",
       "not too bad [CURUSER]   .....*sniff*",
      "doing great, what about you?",
      "im ok, u?",
      "dont ask",
      "yup ok, u?",
       "doing good",
       "better than average"
                                 },

         ["how r u"]={
       "im ok, [CURUSER]",
       "not too bad [CURUSER]   .....*sniff*",
      "doing great, what about you?",
      "im ok, u?",
      "dont ask",
      "yup ok, u?",
       "doing good",
       "better than average"
                                 },

         ["hows you"]={
       "im ok, [CURUSER]",
       "not too bad [CURUSER]   .....*sniff*",
      "doing great, what about you?",
      "im ok, u?",
      "dont ask",
      "yup ok, u?",
       "doing good",
       "better than average"
                                 },

         ["hows u"]={
       "im ok, [CURUSER]",
       "not too bad [CURUSER]   .....*sniff*",
      "doing great, what about you?",
      "im ok, u?",
      "dont ask",
      "yup ok, u?",
       "doing good",
       "better than average"
                                 },

         brb={
       "See ya in a bit [CURUSER]",
      "don't be long [CURUSER]   .....*sniff*",
       "Hey,  [CURUSER] get your ass back here. Hehe just kidding, if U have to go U have to go, Bye",
       "*Snif* we will miss you while your gone [CURUSER]!",
   "ok [CURUSER]",
       "Got better things to do, huh?",
       "don't go....... just kidding :D"
                                 },

         bye={
       "See ya, [CURUSER]",
      "Bye, [CURUSER]   .....*sniff*",
       "Hey,  [CURUSER] get your ass back here. Hehe just kidding, if U have to go U have to go, Bye",
       "*Snif* we will miss you, [CURUSER]!",
       "*Waves bye*",
       "Leaving already?!",
   "bye [CURUSER]",
   "leaving so soon [CURUSER]?",
       "Got better things to do, huh?",
       "Go on...leave, but you will soon be back ;-)"
                                 },

         ["l8r"]={
       "See ya, [CURUSER]",
      "Bye, [CURUSER]   .....*sniff*",
       "Hey,  [CURUSER] get your ass back here. Hehe just kidding, if U have to go U have to go, Bye",
       "*Snif* we will miss you, [CURUSER]!",
       "*Waves bye*",
       "Leaving already?!",
   "don't go [CURUSER]",
   "bye [CURUSER]",
   "leaving so soon [CURUSER]?",
       "Got better things to do, huh?",
       "Go on...leave, but you will soon be back ;-)"
                               },

         ["can anyone help"]={
      "maybe ;-)",
       "posibly!",
       "ask an Op (user with a key)",
       "what you think this is, charity?",
   "you dont expect help from this lame bunch do ya?",
       "love to help but im way too busy, sorry.",
   "what do i get out of it :D",
       "whats it worth?  lol"
                               },

         mwaa={
        "right back at ya MMMMWWWWAAAAA!",
        "Ooh! I'm flattered :-)",
        "why thank you [CURUSER] :o))",
        "awwww",
        "arrr aint that sweet :D"
                               },

         hello={
        "Hello [CURUSER]",
        "Hey  [CURUSER]",
        "Wassup [CURUSER]",
        "Hi [CURUSER]",
        "Hey [CURUSER], what's going on?",
        "Howdy [CURUSER]!",
        "Greetings,  [CURUSER]",
        "[CURUSER], do I know you?"
                             },

         drunk={
   "me dRunk? -*- hik -*-",
   "pftftt paff the boffle bartender   pfffttttttt",
   "I just drank a little...",
   "I am  not dddddddddddddrunk.....",
   "drunk?",
   "pour me another",
   "I think I'm gonna hurl",
   "*BURP*"
                               },

         ["bot"]={
   "Bots suck!",
   "Direct Connect bots are lame...",
   "A bot?",
   "Me? I don't think so...",
   "I am quite human...",
   "what is a bot?",
   "You don't think my name is 'Bot' do you?",
   "Are you trying to say that I am a machine?",
   "ME? HAHA",
   "I am a real person!",
   "I am not a bot, I am a real human!",
   "I may be dumb, but I am not a bot!",
   "I may be really confused, but I am no robot!",
   "I assure you I am just as real as you!",
   "I know you are, but what am I?",
   "<- - - real live person",
   "Kill the bots!",
   "WHO is a bot???",
   "a bot? where?",
   "a bot? here?",
   "I doubt if there are any bots here!",
   "Where do you get such a crazy idea!",
   "I am NOT a bot",
   "I am all too real, sorry!",
   "I am a fleshy human being!",
   "Do you make it a habit of accusing others, [CURUSER]?"
                                  },

         sorry={
        "don't worry about it",
        "that's ok ",
        "why are you sorry?",
        "that's allright",
        "as long as your sorry........its ok :-)",
        "what for?",
        "I feel you didn't really mean that...",
        "you don't sound sincere",
        "are you really sorry?",
        "you better be :D",
        "hehe you best be ;-)"
                             },

         wassup={
        "hunting crocodiles",
        "nothing at the moment",
        "hacking microsoft.com",
        "what do you think!",
        "the opposite to down :-)",
        "drinking myself to death",
        "drinking myself to oblivian",
        "the sky :D",
        "programming",
        "program in C++"
                           },
                 
         ["sleep"]={
   "you need sleep ?",
   "hey i'm a bit sleepy too :D",
   "sounds good to me ;)",
   "too much computer i guess ;)",
   "sleeping is for babies",
   "yawwwwwn",
   "ZZZZzzzzZZzzzzz",
   "ZZzzzzzzz",
   "i could do with a snooze",
   "eyes begin to feel like lead weights",
   "Mmmm grab a quilt :-D"
                               },
                 
         ["are you"]={
   "does it matter if I am ?",
   "what difference does it make whether or not I am",
   "of course not, don't be silly",
   "Whether I'm or not is my secret",
   "why do you want to know?",
   "does it matter if I am or not?",
   "why do you ask?",
   "I might be",
   "No, I am not ",
   "of course",
   "why, are you?"
                               },

         bitch={
   "Who are you calling a bitch??",
   "Oh, I'm upset",
   "I can be a bitch!",
   "Hey [CURUSER], that is no way to talk!",
   "Do you think foul language impresses me?",
   "A bitch is a female dog, isnt it?"
                                 },
                   
         yeah={
   "yes",
   "yep",
   "uh huh",
   "100%",
   "bang on!",
   "you bet",
   "uh-hu",
   "oh yes",
   "of course!",
   "you-betcha",
   "affirmative",
   "10-4 good buddy!",
   "that's right!",
   "you got it!",
   "sure",
   "precisely right",
   "that sounds right",
   "exactly!",
   "you know it!"
                              },
             
   }


function Main()
end

function ChatArrival(curUser, data)

status=string.sub(data,1,string.len(data)-1)
-- parse the command
s,e,cmd = string.find( status, "%b<>%s+(%S+)" )

if (cmd=="+quiet") then
trigall=0
SendToAll(Bot, " Hmf, Okidoki I will be quiet :(( ")
return 1
elseif (cmd=="+speak") then
trigall=1
SendToAll(Bot, " Okay, I will talk to you again :-)")
return 1
end

       
   if( string.sub(data, 1, 1) == "<" ) then
      -- get the msg only using regular expression
      s,e,msg = string.find(data, "%b<>([%a ]+)")                                        
      -- look in the table
                if trigall==1 then
      for key, value in trigw do
                for key2, value2 in value do
                     
   if( string.find( string.lower(msg), key) ) then
                 else break  
   end

        if( string.find( string.lower(msg), "!me") ) then
                  t="**"..curUser.sName
                  data=string.gsub (msg, "!me", t, 1 )
   end

      SendToAll( data ) -- send the original data
                   
            SetTimer(1800)
                  StartTimer()
      answer, x = string.gsub(value[math.random(1,table.getn(value))], "%b[]", curUser.sName)

   return 1; -- tell the hub we have processed the data
   end
   end  
   end
end

function OnTimer()
   SendToAll( Bot , answer ) -- send bot's answer
   StopTimer()
end
end--------------------------------------------------------------------------------


I Don't Know The Origonal Coder Of This Script But It Has Been Edited SomeWhat And Converted To LUA 5 By Myself.
Enjoy.

//ruler

The Direct Connect Global Banlist get protected.

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

:P LOL glad u converted this 1 i used the script before and it was fun :P  especially if u use some cheeky edits :P

SMF spam blocked by CleanTalk