Script of !join, !part

Paste Your small code(s) here, ex. small aliases, identifiers

Script of !join, !part

Postby StareX » Sat Jan 03, 2009 12:50 pm

Ok guys,
I have made a script with !join #channel, !part #channel :P

Code: Select all
on *:text:!join*:#:{
  if ($nick == %nick) {
    if ($me ison $2) {
      msg $chan 4,1[ 7Channels 4] - 11You know i'm there? So i'm already in $2 $+ 4. 
    }
    if ($2 == %chan1 || $2 == %chan2 || $2 == %chan3) {
      msg $chan 4,1[ 7Suspend 4,1] - 7I don't wanna go there! I'm not going to be in $2 $+ 4.
    }
    else {
      join $2
    }
  }
}

on *:text:!part*:#:{
  if ($nick == %nick) {
    if ($me !ison $2) {
      msg $chan 4,1[ 7Channels 4,1] - 7I don't know what is this channel, i'm not in $2 $+ 4.
    }
    else {
      part $2
    }
  }
}

menu * {
Set Nick Admin access
 ..Set nick: set %nick $$?="Enter The nick Here. (Example: FunnyGuy)"
}

menu * {
Set Suspend Chans
..Set Chan1: set %chan1 $$?="Chan1 Enter Channel here: (Example: #MyOcen)"
..Set Chan2: set %chan2 $$?="Chan2 Enter Channel here: (Example: #MyOcen)"
..Set Chan3: set %chan3 $$?="Chan3 Enter Channel here: (Example: #MyOcen)"


I have tested it..
It works great!
Any bug or problem..
Post here.

Have fun! :)

P.S. Do not change anything or the script will not work! Thanks!

StareX.
StareX
 

Re: Script of !join, !part

Postby Przemo » Sat Jan 03, 2009 1:31 pm

Ayo technology! WHOAH!... sad :(
Przemo
 

Re: Script of !join, !part

Postby Mirora » Sun Jan 04, 2009 7:32 am

a.k.a Idle deal script
Mirora
 

Re: Script of !join, !part

Postby Cristian » Sun Jan 04, 2009 8:31 am

Nice script, and it doesn't have to be a idle script, it can be used for bot management.
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: Script of !join, !part

Postby capurro » Sun Jan 04, 2009 8:44 am

Code: Select all
if ($2 == join) { 
    set %nick $nick
    if ($2 == $null) {
    notice $nick SYNTAX: $me join <#channel> | halt }
    join $3-
    notice $nick Channel ( $3 ) successfully added to my channel list.
  }
  if ($2 == part) {
    if ($2 == $null) {
    notice $nick SYNTAX: $me part <#channel> | halt }
    if ($me !ison $3-) {
    notice $nick I'm not on $3  | halt }
    part $3-
    notice $nick Channel ( $3 ) successfully removed from my channel list.
  }
capurro
 

Re: Script of !join, !part

Postby PuNkTuReD » Sun Jan 04, 2009 9:09 am

capurro
Code: Select all
 if ($2 == part) { 
    if ($2 == $null) {


$2 cant == part
and be $null at the same time
PuNkTuReD
 


Return to Mirc Scripting Snippets

Who is online

Users browsing this forum: No registered users and 1 guest

cron