JOhnson Posted October 31, 2010 Report Share Posted October 31, 2010 I found and old msn code for away / return host and I though as I always do have a play with it and you might learn something from it so that is just what I did ... what iv done is iv got it working for my nick (without being a host) but not for anyone else so what the hell am I doing wrong and would one of you Real mIRC Scipters point me in the right direction ... as always thank you for any comments and please remember im a n00b but im a trier (hope I dont make a fool of myself again) raw 822:*:{ if ($nick == $ulist($nick,1)) { msg $comchan($nick,1) Hurry Back $nick Dont Go To Far Away <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' /> } } raw 821:*: { if ($nick == $ulist($nick,1)) { msg $comchan($nick,1) Welcome Back $nick Did You Fetch A Friend Back <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' /> } } Link to comment Share on other sites More sharing options...
Fanfare Posted October 31, 2010 Report Share Posted October 31, 2010 (edited) This should work: raw 822:*:{ if ($ulist(*)) { msg $1 Hurry Back $nick Dont Go To Far Away <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' /> } } raw 821:*: { if ($ulist(*)) { msg $1 Welcome Back $nick Did You Fetch A Friend Back <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' /> } } Edited October 31, 2010 by Fanfare Link to comment Share on other sites More sharing options...
JOhnson Posted October 31, 2010 Author Report Share Posted October 31, 2010 ok Fanfare thank you for your reply ... the code will not work as it is ... raw 822:*:{ if ($ulist(*)) { msg $1 Hurry Back $nick Dont Go To Far Away <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' /> } } raw 821:*: { if ($ulist(*)) { msg $1 Welcome Back $nick Did You Fetch A Friend Back <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' /> } } and when I changed the msg $1 to $nick it works but it now whispa the chatter where I would like it to show in the room ... again thank you for your reply Fanfare Link to comment Share on other sites More sharing options...
err0r Posted October 31, 2010 Report Share Posted October 31, 2010 well it would have to be msg $1 as $1 is the room name in the raw return. no point in using the $ulist there raw 822:*: { msg $1 Hurry Back $nick Dont Go To Far Away <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' /> } raw 821:*: { msg $1 Welcome Back $nick Did You Fetch A Friend Back <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' /> } personally i would add some form of flood protection to it Link to comment Share on other sites More sharing options...
JOhnson Posted November 1, 2010 Author Report Share Posted November 1, 2010 (edited) well it would have to be msg $1 as $1 is the room name in the raw return. no point in using the $ulist there raw 822:*: { msg $1 Hurry Back $nick Dont Go To Far Away <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' /> } raw 821:*: { msg $1 Welcome Back $nick Did You Fetch A Friend Back <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' /> } personally i would add some form of flood protection to it Thank you again to err0r and fanfare I fixed the code to work raw 822:*:{ msg $comchan($nick,1) Hurry Back $nick Dont Go To Far Away <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' /> } raw 821:*: { msg $comchan($nick,1) Welcome Back $nick Did You Fetch A Friend Back <img src='http://www.tg007.net/forum/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' /> } Edited November 1, 2010 by JOhnson Link to comment Share on other sites More sharing options...
Fanfare Posted November 2, 2010 Report Share Posted November 2, 2010 I'd prefer that you use $1 in place of $comchan($nick,1) Link to comment Share on other sites More sharing options...
JOhnson Posted November 2, 2010 Author Report Share Posted November 2, 2010 I'd prefer that you use $1 in place of $comchan($nick,1) if i use $1 it doesnt show in room or whispers if i use $nick it only shows in whispers but if i use $comchan the code works fine and shows it in the room ... again thanks for the reply and i hope iv explained it ok Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now