mIRC Homepage
Posted By: necrofile on TEXT/JOIN events for specific nicks - 06/01/05 12:55 AM
I am making a bot for my channel and I want it say and do things when certain people join or when that specific person says something, but I can not for the life of me figure out how or find how on google or searching the forums.
Posted By: JoeDaddy Re: on TEXT/JOIN events for specific nicks - 06/01/05 12:59 AM
Code:
on !*:JOIN:#:if ($nick == ISuck) msg # Hey $nick .. do you swallow too??

Code:
on *:TEXT:*help*me*:#:if ($nick == jennifer) describe # helps $nick take her clothes off :p
Posted By: necrofile Re: on TEXT/JOIN events for specific nicks - 06/01/05 01:07 AM
It doesn't seem to work. I left out the forward slash before msg, as you did, so could that be the problem?

/edit/
Works now. i just took the ! out
Posted By: gemeau50 Re: on TEXT/JOIN events for specific nicks - 06/01/05 02:35 AM
The only purpose of " ! " is to impede oneself to trigger an event. Unless you want to trigger the event yourself, the " ! " as no bearing.
Posted By: Scriptor Re: on TEXT/JOIN events for specific nicks - 06/01/05 10:13 AM
on *:JOIN:#: {

if ($nick == Gemini-Ty) { msg # [GT] Heya look my favorite person has joined us ^.^! }
elseif ($nick == Skaiba) { msg # [Kuriboh] Woot my brother has joined the chat! ^.^ }
elseif ($nick == Saydin) { msg # hey look it's Seto-K }

}

This is what I had just replace it with the nick and enter message and it works. :tongue:
Better still...
Code:
alias add { .writeini join.ini Join $1 $2- | .echo -a ** Added $1 ( $+ $2- $+ ) to auto greet list. }
;/add Joe Hello Joe good to see you...... 
alias rem { .remini join.ini Join $1 | .echo -a ** Removed $1 from auto greet list. }
 ;/rem Joe

on !*:JOIN:#: {
  ;Checks whether $nick has an auto-greet profile.
  if ($readini(join.ini,Join,$nick)) { 
   ;$nick does have an auto-greet profile.
    msg $chan $readini(join.ini,Join,$nick) 
    halt 
  }
}
© mIRC Discussion Forums