Top

2 simple part scripts


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  0.0
Scores Submitted  0
Date Added  Sep 05, 2007
Last Updated  Sep 05, 2007
Tags  bot  leave  part 
  Bookmark and Share

Introduction

2 part scripts one for the owner and one for the ops

the owner script can be used in any chan and the part for op only can be used for the chan the person is in

replace BOTOWNER with your nick and replace BOTSNICKHERE with the bots nick.

Grab the Code

Comments

  (3)  RSS
mountaindew
Comments: 1,645
 
mIRC Snippet:  2 simple part scripts
Posted on Sep 5, 2007 5:43 pm
Code:

on *:text:!part*:#:{
  if ($2 == $me) part $chan Requested by $nick $+ .
  elseif ($me ison $2) && ($nick == BOTOWNER) part $2 Requested by $nick $+ .
}


i combined ur two on text's and added a menu to set the bots owner

also, instead of writing "BOTS NAME" i put if($2 == $me) $me will return your name
mountaindew
Comments: 1,645
 
mIRC Snippet:  2 simple part scripts
Posted on Sep 5, 2007 5:44 pm
ignore the menu part, i decided no to add it and i forgot to erase it :P
napa182
Comments: 1,153
 
mIRC Snippet:  2 simple part scripts
Posted on Sep 5, 2007 5:46 pm
you can do it like this also..
Code:
alias botowner { set %botowner $1 | echo -a BotOwner is now $1 }
on *:TEXT:!part *:#: {
  if ($nick == %botowner) {
    part  $2 requested by owner
  }
}
on *:TEXT:!part:#: {
  if ($nick isop $chan) {
    part $chan requested by $nick
  }
}

Please Register or Login to start posting comments.
Bottom