Skip to content
General Chat Talk

Away/return Code

A TG007 community discussion started by JOhnson.

Discussion 7 posts
Page 1 of 1
Open
Topic #14759 · 7 published posts · 1,194 views

:oops: 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 :D (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' /> 
  }
}

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 Oct 31, 2010 7:20 PM by Fanfare

:D 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

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

Edited Oct 31, 2010 9:15 PM by err0r

Get information about ircWx here

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 Nov 1, 2010 8:07 AM by JOhnson

I'd prefer that you use $1 in place of $comchan($nick,1)

I'd prefer that you use $1 in place of $comchan($nick,1)

 

:oops: 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 :D