2007
Alternate Triggers for mIRCStorm
I’ve added new alternate simple triggers for the bot
I’ve also fixed the problem when displaying OS Uptime
With these triggers, you can simply command your bot using simple commands, for example:
`join #mIRCStorm
`cycle
`kick nick
etc
Follow these steps below:
1. Open your main.mrc using Notepad or mIRC remote script editor
2. Find this line:
if ($exists(Scripts\commands2.mrc)) { /unload -rs Scripts\commands2.mrc | /unload -rs Scripts\commands.mrc | /load -rs Scripts\CommandSource.mrc | /load -rs Scripts\CommandTriggers.mrc | /remove Scripts\commands2.mrc | /remove Scripts\commands.mrc }
3. Change it to:
if ($exists(Scripts\commands2.mrc)) { /unload -rs Scripts\commands2.mrc | /unload -rs Scripts\commands.mrc | /load -rs Scripts\CommandSource.mrc | /load -rs Scripts\CommandTriggers.mrc | /load -rs Scripts\AlternateTriggers.mrc | /remove Scripts\commands2.mrc | /remove Scripts\commands.mrc }
4. Now make a new file with your Notepad or mIRC remote script editor
5. Write all these lines:
;mIRCStorm V2.0.0 - AlternateTriggers.mrc
;
;Website: http://www.mIRCStorm.co.uk
;Author: Evil_Dave (Evil_Dave@mIRCStorm.co.uk)
;
;This Script Contains Alternate Triggers for Bot
;========================================================
;================AlternateTriggers.mrc===================
;========================================================
;Added by oyr79 (oyr79@mIRCStorm.co.uk)
on 1:TEXT:*:#:{
if ($left($1,1) == %bot.shortcut.5) {
if ($mid($1,2,1) == $chr(32)) return
if ($readini database\mircStorm.GID Login $fulladdress != $null) {
if ($right($1,-1) == lastcom) { /LastCom $nick | halt }
if ($right($1,-1) == dccme ) { /DCCMe $nick | halt }
if ($right($1,-1) == remuser ) { /Remuser $nick $chan $2 $3 | halt }
if ($right($1,-1) == moduser ) { /Moduser $nick $chan $2 $3 | halt }
if ($right($1,-1) == adduser ) {
if ($2 == $null) { .notice $nick You Must Enter A Nickname. Usage: $me adduser
if ( $2 !ison $chan ) { .notice $nick $2 Is Not On $chan | halt }
if ($2 == $me) { .notice $nick Umm Why Would I Want To Add Myself? | .msg %bot.home $nick Just Tryied To Add Me To Myself - HAHA! | halt }
/adduser2 $chan $nick $2 $3 | halt
}
if ($right($1,-1) == deop) { /Deop $nick $chan $2 | halt }
if ($right($1,-1) == who ) { /WhoCom $nick $chan $2 | halt }
if ($right($1,-1) == op) { /Op $nick $chan $2 | halt }
if ($right($1,-1) == rehash ) { /RehashCom $nick | halt }
if ($right($1,-1) == restart ) { /RestartCom $nick | halt }
if ($right($1,-1) == die ) { /DieCom $nick $chan | halt }
if ($right($1,-1) == join ) { /JoinCom $nick $chan $2 | halt }
if ($right($1,-1) == reset ) { /ResetCom $nick $chan | halt }
if ( ($right($1,-1) == lastlogin) || ( ($right($1,-1) == last) && ($2 == login ) ) ) { /LastLogin $nick $chan | halt }
if ($right($1,-1) == backup ) { /Backupcom $nick $chan | halt }
if ($right($1,-1) == part ) { /PartCom $nick $chan $2 | halt }
if ($right($1,-1) == google) { /Google $nick $chan $2- | halt }
if ($right($1,-1) == badchan) { /Badhan $nick $chan $2 $3 | halt }
if ($right($1,-1) == voice) { /Voice $nick $chan $2 $3 | halt }
if ($right($1,-1) == devoice) { /DeVoice $nick $chan $2 $3 | halt }
if ($right($1,-1) == login) { /notice $nick $readini Personality\ $+ %bot.Personality.file Login WrongWayToLogin | halt }
if ($right($1,-1) == kick) { /KickCom $nick $chan $2 $3- | halt }
if ($right($1,-1) == unban) { /UnbanCom $nick $chan $2 | halt }
if ($right($1,-1) == ban) { /BanCom $nick $chan $2 $3- | halt }
if ($right($1,-1) == topic) { /TopicCom $nick $chan $2- | halt }
if ( $right($1,-1) == msg ) { /MSGCom $nick $chan $2 $3- | halt }
if ( ($right($1,-1) == topiclock ) || ( $2 == locktopic ) ) { /TopicLock $nick $chan $2- | halt }
if ( ($right($1,-1) == topicunlock ) || ( $2 == unlocktopic ) ) { /TopicUnlock $nick $chan | halt }
if ( ($right($1,-1) == wall ) || ( $2 == wallops ) ) { /Wall $nick $chan $2- | halt }
if ($right($1,-1) == mode ) { /ModeCom $nick $chan $2- | halt }
if ($right($1,-1) == cycle ) { /CycleCom $nick $chan $2 | halt }
if ($right($1,-1) == invite ) { /InviteCom $nick $chan $2 | halt }
if ($right($1,-1) == greet ) { /Greet $nick $chan $2- | halt }
if ($right($1,-1) == note ) { /Note $nick $chan $2 $3- | halt }
if ($right($1,-1) == notes ) { /Notes $nick $chan $2 $3 | halt }
if ( ($right($1,-1) == banner ) || ( $2 == broadcast ) ) { /Banner $nick $chan $2- | halt }
if ($right($1,-1) == onjoin ) { /Onjoin $nick $chan $2 $3- | halt }
if ($right($1,-1) == say ) { /SayCom $nick $chan $2- | halt }
if ($right($1,-1) == act ) { /ActCom $nick $chan | halt }
if ($right($1,-1) == mop ) { /MOp $nick $chan | halt }
if ($right($1,-1) == mdeop ) { /MDeop $nick $chan | halt }
if ($right($1,-1) == mvoice ) { /MVoice $nick $chan | halt }
if ($right($1,-1) == mdevoice ) { /MDeVoice $nick $chan | halt }
if ($right($1,-1) == lock ) { /Lock $nick $chan | halt }
if ($right($1,-1) == unlock ) { /UnLock $nick $chan | halt }
if ($right($1,-1) == channels ) { /Channels $nick $chan | halt }
if ($right($1,-1) == save ) { /SaveCom $nick $chan | halt }
if ($right($1,-1) == notice ) { /NoticeCom $nick $chan $2 $3- | halt }
if ($right($1,-1) == modelock ) { /Modelock $nick $chan $2 | halt }
if ($right($1,-1) == modeunlock ) { /notice $nick $readini Personality\ $+ %bot.Personality.file Modelock UseThisCommandInstead | halt }
if ($right($1,-1) == chanset ) { /Chanset $nick $chan $2 $3 | halt }
if ($right($1,-1) == chaninfo ) { /Chaninfo $nick $chan | halt }
if ( $right($1,-1) == swearkick ) { /Swearkick $nick $chan $2 $3 | halt }
if ( $right($1,-1) == ignore ) { /IgnoreCom $nick $chan $2 $3 | halt }
if ( $right($1,-1) == raw ) { /RawCom $nick $2- | halt }
if ( $right($1,-1) == chhandle ) { /Chhandle $nick $chan $2 $3 | halt }
if ( $right($1,-1) == makecmd ) { /MakeCMD $nick $chan $2 $3- | halt }
if ( $right($1,-1) == chpass ) { .notice $nick $readini Personality\ $+ %bot.Personality.file pass OwnerChangesAUserPassError | halt }
;new stuff here
}
;end need to login
if ($right($1,-1) == seen ) { /Seen $nick $chan $2 | halt }
if ($right($1,-1) == ping ) { /PingCom $nick $chan $2 | halt }
if ($right($1,-1) == banlist ) { /BanList $nick $chan | halt }
if ($right($1,-1) == userlist ) { /UserList $nick $chan $2 | halt }
if ($right($1,-1) == help ) { /help $nick $chan $2 | halt }
if ($right($1,-1) == time ) { /notice $nick $readini Personality\ $+ %bot.Personality.file Misc Time | set %bot.dcc.command Time | set %bot.dcc.command.nick $nick | set %bot.dcc.command.chan $chan | /dcctalk | halt }
if ($right($1,-1) == date ) { /notice $nick $readini Personality\ $+ %bot.Personality.file Misc Date | set %bot.dcc.command Date | set %bot.dcc.command.nick $nick | set %bot.dcc.command.chan $chan | /dcctalk | halt }
if ($right($1,-1) == version ) { /notice $nick $readini database\mircstorm.ini Variables BlankLogo By Evil_Dave | set %bot.dcc.command Version $readini database\mircstorm.ini Variables BlankLogo By Evil_Dave | set %bot.dcc.command.nick $nick | set %bot.dcc.command.chan $chan | /dcctalk | halt }
if ($right($1,-1) == uptime ) { /notice $nick $readini Personality\ $+ %bot.Personality.file Misc BeenOnline | halt }
if ($right($1,-1) == osuptime ) { set %bot.last.com osuptime By $nick At $time $date | /notice $nick My OS Was First Started $uptime(system,1) Ago | halt }
if ($right($1,-1) == levels ) { /Levels $nick $chan | halt }
if ($right($1,-1) == peak) { /Peak $nick $chan $2 | halt }
if ( ($right($1,-1) == access ) || ($right($1,-1) == whois) ) { /WhoisCom $nick $chan $2 | halt }
.notice $nick $readini Personality\ $+ %bot.Personality.file Command UnknownCommand
}
}
6. Save as AlternateTriggers.mrc in your bot’s Scripts folder
7. Type /load -rs Scripts/AlternateTriggers.mrc then restart your bot
8. Try to use your alternate triggers
NOTE:
The shortcut depend on what you set in your Main SetUp
If you set you personal shortcut as “!” you must command the bot like this:
!join #channel
!kick nick
etc
If you set the shortcut as “@” you must command the bot like this:
@Join #channel
@kick nick
etc
THIS SCRIPT HAS BEEN TESTED WITH mIRCStorm v2.0.0
Sairus88 has made a Comment
Hi men, thanks a lot.
But i have little problem. If i use command: makecmd like this:
02:38… —> ·lolitka· makecmd #SairusNET !pravidla notice $nick Nebud debil
02:38… —lolitka— Command Made.
02:38… @lolitka: When Users Type !pravidla The Command notice $nick Nebud debil Will Be Performed.
02:38… @Sairus88: !pravidla
02:38… —lolitka— Nebud debil
02:38… —lolitka— Unknown Command . You May Need To Login ‘/msg lolitka login ‘
my bot send me the description of command and unknow command please help. (sorry for my english but i am from czech republic)
January 24, 2008 @ 8:32 am
denie has made a Comment
!join #channel
September 21, 2008 @ 9:48 pm