Greet script

By be_unlimited on Aug 30, 2007

greet script , to make a greet when u join

Thanks Unlimi

on *:TEXT:!setgreet*:#: { 
  set %greet [ $+ [ $nick ] ] $2- 
  notice $nick Your greet message has been set to: $2- 
} 

on *:TEXT:!delgreet*:#: { 
  unset %greet [ $+ [ $nick ] ] 
  notice $nick Your greet has been deleted 
} 

on *:JOIN:#: { 
  if (%greet [ $+ [ $nick ] ]) msg $chan [ $+ 4 $nick  $+ ]: %greet [ $+ [ $nick ] ] 
  else notice $nick You dont have a greet type !setgreet -greet- to set one 
} 

Comments

Sign in to comment.
pwnisher3   -  Aug 24, 2008

lmao i was thinking this was a join greet like hello $nick or some shit. and i thought it was messed up because it wasn't doing what i thought it was sopposed to do so i made it to do that a join greet. lol

 Respond  
criminal   -  Mar 08, 2008

very nice :)

But
you should change only one thing:
set %greet [ $+ [ $nick ] ] $2-
it will save the greet on the nick; change it to
set %greet [ $+ [ $address($nick,2) ] ] $2-
and it will save on the nick address :)
grtz ~ Criminal

 Respond  
Scakk   -  Sep 01, 2007

Example:

With his/her script it saves it as %greetnick greet

So when you use

unset %greet [ $+ [ $nick ] ] 

It will only unset the greet assigned to %greetnick

 Respond  
T7Davey   -  Sep 01, 2007

mmk

 Respond  
Scakk   -  Sep 01, 2007
unset %greet [ $+ [ $nick ] ] 

@ T7Davey:
That will only unset the greet asscociated with the $nick in the [].

 Respond  
T7Davey   -  Sep 01, 2007

Wouldn\'t

  unset %greet [ $+ [ $nick ] ] 

Unset all the greets?

 Respond  
Abbas   -  Sep 01, 2007

good :)

 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.