welcome , welcome back

By HarryCanyon on Apr 24, 2008

a simple welcome and welcome back script
add to remotes
best to use in a bot

ON *:JOIN:#: {
  if ($nick == $me) || ($nick == BOTNAME) halt
  if ( %xnick [ $+ [ $nick ] ] == $null ) {
    .msg $chan Welcome $nick
  }
  if ( %xnick [ $+ [ $nick ] ] == 1 ) {
    .msg $chan Welcome back $nick
    unset %xnick $+ $nick
  }
}
ON *:PART:#: { 
  set -u120 %xnick $+ $nick 1
}

Comments

Sign in to comment.
dreamless12   -  Jul 09, 2009

thx for the script
love it works perfectly

 Respond  
Jonesy44   -  Feb 02, 2009

Firstmate: i agree with Korvin here, they are unnecesarry, and pointless keeping. my main example i can think of was when i use to use "%x == $null" without realising i could use "(!%x)" it's just small things like that that make code better. i'd say 5 max for this.

 Respond  
Firstmate   -  Feb 02, 2009

LOL annoying and optional things are NOT bad habits.

 Respond  
Korvin   -  Feb 02, 2009

they are bad habits.

  if ( %xnick [ $+ [ $nick ] ] == 1 ) { 

the []s get annoying...

    .msg $chan Welcome back $nick

you dont need to . everything.
they arent terrible, im just saying that im glad that people didnt go easy on me when i first started, i wouldve gotten nowhere

 Respond  
Firstmate   -  Feb 02, 2009

But they aren't bad habits. I see no horrible habits.

 Respond  
Korvin   -  Feb 02, 2009

im not being harsh, look at the rating description... im just saying this is a 5 at best... he did a good job, but you shouldnt go easy on him for his first script

you dont want them to stick with bad habits, and call it good.

 Respond  
Firstmate   -  Feb 02, 2009

First off its his first script. Second it doesn't have to be useful. Lastly there's no need to be so harsh.

Anyways, good use of mirc commands, events, and dynamic variables.

 Respond  
Korvin   -  Feb 02, 2009

you guys honestly think this is 7.7 material? its a pretty good first script but its not that useful, its not that innovative..

ON *:JOIN:#: { 
  if ($address($nick,3) != $address($me,3)) {
    if ($($+(%,xnick,$nick,$chan),2)) {
      .msg $chan Welcome back $nick
      unset $+(%xnick,$nick,$chan)
      halt
    }
    msg $chan Welcome $nick 
  }
}
ON *:PART:#: set -u120 $+(%xnick,$nick,$chan) 1

you forgot the $chan, so if someone left one channel you were on and joined another it would say welcome back regardless.

 Respond  
zacx   -  Feb 01, 2009

thanks man.. i like this script.. simple & nice..

 Respond  
pwnisher3   -  May 22, 2008

very nice script with a lil modding for the room and it is perfect

 Respond  
sueco   -  Apr 30, 2008

Nice one! :D

 Respond  
L   -  Apr 27, 2008

thanks

 Respond  
Jonesy44   -  Apr 26, 2008

-> Snippets -> Submit Snippet (on the right, in a box)

 Respond  
L   -  Apr 26, 2008

Just HOw do u make a snippet. I mean i no how but weres is the submit snippet button!?!

 Respond  
L   -  Apr 26, 2008

Not bad dude. Its ok. Its good use when chanserv is down! LOL

 Respond  
HarryCanyon   -  Apr 24, 2008

my first snippet

 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.