2007
AI add-on for 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 (*text* iswm $1-) { msg # your answer here…. | halt } if (eat isin $1-) { msg # your answer here…. | halt } |
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
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
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
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
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