Multi-Channel Greet Script

By shaneny on Oct 27, 2010

This is a script I made that welcomes a user when they join your channel, I made this because most of the other greet scripts were either only for 1 channel, or was a nick greet message.

Usage:
!greet set (message) - Sets the greet message for the specific channel
!greet on - Activates/Turns on the greet message
!greet off - Deactivates/Turns off the greet message

on *:TEXT:!greet set *:#: {
  if ($nick isop $chan) {
    %greetmsg- [ $+ [ $chan ] ] = $3-
    msg $chan Greet for $chan set to %greetmsg- [ $+ [ $chan ] ]
  }
}

on *:TEXT:!greet off:#: {
  if ($nick isop $chan && %greet- [ $+ [ $chan ] ] == true) {
    unset %greet- [ $+ [ $chan ] ]
    msg $chan Greet DEACTIVATED for $chan
  }
}

on *:TEXT:!greet on:#: {
  if ($nick isop $chan && %greetmsg- [ $+ [ $chan ] ]) {
    %greet- [ $+ [ $chan ] ] = true
    msg $chan Greet message for $chan ACTIVATED
  }
  else {
    msg $chan Before activating the greet message please set the message, by typing !greet set (message)
  }
}

on *:JOIN:#: {
  if (%greetmsg- [ $+ [ $chan ] ] && %greet- [ $+ [ $chan ] ] = true) {
    msg $chan %greetmsg- [ $+ [ $chan ] ]
  }
}

Comments

Sign in to comment.
napa182   -  Oct 27, 2010

lol
Jethro_ ur version works fine
funny how these people are quick to try to talk crap about things they obviously are
oblivious about.

 Respond  
xbox_gamer1   -  Oct 27, 2010

Jethro_ well, i did try it..... and i do run on a irc server like you do i run on a private irc server so it DOES NOT WORK the same has your
ok!!

 Respond  
Jethro   -  Oct 27, 2010

xbox_gamer1, I doubt you tried my version. It worked and is still working for me. You have to enter !greet set MsgHere first. The on and off switch will be available after the message has been set.

Plus I didn't include the join event.

 Respond  
xbox_gamer1   -  Oct 27, 2010

Jethro i try the script you posted and it does not work
Shaneny nice work kip it up

 Respond  
Jethro   -  Oct 27, 2010

shaneny, I don't see why:

on *:TEXT:$($iif(!greet* iswm $strip($1),$1)):#:{
  tokenize 32 $strip($1-)
  if ($nick isop $chan) && (!%p) { inc -u3 %p
    if ($2 == set) && ($3-) {
      %greetmsg- [ $+ [ $chan ] ] = $3-
      msg $chan Greet for $chan set to %greetmsg- [ $+ [ $chan ] ]
    }
    elseif ($2 == off) && (%greet- [ $+ [ $chan ] ] == true) {
      unset %greet- [ $+ [ $chan ] ]
      msg $chan Greet DEACTIVATED for $chan
    }
    elseif ($2 == on) && (%greetmsg- [ $+ [ $chan ] ]) {
      %greet- [ $+ [ $chan ] ] = true
      msg $chan Greet message for $chan ACTIVATED
    }
    else {
      msg $chan Before activating the greet message please set the message, by typing !greet set (message)
    }
  }
}

I didn't make extensive changes to your current script.

 Respond  
shaneny   -  Oct 27, 2010

Jethro_, I originally did it in one text event, but it went wonky, so I just put it into seperate ones

 Respond  
Jethro   -  Oct 27, 2010

ONE text event is all you need.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.