Smiley Script V2!

By ReFuSeR on Mar 04, 2009

Post it in your remotes... Type /smile (channel). The channel you type it in gets a big smile from you. Enjoy!

P.S. I did not make this smile. I just put it into a script.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I added a new alias script. Use /smile instead of !smile. If you like to have the old script... Here it is:

on *:INPUT:*: { 
  if (!smile == $1) {
    if (!$2) {
      echo 3 7Put a channel to send the smile to. 3Format: 4!smile (chan)
      halt
    }
    if ($me !ison $2) {
      echo 3 4You are not on that channel!
      halt
    }  
    msg $2 14> 0,0................1,1..............
    msg $2 14> 0,0...........1,1....8,8..............1,1....
    msg $2 14> 0,0.........1,1..8,8......................1,1..
    msg $2 14> 0,0.......1,1..8,8..........................1,1..
    msg $2 14> 0,0.....1,1..8,8..1,1......8,8..........1,1......8,8......1,1..
    msg $2 14> 0,0.....1,1....0,0....1,1....8,8......1,1..0,0....1,1....8,8....1,1..
    msg $2 14> 0,0...1,1..8,8..1,1..0,0....1,1....8,8......1,1..0,0....1,1....8,8......1,1..
    msg $2 14> 0,0...1,1..8,8..1,1..0,0......1,1..8,8......1,1..0,0......1,1..8,8......1,1..
    msg $2 14> 0,0...1,1..8,8..1,1..........8,8......1,1..........8,8......1,1..
    msg $2 14> 0,0...1,1..8,8..................................1,1..
    msg $2 14> 0,0...1,1..8,8..1,1..........................8,8......1,1..
    msg $2 14> 0,0...1,1..8,8....1,1..6,6....................1,1..8,8......1,1..
    msg $2 14> 0,0...1,1..8,8....1,1..6,6....................1,1..8,8......1,1..
    msg $2 14> 0,0.....1,1..8,8....1,1..6,6......13,13......6,6......1,1..8,8....1,1..
    msg $2 14> 0,0.....1,1..8,8....1,1..6,6....13,13............1,1..8,8......1,1..
    msg $2 0,0.......1,1..8,8....1,1..13,13............1,1..8,8......1,1..
    msg $2 0,0.........1,1..8,8....1,1............8,8......1,1..
    msg $2 0,0...........1,1....8,8..............1,1....
    msg $2 14> 0,0...............1,1..............  
  }
}
alias smile {
  if (!$1) {
    echo 3 7Put a channel to send the smile to. 3Format: 4!smile (chan)
    halt
  }
  if ($me !ison $1) {
    echo 3 7You are not on that channel!
    halt
  }
  echo 3 3Smile has been sent.  
  msg $1 14> 0,0................1,1..............
  msg $1 14> 0,0...........1,1....8,8..............1,1....
  msg $1 14> 0,0.........1,1..8,8......................1,1..
  msg $1 14> 0,0.......1,1..8,8..........................1,1..
  msg $1 14> 0,0.....1,1..8,8..1,1......8,8..........1,1......8,8......1,1..
  msg $1 14> 0,0.....1,1....0,0....1,1....8,8......1,1..0,0....1,1....8,8....1,1..
  msg $1 14> 0,0...1,1..8,8..1,1..0,0....1,1....8,8......1,1..0,0....1,1....8,8......1,1..
  msg $1 14> 0,0...1,1..8,8..1,1..0,0......1,1..8,8......1,1..0,0......1,1..8,8......1,1..
  msg $1 14> 0,0...1,1..8,8..1,1..........8,8......1,1..........8,8......1,1..
  msg $1 14> 0,0...1,1..8,8..................................1,1..
  msg $1 14> 0,0...1,1..8,8..1,1..........................8,8......1,1..
  msg $1 14> 0,0...1,1..8,8....1,1..6,6....................1,1..8,8......1,1..
  msg $1 14> 0,0...1,1..8,8....1,1..6,6....................1,1..8,8......1,1..
  msg $1 14> 0,0.....1,1..8,8....1,1..6,6......13,13......6,6......1,1..8,8....1,1..
  msg $1 14> 0,0.....1,1..8,8....1,1..6,6....13,13............1,1..8,8......1,1..
  msg $1 0,0.......1,1..8,8....1,1..13,13............1,1..8,8......1,1..
  msg $1 0,0.........1,1..8,8....1,1............8,8......1,1..
  msg $1 0,0...........1,1....8,8..............1,1....
  msg $1 14> 0,0...............1,1..............  
}

Comments

Sign in to comment.
SirJaxx   -  Apr 16, 2009

Please fix the last 4 lines, well... I guess the last one is ok.
Don't you guys actually test these Snippets before posting them?
Also I run mine on a Black BG, and it looks Funky with only the left side of the script in White.

 Respond  
ReFuSeR   -  Mar 09, 2009

Yea... I had no idea how easy it was... I added a option for the alias in my script. Thanks... Also, I will be releasing a pretty cool Dialog in a while.

 Respond  
Aucun50   -  Mar 06, 2009

Np it's all good try the forums for a tutorial on aliases or maybe kirby will post one for yea.

 Respond  
ReFuSeR   -  Mar 06, 2009

I am sorry... I get kinda heated when it comes to code. I apologize

EDIT:
@ Kirby: You have a point... I do not know how to use Aliases. :(

 Respond  
Jethro   -  Mar 05, 2009

We can't expect people to be positive about what we've posted code-wise, but we can certainly be learning from what they've pointed out to improve ourselves. Constructive criticism is what motivates us to do better in coding.

 Respond  
Kirby   -  Mar 05, 2009

I actually commented something about the code, but since, later, I felt what I previously said was unnecessary so I replaced it with something not useful.
I'm sorry.

As for the on input, Aucun50 is right.

@ Aucun50 If it works fine with it what is the point of telling me that?

@ Aucun50 That only happens if you do not put a channel to send the smile to.Even though the script works, there are some things that are not necessary as he pointed out. If there is no channel supplied, how about you add some error checks?

Edit: I see that you have fixed it.

But instead of $2 as a channel and the whole !smile #chan command, why don't you simply use an alias and message the $active? By far, it would be easier.

In my opinion, your code would make sense if it's an on text event where you have to supply a channel name, but an on input is unnecessary for personal usages.

Also: I said what I said before because I saw the same exact smiley ascii code on Hawkee a few weeks ago. If you don't like what I said, you are welcome to delete it whenever you wish, since this is your own snippet.

 Respond  
Aucun50   -  Mar 05, 2009

"@ Aucun50 If it works fine with it what is the point of telling me that?"
I'm telling you because INPUT means ONLY YOU so no need for the ($nick == $me), it's called commenting if you don't like it don't post

 Respond  
ReFuSeR   -  Mar 05, 2009

@ Aucun50 If it works fine with it what is the point of telling me that?

@ Aucun50 That only happens if you do not put a channel to send the smile to.

@ Kirby... Leave if you have nothing good to say.

EDIT:
I fixed that little problem... It should be flawless now.

I also added some extras... If your not on the channel it will send a error message

 Respond  
Kirby   -  Mar 04, 2009

Ah another smiley script. :\

 Respond  
Aucun50   -  Mar 04, 2009

I don't get this "if (!smile == $1) && ($nick == $me) {" do you even know what input means? Means that ONLY you can use it so no need for "&& ($nick == $me)".

Also:
14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel

14> No such nick/channel
-

 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.