mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2014
Posts: 1
P
Mostly harmless
OP Offline
Mostly harmless
P
Joined: Nov 2014
Posts: 1
I need help getting this code to work properly, it doesn't seem to always welcome people. Most of the time it fails. This code is from here
Code:
 on !@*:JOIN:#:{
    if ($mid(#,2) ison $chan) {
    if ($nick == $mid(#,2)) { return }
    set -e $+(%,ajwelcome.,$cid,#) $addtok($($+(%,ajwelcome.,$cid,#),2),$nick,44)
    if (!$timer($+(.ajw.,$cid,#))) { $+(.timer.ajw.,$cid,#) 1 3 ajwelcome # }
  }
}
alias -l ajwelcome {
  if ($($+(%,ajwelcome.,$cid,$1),2)) {
    msg $1 welcome $v1 $+ , to my channel enjoy your nuggets!!.
    unset $+(%,ajwelcome.,$cid,$1)
  }
}

Last edited by ProGamerzFTW; 20/11/14 03:05 PM.
Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Code:
On *:join:#: {
if (!$($+(%,joindelay,$nick),2)) {
.timer 1 2 msg $chan Hi $nick welcome to my channel, enjoy your nuggets
set -u10 $+(%,joindelay,$nick)  1
}
elseif ($($+(%,joindelay,$nick),2)) {
.timer 1 2 msg $chan Welcome Back In My Channel $nick .. Back For More Nuggets??
}
}

This will send a welcome back greet if the user leaves and comes back in 10 seconds. By the way .. you could use a txt file to have it saying random greets. But that's up to you. You can change the seconds by changing the 10 at -u



Last edited by OrFeAsGr; 03/02/15 09:28 PM.

Link Copied to Clipboard