StatusReport for Bots

Release your script here.
State:
- Author
- What it does
- Perhaps a little guide.
- Also, if the snippet is of any use to the community, it has a chance of getting posted on the main page, so don't hesitate to submit/ask!

StatusReport for Bots

Postby zNigel- » Sun May 17, 2009 10:55 pm

Hey again..


Made a very simple Reporting script.
It reports to a specified channel when the bot is Deopped/Opped/Voiced/Devoiced/banned/kicked/invited :)


Pretty easy made, so dont laugh :p

Here goes

Code: Select all
on *:LOAD:{

  ;Some settings (No need to change anything)
  set %privchan $?="What's your private channel? With #."


  ;Author (DO NOT TOUCH)
  set %author zNigel-
  set %version 0.02


  echo -a StatusReport by %author v $+ %version loaded. Privatechannel is set to: %privchan
}

on *:connect:{
  if (%author != zNigel-) { quit }
  .join %privchan
}

on *:OP:#: {
  if (%author != zNigel-) { quit }
  elseif ($chan == %privchan) { halt }
  elseif ($opnick == $me) {
    .msg %privchan 3INFO: I've been OPED in  $+ $chan by  $+ $nick $+ 
  }
}

on *:VOICE:#: {
  if (%author != zNigel-) { quit }
  elseif ($chan == %privchan) { halt }
  elseif ($vnick == $me) {
    .msg %privchan 3INFO: I've been VOICED in  $+ $chan by  $+ $nick $+ 
  }
}

on *:DEOP:#: {
  if (%author != zNigel-) { quit }
  elseif ($chan == %privchan) { halt }
  elseif ($opnick == $me) {
    .msg %privchan 4ERROR: I've been DEOPED in  $+ $chan by  $+ $nick $+ 
  }
}

on *:DEVOICE:#: {
  if (%author != zNigel-) { quit }
  elseif ($chan == %privchan) { halt }
  elseif ($vnick == $me) {
    .msg %privchan 4ERROR: I've been DEVOICED in  $+ $chan by  $+ $nick $+ 
  }
}


on *:KICK:#: {
  if (%author != zNigel-) { quit }
  elseif ($chan == %privchan) { halt }
  elseif ($knick == $me) {
    .msg %privchan 4ERROR: I've been KICKED from  $+ $chan by  $+ $nick with the reason:  $+ $1- $+ 
  }
}
on *:BAN:#:{
  if (%author != zNigel-) { quit }
  elseif ($chan == %privchan) { halt }
  elseif ($banmask iswm $address($me,5)) {
    .msg %privchan 4ERROR: I've been BANNED from  $+ $chan by  $+ $nick $+ 

  }
}
on *:INVITE:#: {
  if (%author != zNigel-) { quit }
  .msg %privchan 7INFO: I've been INVITED by  $+ $nick to  $+ $chan $+ 
}
zNigel-
 

Re: StatusReport for Bots

Postby zNigel- » Sun May 31, 2009 11:08 am

20views and not a single comment ;<
zNigel-
 

Re: StatusReport for Bots

Postby fraguk » Sun May 31, 2009 4:26 pm

nice script m8 8-) ;)
fraguk
 

Re: StatusReport for Bots

Postby StareX » Tue Jun 02, 2009 6:02 am

cool script but when my bot join the server... it makes him flood...
then poof. it get disconnected..

What to do? hahha :P ?
StareX
 

Re: StatusReport for Bots

Postby zNigel- » Tue Jun 02, 2009 10:57 am

StareX wrote:cool script but when my bot join the server... it makes him flood...
then poof. it get disconnected..

What to do? hahha :P ?



Strange, must be some other script that does it.
zNigel-
 

Re: StatusReport for Bots

Postby Cristian » Tue Jun 02, 2009 2:22 pm

It looks really good, are you planning on to make it more advanced?



zNigel wrote:20views and not a single comment ;<


500+ views and no comments on some of my threads, so either I made some bad scripts or people don't like to make a post.
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: StatusReport for Bots

Postby zNigel- » Tue Jun 02, 2009 3:04 pm

Sumsar wrote:It looks really good, are you planning on to make it more advanced?


Dunno rly how i should make it more advanced.. But if you got any ideas, dont hesitate to post them :)


Sumsar wrote:
zNigel wrote:20views and not a single comment ;<


500+ views and no comments on some of my threads, so either I made some bad scripts or people don't like to make a post.


I just think ppl can add a comment on the scripts and tell if the scripter did a good job or if there is something that could be improved.
That's why i said that >,<
zNigel-
 

Re: StatusReport for Bots

Postby capurro » Sat Jul 04, 2009 12:43 pm

[15:42] * Send error ([10054] Connection reset by peer)
-
[15:42] * Disconnected
-
* /quit: not connected to server (line 16, msndialog.mrc)

dont work :( help me

on *:LOAD:{

;Some settings (No need to change anything)
set %privchan $?="#capurro"
capurro
 

Re: StatusReport for Bots

Postby zNigel- » Sat Jul 04, 2009 12:44 pm

capurro wrote:[15:42] * Send error ([10054] Connection reset by peer)
-
[15:42] * Disconnected
-
* /quit: not connected to server (line 16, msndialog.mrc)

dont work :( help me

on *:LOAD:{

;Some settings (No need to change anything)
set %privchan $?="#capurro"


You shouldnt touch the "set %privchan" variable.. When you load the script, a small window will popup, and there you should set the channel..
zNigel-
 

Re: StatusReport for Bots

Postby capurro » Sat Jul 04, 2009 1:22 pm

dont understand sorry :oops:
capurro
 

Next

Return to Mirc Scripting Release

Who is online

Users browsing this forum: No registered users and 1 guest

cron