Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:!tempban *:#:{
- if ($me ishop $chan || $me isop $chan) {
- if ($$2 ishop $chan || $$2 isop $chan) { halt }
- elseif ($nick !ishop $chan || $nick !isop $chan) && ($$2 ison $chan && $$3 isnum) {
- set %reason. [ $+ [ $$2 ] ] $4-
- if (%reason. [ $+ [ $$2 ] ] == $null) { set %reason. [ $+ [ $$2 ] ] No Reason }
- inc %kcount
- ban -ku $+ $calc($3 * 60) $chan $$2 2 10Reason: %reason. [ $+ [ $$2 ] ] ¤ Banned for $$3 minutes ¤ Requested By: $nick ¤12
- unset %reason. [ $+ [ $$2 ] ]
- }
- }
- }
- on *:TEXT:!tempmute *:#:{
- if ($me ishop $chan || $me isop $chan) {
- if ($$2 ishop $chan || $$2 isop $chan) { halt }
- elseif ($nick !ishop $chan || $nick !isop $chan) && ($$2 ison $chan) {
- ban -u $+ $calc($3 * 60) $chan $$2 2
- msg $chan $$2 has been muted for $3 minutes.
- }
- }
- }
- on *:JOIN:#: {
- if ($regex($nick,/^mib_/)) {
- echo -t #PokeTD Sending warning to $nick
- notice $nick Please use your 02forum name on this chat. Refresh the page and enter your name into the name box.
- notice $nick You will now be kicked. You may rejoin with another name.
- set %kicks. [ $+ [ $nick ] ] 1
- .timer 1 30 KickMib $nick $chan
- }
- }
- on *:NICK: {
- CheckMib $nick $newnick
- }
- alias KickMib {
- if ( %kicks. [ $+ [ $1 ] ] == 1 ) {
- echo -t #PokeTD Kicking $1 from $2
- kick $2 $1 Please use your forum name.
- ;mode $2 +b $1
- }
- unset %kicks. [ $+ [ $1 ] ]
- }
- alias CheckMib {
- if ( %kicks. [ $+ [ $1 ] ] == 1) && (!$regex($2,/^mib_/)) {
- set %kicks. [ $+ [ $1 ] ] 0
- echo -t #PokeTD Cancelling kick for $1 ( [ $+ [ $2 ] $+ ] )
- }
- }
- on *:TEXT:!commands:#: {
- if ($nick ishop $chan || $nick isop $chan) {
- notice $nick System commands: !warn <nick>, !dewarn <nick>, !checkwarn <nick> (nick must be present on channel), !tempban <nick> <time(mins)> [reason], !tempmute <nick> <time(mins)> }
- else { notice $nick Only staff can view the commands list. }
- }
- on *:JOIN:#:{
- if ($nick == Jonaton) {
- msg $nick Didn't you forget something? ;) }
- else if ($left($nick,4) == mib_) {
- /notice $nick Change your nick with "/nick name" (You can replace "name" with any nick you'd like to have). Mibs who don't change their names, will be kicked. }
- }
- on *:NICK:{
- if ($regex($newnick,/^Jonaton)) {
- msg $newnick Didn't you forget something? ;)
- }
- }
- on *:TEXT:*11312011*:#:{
- kick $chan $nick Don't give away the mystery code -_-
- }
- on *:TEXT:!warn*:#:{
- if ( $2 == $null ) { msg $nick Command : !warn [nick] | HALT }
- if ($nick ishop $chan || $nick isop $chan) {
- if ($2 ishop $chan || $2 isop $chan) { halt }
- if ( $readini(warnings.ini, $address($2,2),warning) == $null ) {
- writeini warnings.ini $address($2,2) warning 1
- writeini warnings.ini $address($2,2) nick $2
- if ( $2 ison #PokeTD ) { kick #PokeTD $2 You have now been warned (1/4) }
- if ( $2 ison #PokeTD-Trade ) { kick #PokeTD-Trade This is your first warning, $2 }
- if ( $2 ison #PokeTD-Auction ) { kick #PokeTD-Auction This is your first warning, $2 }
- if ( $2 ison #PokeTD-Mature ) { kick #PokeTD-Mature This is your first warning, $2 }
- if ( $2 ison #PokeTD-GPX ) { kick #PokeTD-GPX This is your first warning, $2 }
- if ( $2 ison #PokeTD-Contest ) { kick #PokeTD-Contest This is your first warning, $2 }
- HALT
- }
- if ( $readini(warnings.ini, $address($2,2),warning) == 1 ) {
- writeini warnings.ini $address($2,2) warning 2
- if ( $2 ison #PokeTD ) { kick #PokeTD $2 This is your second warning. You have been banned for 1 hour. | mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- if ( $2 ison #PokeTD-Trade ) { kick #PokeTD-Trade $2 This is your second warning. | notice $2 You have been banned for 1 hour. Further warning will lead to a 3 hour ban. | mode #PokeTD-Trade +b $address($2,2) | timer 1 3600 mode #PokeTD-Trade -b $address($2,2) }
- else { mode #PokeTD-Trade +b $address($2,2) | timer 1 3600 mode #PokeTD-Trade -b $address($2,2) }
- if ( $2 ison #PokeTD-Auction ) { kick #PokeTD-Auction $2 This is your second warning. | notice $2 You have been banned for 1 hour. Further warning will lead to a 3 hour ban. | mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Auction +b $address($2,2) | timer 1 3600 mode #PokeTD-Auction -b $address($2,2) }
- if ( $2 ison #PokeTD-Mature ) { kick #PokeTD-Mature $2 This is your second warning. | notice $2 You have been banned for 1 hour. Further warning will lead to a 3 hour ban. | mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Mature +b $address($2,2) | timer 1 3600 mode #PokeTD-Mature -b $address($2,2) }
- if ( $2 ison #PokeTD-GPX ) { kick #PokeTD-GPX $2 This is your second warning. | notice $2 You have been banned for 1 hour. Further warning will lead to a 3 hour ban. | mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-GPX +b $address($2,2) | timer 1 3600 mode #PokeTD-GPX -b $address($2,2) }
- if ( $2 ison #PokeTD-Contest ) { kick #PokeTD-Contest $2 This is your second warning. | notice $2 You have been banned for 1 hour. Further warning will lead to a 3 hour ban. | mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Contest +b $address($2,2) | timer 1 3600 mode #PokeTD-Contest -b $address($2,2) }
- HALT
- }
- if ( $readini(warnings.ini, $address($2,2),warning) == 2 ) {
- writeini warnings.ini $address($2,2) warning 3
- if ( $2 ison #PokeTD ) { kick #PokeTD $2 This is your third warning. | notice $2 You have been banned for 3 hours. Further warning will lead to a 24 hour ban. | mode #PokeTD +b $address($2,2) | timer 1 8400 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD +b $address($2,2) | timer 1 10800 mode #PokeTD -b $address($2,2) }
- if ( $2 ison #PokeTD-Trade ) { kick #PokeTD-Trade $2 This is your third warning. | notice $2 You have been banned for 3 hours. Further warning will lead to a 24 hour ban. | mode #PokeTD-Trade +b $address($2,2) | timer 1 8400 mode #PokeTD-Trade -b $address($2,2) }
- else { mode #PokeTD-Trade +b $address($2,2) | timer 10800 mode #PokeTD-Trade -b $address($2,2) }
- if ( $2 ison #PokeTD-Auction ) { kick #PokeTD-Auction $2 This is your third warning. | notice $2 You have been banned for 3 hours. Further warning will lead to a 24 hour ban. | mode #PokeTD +b $address($2,2) | timer 1 8400 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Auction +b $address($2,2) | timer 1 10800 mode #PokeTD-Auction -b $address($2,2) }
- if ( $2 ison #PokeTD-Mature ) { kick #PokeTD-Mature $2 This is your third warning. | notice $2 You have been banned for 3 hours. Further warning will lead to a 24 hour ban. | mode #PokeTD +b $address($2,2) | timer 1 8400 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Mature +b $address($2,2) | timer 1 10800 mode #PokeTD-Mature -b $address($2,2) }
- if ( $2 ison #PokeTD-GPX ) { kick #PokeTD-GPX $2 This is your third warning. | notice $2 You have been banned for 3 hours. Further warning will lead to a 24 hour ban. | mode #PokeTD +b $address($2,2) | timer 1 8400 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-GPX +b $address($2,2) | timer 1 10800 mode #PokeTD-GPX -b $address($2,2) }
- if ( $2 ison #PokeTD-Contest ) { kick #PokeTD-Contest $2 This is your third warning. | notice $2 You have been banned for 3 hours. Further warning will lead to a 24 hour ban. | mode #PokeTD +b $address($2,2) | timer 1 8400 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Contest +b $address($2,2) | timer 1 10800 mode #PokeTD-Contest -b $address($2,2) }
- HALT
- }
- if ( $readini(warnings.ini, $address($2,2),warning) == 3 ) {
- writeini warnings.ini $address($2,2) warning 4
- if ( $2 ison #PokeTD ) { kick #PokeTD $2 This is your final warning. | notice $2 You have been banned for 24 hours. Further warning will lead to a permanent ban. | mode #PokeTD +b $address($2,2) | timer 1 86400 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD +b $address($2,2) | timer 1 86400 mode #PokeTD -b $address($2,2) }
- if ( $2 ison #PokeTD-Trade ) { kick #PokeTD-Trade $2 This is your final warning. | notice $2 You have been banned for 24 hours. Further warning will lead to a permanent ban. | mode #PokeTD-Trade +b $address($2,2) | timer 1 86400 mode #PokeTD-Trade -b $address($2,2) }
- else { mode #PokeTD-Trade +b $address($2,2) | timer 1 86400 mode #PokeTD-Trade -b $address($2,2) }
- if ( $2 ison #PokeTD-Auction ) { kick #PokeTD-Auction $2 This is your final warning. | notice $2 You have been banned for 24 hours. Further warning will lead to a permanent ban. | mode #PokeTD +b $address($2,2) | timer 1 86400 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Auction +b $address($2,2) | timer 1 86400 mode #PokeTD-Auction -b $address($2,2) }
- if ( $2 ison #PokeTD-Mature ) { kick #PokeTD-Mature $2 This is your final warning. | notice $2 You have been banned for 24 hours. Further warning will lead to a permanent ban. | mode #PokeTD +b $address($2,2) | timer 1 86400 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Mature +b $address($2,2) | timer 1 86400 mode #PokeTD-Mature -b $address($2,2) }
- if ( $2 ison #PokeTD-GPX ) { kick #PokeTD-GPX $2 This is your final warning. | notice $2 You have been banned for 24 hours. Further warning will lead to a permanent ban. | mode #PokeTD +b $address($2,2) | timer 1 86400 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-GPX +b $address($2,2) | timer 1 86400 mode #PokeTD-GPX -b $address($2,2) }
- if ( $2 ison #PokeTD-Contest ) { kick #PokeTD-Contest $2 This is your final warning. | notice $2 You have been banned for 24 hours. Further warning will lead to a permanent ban. | mode #PokeTD +b $address($2,2) | timer 1 86400 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Contest +b $address($2,2) | timer 1 86400 mode #PokeTD-Contest -b $address($2,2) }
- HALT
- }
- if ( $readini(warnings.ini, $address($2,2),warning) == 4 ) {
- writeini warnings.ini $address($2,2) warning 5
- if ( $2 ison #PokeTD ) { kick #PokeTD $2 You are permanently banned. | mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD +b $address($2,2) }
- if ( $2 ison #PokeTD-Trade ) { kick #PokeTD-Trade $2 You are permanently banned. | mode #PokeTD-Trade +b $address($2,2) | timer 1 3600 mode #PokeTD-Trade -b $address($2,2) }
- else { mode #PokeTD-Trade +b $address($2,2) }
- if ( $2 ison #PokeTD-Auction ) { kick #PokeTD-Auction $2 You are permanently banned. | mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Auction +b $address($2,2) }
- if ( $2 ison #PokeTD-Mature ) { kick #PokeTD-Mature $2 You are permanently banned. | mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Mature +b $address($2,2) }
- if ( $2 ison #PokeTD-GPX ) { kick #PokeTD-GPX $2 You are permanently banned. | mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-GPX +b $address($2,2) }
- if ( $2 ison #PokeTD-Contest ) { kick #PokeTD-Contest $2 You are permanently banned. | mode #PokeTD +b $address($2,2) | timer 1 3600 mode #PokeTD -b $address($2,2) }
- else { mode #PokeTD-Contest +b $address($2,2) }
- remini warnings.ini $address($2,2) warning
- HALT
- }
- else { msg # $2 is on the Max Warn Level! Original Nickname : $readini(warnings.ini, $address($2,2),nick) | HALT }
- }
- else { msg # $nick $+ , this command is for operators only | HALT }
- }
- on *:TEXT:!checkwarn*:#:{
- if ( $readini(warnings.ini, $address($2,2),warning) == $null ) { msg # $2 does not have a warning level | HALT }
- else { msg # Warning Level : $readini(warnings.ini, $address($2,2),warning) | HALT }
- }
- on *TEXT:!dewarn*:#:{
- if ( $readini(warnings.ini, $address($2,2),warning) == $null ) { msg $nick $2 does not have a warning level | HALT }
- elseif ( $readini(warnings.ini, $address($2,2),warning) == 1 ) { remini warnings.ini $address($2,2) warning }
- elseif ( $readini(warnings.ini, $address($2,2),warning) == 2 ) { writeini warnings.ini $address($2,2) warning 1 }
- elseif ( $readini(warnings.ini, $address($2,2),warning) == 3 ) { writeini warnings.ini $address($2,2) warning 2 }
- elseif ( $readini(warnings.ini, $address($2,2),warning) == 4 ) { writeini warnings.ini $address($2,2) warning 3 }
- else { msg $nick $2 cannot be dewarned. }
- }
Add Comment
Please, Sign In to add comment