Simple Welcome Message

By Dicaste on Jul 07, 2010

Simple Welcome Message sender :d Nick's lenght is not a problem ...
Image

on ^*:JOIN:#[CHANNEL]:{
  if ( $nick != $me ) {
    if (!%Anti.Flood) {
      inc -u15 %Anti.Flood
      msg $chan $+(4+,$str(-,15),$str(-,$len($chan)),$str(-,$len($nick)),4+)
      msg $chan $chr(124) Welcome to $+(,$rand(2,14),$chan,,$chr(44)) $+(4,$nick,) $chr(124)
      msg $chan $+(4+,$str(-,15),$str(-,$len($chan)),$str(-,$len($nick)),4+)
    }
  }
}

Comments

Sign in to comment.
BiSoN   -  Oct 13, 2012

just like that


on ^*:JOIN:#:{
if ( $nick != $me ) {
if (!%Anti.Flood) {
inc -u15 %Anti.Flood
msg $chan $+(4+,$str(-,15),$str(-,$len($chan)),$str(-,$len($nick)),4+)
msg $chan $chr(124) Welcome to $+(,$rand(2,14),$chan,,$chr(44)) $+(4,$nick,) $chr(124)
msg $chan $+(4+,$str(-,15),$str(-,$len($chan)),$str(-,$len($nick)),4+)
}
}
}

 Respond  
BiSoN   -  Oct 13, 2012

hmm its nice but no need to add [channel]

 Respond  
Memoli   -  Jul 10, 2010

both fail :(

 Respond  
Dicaste   -  Jul 09, 2010

Fail code Jethro :d

alias test {
msg $chan $+(4+,$str(-,2),$str(-,$len($1-)),4+)
msg $chan $chr(124) $+(,$rand(2,14),$1-,) $chr(124)
msg $chan $+(4+,$str(-,2),$str(-,$len($1-)),4+)
}
 Respond  
Jethro   -  Jul 09, 2010

Download, try this:

alias test {
  msg $1 $+(4+,$str(-,$len($2)),4+)
  msg $1 $chr(124) $+(,$r(2,14),$2-,) $chr(124)
  msg $1 $+(4+,$str(-,$len($2)),4+)
}
 Respond  
Dicaste   -  Jul 08, 2010

Write with channel name ;
alias test {
msg $1 $+(4+,$str(-,4),$str(-,$len($1)),$str(-,$len($2)),4+)
msg $1 $chr(124) $+(,$rand(2,14),$2,,$chr(44)) $+(4,$1,) $chr(124)
msg $1 $+(4+,$str(-,4),$str(-,$len($1)),$str(-,$len($2)),4+)
}

or

Write without channel name ;

alias test {
msg $1 $+(4+,$str(-,2),$str(-,$len($2-)),4+)
msg $1 $chr(124) $+(,$rand(2,14),$2-,) $chr(124)
msg $1 $+(4+,$str(-,2),$str(-,$len($2-)),4+)
}

 Respond  
WorldDMT   -  Jul 08, 2010

@download:
first with alias you dont have $nick and $chan you have to do it with event

now if you want use alias you have to replace $chan by $1 and $nick by $2
then /test

 Respond  
Memoli   -  Jul 07, 2010

i made it for alias but i need help :D

alias test {
  msg $chan $+(4+,$str(-,15),$str(-,$len($chan)),$str(-,$len($nick)),4+)
  msg $chan $chr(124) $+(,$rand(2,14),,$chr(44)) $+(4,$1-,) $chr(124)
  msg $chan $+(4+,$str(-,15),$str(-,$len($chan)),$str(-,$len($nick)),4+)
}

20:05 4+------------------4+
20:05 | 6, 4:o |
20:05 4+------------------4+

lol :D help pls

 Respond  
Jethro   -  Jul 07, 2010

:P Actually $rand is more standardized than $r, which is deprecated or obsolete but still works! I supposed Khaled introduced that so people can easily identify what it does. It's the same for isvo and isvoice for example. Perhaps someday Khaled will get rid of the old identifiers and unify all the standard ones. (not until some oldies stop using old versions of mIRC.)

Nevertheless, I like the short ones better...lol

 Respond  
WorldDMT   -  Jul 07, 2010

inc -u15 ??? why 15 sec? it's too much

$rand() can be $r()

 Respond  
Aucun50   -  Jul 07, 2010

You don't need to use the if ($nick != $me) check, simply do on !*:join:#channel:

 Respond  
jefsthampied   -  Jul 07, 2010

lol~ Nice!

 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.