mIRCStorm V2.0.0 — File Browser
mIRCStormV2.0.0v2.0.0 / mIRCStormV2.0.0v2.0.0 / mIRCStormV2.0.0 / Scripts / CommandTriggers.mrc
CommandTriggers.mrc — 14.35 KB — Download this file
;mIRCStorm V2.0.0 - CommandTriggers.mrc
;
;Website: http://www.mIRCStorm.co.uk
;Author: Evil_Dave (Evil_Dave@mIRCStorm.co.uk)
;
;This Script Contains All Triggers For All Commands
;========================================================
;==================CommandTriggers.mrc===================
;========================================================
on *:JOIN:#:{
if ( $me isop $chan ) { /mode $chan %bot.defaut.mode }
if (($nick($chan,0) > $readini database\mircStorm.chan Peak $chan) || ( $readini database\mircStorm.chan Peak $chan == $null) ) {
writeini database\mircStorm.chan Peak $chan $nick($chan,0)
if (%bot.peak. [ $+ [ $chan ] ] ) { /msg $chan $readini Personality\ $+ %bot.Personality.file Peak MSGChaOnNewPeak }
}
if ($exists($mircdir\database\ [ $+ [ $chan ] ] $+ .onjoin)) {
if ( $nick == $me ) { halt }
set %bot.help.work worked
//play -n $nick database\ [ $+ [ $chan ] ] $+ .onjoin 1080
}
var %bot.greet.join.userhost [ $address($nick,3) ]
if ( $readini -n database\mircStorm.user Greet [ $+ [ $chan ] ] %bot.greet.join.userhost != $null ) {
.msg $chan ( $nick ) $readini -n database\mircStorm.user Greet [ $+ [ $chan ] ] %bot.greet.join.userhost
}
if ( $readini database\mircstorm.chan $chan $nick == 4 ) {
var %bot.autoop.host $address($nick,3)
if ( $readini database\mircstorm.user Users $nick == %bot.autoop.host ) {
.mode $chan +o $nick
}
}
}
on 1:TEXT:*:#:{
if ( (%bot.shortcut.1 == $1) || ( %bot.shortcut.2 == $1 ) || (%bot.shortcut.3 == $1 ) || (%bot.shortcut.4 == $1 ) || (%bot.shortcut.5 == $1 ) ) {
var %bot.cyclenum 1
while ( %bot.cyclenum <= 30) {
if ($lower($readini Database\mIRCStorm.ini Addons UsingCommand [ $+ [ %bot.cyclenum ] ]) == $lower($2)) { halt }
inc %bot.cyclenum 1
}
if ($readini database\mircStorm.GID Login $fulladdress != $null) {
if ($2 == lastcom) { /LastCom $nick | halt }
if ($2 == dccme ) { /DCCMe $nick | halt }
if ($2 == remuser ) { /Remuser $nick $chan $3 $4 | halt }
if ($2 == moduser ) { /Moduser $nick $chan $3 $4 | halt }
if ($2 == adduser ) {
if ($3 == $null) { .notice $nick You Must Enter A Nickname. Usage: $me adduser <nick> <level> | .notice $nick For Help: $me help adduser | halt } | if ($4 == $null) { .notice $nick You Must Enter A Level. See ' $+ $me levels $+ ' For More Information On Levels. | halt }
if ( $3 !ison $chan ) { .notice $nick $3 Is Not On $chan | halt }
if ($3 == $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 $3 $4 | halt
}
if ($2 == deop) { /Deop $nick $chan $3 | halt }
if ($2 == who ) { /WhoCom $nick $chan $3 | halt }
if ($2 == op) { /Op $nick $chan $3 | halt }
if ($2 == rehash ) { /RehashCom $nick | halt }
if ($2 == restart ) { /RestartCom $nick | halt }
if ($2 == die ) { /DieCom $nick $chan | halt }
if ($2 == join ) { /JoinCom $nick $chan $3 | halt }
if ($2 == reset ) { /ResetCom $nick $chan | halt }
if ( ($2 == lastlogin) || ( ($2 == last) && ($3 == login ) ) ) { /LastLogin $nick $chan | halt }
if ($2 == backup ) { /Backupcom $nick $chan | halt }
if ($2 == part ) { /PartCom $nick $chan $3 | halt }
if ($2 == google) { /Google $nick $chan $3- | halt }
if ($2 == badchan) { /Badhan $nick $chan $3 $4 | halt }
if ($2 == voice) { /Voice $nick $chan $3 $4 | halt }
if ($2 == devoice) { /DeVoice $nick $chan $3 $4 | halt }
if ($2 == login) { /notice $nick $readini Personality\ $+ %bot.Personality.file Login WrongWayToLogin | halt }
if ($2 == kick) { /KickCom $nick $chan $3 $4- | halt }
if ($2 == unban) { /UnbanCom $nick $chan $3 | halt }
if ($2 == ban) { /BanCom $nick $chan $3 $4- | halt }
if ($2 == topic) { /TopicCom $nick $chan $3- | halt }
if ( $2 == msg ) { /MSGCom $nick $chan $3 $4- | halt }
if ( ($2 == topiclock ) || ( $2 == locktopic ) ) { /TopicLock $nick $chan $3- | halt }
if ( ($2 == topicunlock ) || ( $2 == unlocktopic ) ) { /TopicUnlock $nick $chan | halt }
if ( ($2 == wall ) || ( $2 == wallops ) ) { /Wall $nick $chan $3- | halt }
if ($2 == mode ) { /ModeCom $nick $chan $3- | halt }
if ($2 == cycle ) { /CycleCom $nick $chan $3 | halt }
if ($2 == invite ) { /InviteCom $nick $chan $3 | halt }
if ($2 == greet ) { /Greet $nick $chan $3- | halt }
if ($2 == note ) { /Note $nick $chan $3 $4- | halt }
if ($2 == notes ) { /Notes $nick $chan $3 $4 | halt }
if ( ($2 == banner ) || ( $2 == broadcast ) ) { /Banner $nick $chan $3- | halt }
if ($2 == onjoin ) { /Onjoin $nick $chan $3 $4- | halt }
if ($2 == say ) { /SayCom $nick $chan $3- | halt }
if ($2 == act ) { /ActCom $nick $chan | halt }
if ($2 == mop ) { /MOp $nick $chan | halt }
if ($2 == mdeop ) { /MDeop $nick $chan | halt }
if ($2 == mvoice ) { /MVoice $nick $chan | halt }
if ($2 == mdevoice ) { /MDeVoice $nick $chan | halt }
if ($2 == lock ) { /Lock $nick $chan | halt }
if ($2 == unlock ) { /UnLock $nick $chan | halt }
if ($2 == channels ) { /Channels $nick $chan | halt }
if ($2 == save ) { /SaveCom $nick $chan | halt }
if ($2 == notice ) { /NoticeCom $nick $chan $3 $4- | halt }
if ($2 == modelock ) { /Modelock $nick $chan $3 | halt }
if ($2 == modeunlock ) { /notice $nick $readini Personality\ $+ %bot.Personality.file Modelock UseThisCommandInstead | halt }
if ($2 == chanset ) { /Chanset $nick $chan $3 $4 | halt }
if ($2 == chaninfo ) { /Chaninfo $nick $chan | halt }
if ( $2 == swearkick ) { /Swearkick $nick $chan $3 $4 | halt }
if ( $2 == ignore ) { /IgnoreCom $nick $chan $3 $4 | halt }
if ( $2 == raw ) { /RawCom $nick $3- | halt }
if ( $2 == chhandle ) { /Chhandle $nick $chan $3 $4 | halt }
if ( $2 == makecmd ) { /MakeCMD $nick $chan $3 $4- | halt }
if ( $2 == chpass ) { .notice $nick $readini Personality\ $+ %bot.Personality.file pass OwnerChangesAUserPassError | halt }
;new stuff here
}
;end need to login
if ($2 == seen ) { /Seen $nick $chan $3 | halt }
if ($2 == ping ) { /PingCom $nick $chan $3 | halt }
if ($2 == banlist ) { /BanList $nick $chan | halt }
if ($2 == userlist ) { /UserList $nick $chan $3 | halt }
if ($2 == help ) { /help $nick $chan $3 | halt }
if ($2 == 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 ($2 == 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 ($2 == 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 ($2 == uptime ) { /notice $nick $readini Personality\ $+ %bot.Personality.file Misc BeenOnline | halt }
if ($2 == osuptime ) { set %bot.last.com osuptime By $nick At $time $date | /notice $nick My OS Was First Started $duration($ticks) Ago | halt }
if ($2 == levels ) { /Levels $nick $chan | halt }
if ($2 == peak) { /Peak $nick $chan $3 | halt }
if ( ($2 == access ) || ($2 == whois) ) { /WhoisCom $nick $chan $3 | halt }
.notice $nick $readini Personality\ $+ %bot.Personality.file Command UnknownCommand
}
var %bot.makecmd.temp 1
while (%bot.makecmd.temp <= 5) {
if ($1 == %bot.madecommand. [ $+ [ %bot.makecmd.temp ] ]) { [ / $+ [ %bot.madecommand.made. [ $+ [ %bot.makecmd.temp ] ] ] ] | halt }
inc %bot.makecmd.temp 1
}
}
on 1:TEXT:*:?:{
if (($1 == login) || ($1 == hello) || ($1 == pass) || ($1 == ident) || ($1 == xlogin)) { halt }
var %bot.cyclenum 1
while ( %bot.cyclenum <= 20) {
if ($lower($readini Database\mIRCStorm.ini Addons UsingCommand [ $+ [ %bot.cyclenum ] ]) == $lower($1)) { halt }
inc %bot.cyclenum 1
}
.timer 1 2 /close -m
if (%bot.addon.LogProblem. [ $+ [ $nick ] ]) { halt }
if ($readini database\mircStorm.GID Login $fulladdress == $null) { /notice $nick $readini Personality\ $+ %bot.Personality.file Command YouMustLogin | halt }
if ($readini database\mircStorm.GID Login $fulladdress != $null) {
if ($left($2,1) != $chr(35)) { /notice $nick $readini Personality\ $+ %bot.Personality.file MSGCommands MSGNeedAChannel | halt }
if ($1 == lastcom) { /LastCom $nick | halt }
if ($1 == dccme ) { /DCCMe $nick | halt }
if ($1 == help ) { /help $nick $2 $3 | halt }
if ($1 == remuser ) { /Remuser $nick $2 $3 $4 | halt }
if ($1 == moduser ) { /Moduser $nick $2 $3 $4 | halt }
if ($1 == adduser ) {
if ($3 == $null) { .notice $nick You Must Enter A Nickname. Usage: $me adduser <nick> <level> | .notice $nick For Help: $me help adduser | halt } | if ($4 == $null) { .notice $nick You Must Enter A Level. See ' $+ $me levels $+ ' For More Information On Levels. | halt }
if ( $3 !ison $2 ) { .notice $nick $3 Is Not On $2 | halt }
if ($3 == $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 $2 $nick $3 $4 | halt
}
if ($1 == deop) { /Deop $nick $2 $3 | halt }
if ($1 == who ) { /WhoCom $nick $2 $3 | halt }
if ($1 == op) { /Op $nick $2 $3 | halt }
if ($1 == rehash ) { /RehashCom $nick | halt }
if ($1 == restart ) { /RestartCom $nick | halt }
if ($1 == die ) { /DieCom $nick $2 | halt }
if ($1 == join ) { /JoinCom $nick $2 $3 | halt }
if ($1 == reset ) { /ResetCom $nick $2 | halt }
if ( ($1 == lastlogin) || ( ($1 == last) && ($3 == login ) ) ) { /LastLogin $nick $2 | halt }
if ($1 == backup ) { /Backup $nick $2 | halt }
if ($1 == part ) { /PartCom $nick $2 $3 | halt }
if ($1 == google) { /Google $nick $2 $3- | halt }
if ($1 == badchan) { /Badhan $nick $2 $3 $4 | halt }
if ($1 == voice) { /Voice $nick $2 $3 $4 | halt }
if ($1 == devoice) { /DeVoice $nick $2 $3 $4 | halt }
if ($1 == login) { /notice $nick $readini Personality\ $+ %bot.Personality.file Login WrongWayToLogin | halt }
if ($1 == kick) { /KickCom $nick $2 $3 $4- | halt }
if ($1 == unban) { /UnbanCom $nick $2 $3 | halt }
if ($1 == ban) { /BanCom $nick $2 $3 $4 $5- | halt }
if ($1 == topic) { /TopicCom $nick $2 $3- | halt }
if ( $1 == msg ) { /MSGCom $nick $2 $3 $4- | halt }
if ( ($1 == topiclock ) || ( $1 == locktopic ) ) { /TopicLock $nick $2 $3- | halt }
if ( ($1 == TopicUnlock ) || ( $1 == UnlockTopic ) ) { /TopicUnlock $nick $2 | halt }
if ( ($1 == wall ) || ( $1 == wallops ) ) { /Wall $nick $2 $3- | halt }
if ($1 == mode ) { /ModeCom $nick $2 $3- | halt }
if ($1 == cycle ) { /CycleCom $nick $2 $3 | halt }
if ($1 == invite ) { /InviteCom $nick $2 $3 | halt }
if ($1 == greet ) { /Greet $nick $2 $3- | halt }
if ($1 == note ) { /Note $nick $2 $3 $4- | halt }
if ($1 == notes ) { /Notes $nick $2 $3 $4 | halt }
if ( ($1 == banner ) || ( $1 == broadcast ) ) { /Banner $nick $2 $3- | halt }
if ($1 == onjoin ) { /Onjoin $nick $2 $3 $4- | halt }
if ($1 == say ) { /SayCom $nick $2 $3- | halt }
if ($1 == act ) { /ActCom $nick $2 | halt }
if ($1 == mop ) { /MOp $nick $2 | halt }
if ($1 == mdeop ) { /MDeop $nick $2 | halt }
if ($1 == mvoice ) { /MVoice $nick $2 | halt }
if ($1 == mdevoice ) { /MDeVoice $nick $2 | halt }
if ($1 == lock ) { /Lock $nick $2 | halt }
if ($1 == unlock ) { /UnLock $nick $2 | halt }
if ($1 == channels ) { /Channels $nick $2 | halt }
if ($1 == save ) { /SaveCom $nick $2 | halt }
if ($1 == notice ) { /NoticeCom $nick $2 $3 $4- | halt }
if ($1 == modelock ) { /Modelock $nick $2 $3 | halt }
if ($1 == modeunlock ) { /notice $nick $readini Personality\ $+ %bot.Personality.file Modelock UseThisCommandInstead | halt }
if ($1 == chanset ) { /Chanset $nick $2 $3 $4 | halt }
if ($1 == chaninfo ) { /Chaninfo $nick $2 | halt }
if ( $1 == swearkick ) { /Swearkick $nick $2 $3 $4 | halt }
if ( $1 == ignore ) { /IgnoreCom $nick $2 $3 $4 | halt }
if ( $1 == raw ) { /RawCom $nick $3- | halt }
if ( $1 == chhandle ) { /Chhandle $nick $2 $3 $4 | halt }
if ( $1 == makecmd ) { /MakeCMD $nick $2 $3 $4- | halt }
if ( $1 == chpass ) { /chpass $nick $2 $3 $4 | halt }
;new stuff here
}
;end need to login
if ($1 == seen ) { /Seen $nick $2 $3 | halt }
if ($1 == ping ) { /PingCom $nick $2 $3 | halt }
if ($1 == banlist ) { /BanList $nick $2 | halt }
if ($1 == userlist ) { /UserList $nick $2 $3 | halt }
if ($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 $2 | /dcctalk | halt }
if ($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 $2 | /dcctalk | halt }
if ($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 $2 | /dcctalk | halt }
if ($1 == uptime ) { /notice $nick $readini Personality\ $+ %bot.Personality.file Misc BeenOnline | halt }
if ($1 == osuptime ) { set %bot.last.com osuptime By $nick At $time $date | /notice $nick My OS Was First Started $duration($ticks) Ago | halt }
if ($1 == levels ) { /Levels $nick $2 | halt }
if ($1 == peak) { /Peak $nick $chan $3 | halt }
if ( ($1 == access ) || ($1 == whois) ) { /WhoisCom $nick $2 $3 | halt }
if (%bot.addon.LogProblem. [ $+ [ $nick ] ]) { halt }
/notice $nick $readini Personality\ $+ %bot.Personality.file Command MSGUnknownCommand
}