colored smile

By Lenooox on Mar 15, 2010

i tried make an simple colored smiles :$ but when i type a smile i got it duplicated ....

on *:INPUT:*: {
  if $1- == :) { /say 0:80)8) | halt }
  if $1- == :)) { /say 0:8)20) | halt }
  if $1- == :P { /say 0:0P | halt }
  if $1- == :S { /say 0:10S | halt }
  if $1- == :D { /say 0:10D | halt }
}

Comments

Sign in to comment.
Lenooox   -  Mar 15, 2010

aha :) thank you ^^

 Respond  
MaSOuD   -  Mar 15, 2010

If you getting duplicated, then make sure you don't have any other ON INPUT event in your script files. Other things:
You just needed "haltdef" instead of "halt".
And You may write your code like this:

if $1 == :) { say 0:80)8) $iif($2-,$2-) | haltdef }

 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.