feed Subscribe to feed
Download scripts for mIRC (snipets, add-ons, scripts and bots) and PHP
20. 03
2007

AI add-on for mIRCStorm

Written by: ohav79 - Posted in: mIRCStorm

This add-on below will make your mIRCStorm can automatically answer some certain users’ words

Follow the step carefully and it’s better for you to copy and paste the script than rewrite them manually:

Open CommandTriggers.mrc file then search this line:

      if ( $2 == makecmd ) { /MakeCMD $nick $chan $3 $4- }


add this below that line:

      if ( $2 == autotalk ) { /AutoTalk $nick $chan $3 $4- }

find this line too:

if ( $1 == chpass ) { /chpass $nick $2 $3 $4 | halt }


add this below that line:

if ( $1 == autotalk) { /autotalk $nick $2 $3 $4 | halt }

Now open CommandSource.mrc file then add this line on the bottom of the file:

alias AutoTalk {
  if ($readini database\mircStorm.chan global $1 > 9) {
    if ($3 == on) {
      if (!$readini(” $+ $mircdir $+ oyr79.ini $+ “, $2, status)) { writeini ” $+ $mircdir $+ oyr79.ini $+ ” $2 status 1 | enable #AutoTalk | .msg $2 $readini Personality\ $+ %bot.Personality.file Command AutoTalkOn | set %bot.last.com AutoTalk On by $1 at $time $date | halt }
      if ($readini(” $+ $mircdir $+ oyr79.ini $+ “, $2, status) == 1) { .msg $2 $readini Personality\ $+ %bot.Personality.file Command AutoTalkIsOn | set %bot.last.com AutoTalk On by $1 at $time $date | halt }
    }
    if ($3 == off) {
      if ($readini(” $+ $mircdir $+ oyr79.ini $+ “, $2, status)) { remini ” $+ $mircdir $+ oyr79.ini $+ ” $2 status | disable #AutoTalk | .msg $2 $readini Personality\ $+ %bot.Personality.file Command AutoTalkOff | set %bot.last.com AutoTalk Off by $1 at $time $date | halt }
      if (!$readini(” $+ $mircdir $+ oyr79.ini $+ “, $2, status)) { .msg $2 $readini Personality\ $+ %bot.Personality.file Command AutoTalkIsOff | set %bot.last.com AutoTalk Off by $1 at $time $date | halt }
    }
    else { .notice $1 $readini Personality\ $+ %bot.Personality.file Command AutoTalkFalse | halt }
  }
  else { set %bot.command.name AutoTalk | .notice $1 $readini Personality\ $+ %bot.Personality.file Command NotEnoughAccess | halt }
}

Now create a new file, e.g. AutoTalk.mrc and save it into your Scripts directory then insert this code:

#AutoTalk on
;Response for any text
on *:TEXT:*:#:{
  if ($nick != $me) {
     if ($1 == hi) { msg # your answer here…. | halt }
     if ($1 == hallo) { msg # your answer here…. | halt }
     if ($1 == welcome) { msg # your answer here…. | halt }
     if ($1 == text) { msg # your answer here…. | halt }
     if ($1 == text) { msg # your answer here…. | halt }
     ;…..add this byyourself

     if (eat isin $1-) { msg # your answer here…. | halt }
     if (sad isin $1-) { msg # your answer here…. | halt }
     if (love isin $1-) { msg # your answer here…. | halt }
     if (love isin $1-) { msg # your answer here…. | halt }
     if (text isin $1-) { msg # your answer here…. | halt }
     if (text isin $1-) { msg # your answer here…. | halt }
     ;…..add this byyourself

     if (*text* iswm $1-) { msg # your answer here…. | halt }
     if (*text* iswm $1-) { msg # your answer here…. | halt }
     ;…..add this byyourself
     ;do it with ur imagine :D~
  }
}
;Response for any action
on *:ACTION:*:#:{
  if ($nick != $me) {
     if ($1 == hi) { msg # your answer here…. | halt }
     if ($1 == hallo) { msg # your answer here…. | halt }
     if ($1 == welcome) { msg # your answer here…. | halt }
     ;…..add this byyourself

     if (eat isin $1-) { msg # your answer here…. | halt }
     if (sad isin $1-) { msg # your answer here…. | halt }
     if (love isin $1-) { msg # your answer here…. | halt }
     ;…..add this byyourself
  }
}
#AutoTalk end

Now open your Personality file then add this code below the line: [Command]

AutoTalkOn=Auto Talk activated!
AutoTalkOff=Auto Talk inactivated!
AutoTalkFalse=Unknown command! Usage: $me autotalk <on/off>
AutoTalkIsOn=Auto Talk is active now, you don’t have to activated it
AutoTalkIsOff=Auto Talk is inactive now, you don’t have to inactivated it

Do this:

//load -rs ” $+ $mircdir $+ Scripts/AutoTalk.mrc $+ “


change the AutoTalk.mrc with your new file’s name you created above

I’ve tested it and it works

4 Comments »

  1. Jack has made a Comment

    I’m a newb at irc and bots. I’ve managed to fumble my way through installing the bot and I followed the instructions to add the AI script but, I can’t turn it on. When I try to turn it off it says, It’s already inactive but I can’t turn it on. Can you help me out?

    October 1, 2007 @ 10:24 am

  2. oyr79 has made a Comment

    That AI add-on can only be used on mIRCStrom not on a common mIRC. If you’re sure that you’re using mIRCStorm instead of mIRC try to type this command on your mIRCStorm bot’s channel:

    botname autotalk on

    change the “botname” with your mIRCStorm bot’s nick

    thanks

    October 1, 2007 @ 12:31 pm

  3. HogCall has made a Comment

    Uhhhh, where do you run this from:

    //load -rs ” $+ $mircdir $+ Scripts/AutoTalk.mrc $+ “

    Also, this is no longer in the CommandTriggers.mrc file:

    if ( $2 == makecmd ) { /MakeCMD $nick $chan $3 $4- }

    January 13, 2008 @ 12:24 pm

  4. oyr79 has made a Comment

    HogCall: //load -rs ” $+ $mircdir $+ Scripts/AutoTalk.mrc $+ “ must be executed using your bot’s mirc

    From status window, type that command.

    If you don’t find if ( $2 == makecmd ) { /MakeCMD $nick $chan $3 $4- }

    try to find:

    if ( $2 == makecmd ) { /MakeCMD $nick $chan $3 $4- | halt }

    January 14, 2008 @ 12:50 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment



*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

About me

Let's share your script here.

Search scripts...

Recent comments