Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Jane
« on: February 11, 2011, 06:27:47 pm »

Simple and nice script.
Posted by: King_Hual
« on: February 11, 2011, 03:04:31 pm »

First: The script that uses the owner system that I posted before.
Code: [Select]
on owner:text:!join*:*:{
  if ($me ison $$2) {
    notice $nick 4I am in that channel already
  }
  else {
    join $$2
    notice $nick I joined $$2
  }
}

on owner:text:!part*:#:{
  if ($me ison $$2) {
    notice $nick 4I left $$2
    part $$2
  }
  else {
    notice $nick 4I am not in that channel
  }
}

on owner:text:!rejoin*:#:{
  if ($$2 == $null) {
    notice $nick 7,1Usage: !rejoin <channel>
  }
  if ($me ison $$2) {
    hop $$2   
    notice $nick 4I rejoined $$2
  }
  else {
    notice $nick 4I am not in that channel
  }
}

on owner:text:!partall*:#:{
  if ($2 == $null) {
    partall
  }
  else {
    partall
    timer 1 1 join $$2
    ;The timer above is for exceptions. For example: !partall #king_hual will part all channels except #king_hual. You can add multiple channels to the exception, by putting a comma (,) between them. Example: #king_hual,#scripters,#jane
  }
}

Or, if you don't use the owner system I posted:
Code: [Select]
on *:text:!join*:*:{
  if ($nick == yournamehere) {
    if ($me ison $$2) {
      notice $nick 4I am in that channel already
    }
    else {
      join $$2
      notice $nick I joined $$2
    }
  }
}

on *:text:!part*:#:{
  if ($nick == yournamehere) {
    if ($me ison $$2) {
      notice $nick 4I left $$2
      part $$2
    }
    else {
      notice $nick 4I am not in that channel
    }
  }
}

on *:text:!rejoin*:#:{
  if ($nick == yournamehere) {
    if ($$2 == $null) {
      notice $nick 7,1Usage: !rejoin <channel>
    }
    if ($me ison $$2) {
      notice $nick 4I rejoined $$2
      hop $$2
    }
    else {
      notice $nick 4I am not in that channel
    }
  }
}

on *:text:!partall*:#:{
  if ($nick == yournamehere) {
    if ($2 == $null) {
      partall
    }
    else {
      partall
      timer 1 1 join $$2
     ;The timer above is for exceptions. For example: !partall #king_hual will part all channels except   #king_hual. You can add multiple channels to the exception, by putting a comma (,) between them. Example: #king_hual,#scripters,#jane
    }
  }
}