Hello There

By ChunkieMonkey on Jul 10, 2008

I got bored so instead of making it Msg $chan Hello there $nick I made it in Variables, sets them then unsets after it sends the message o.0 I don't care about this scripts score xD....Load into remotes alt+r

Actually I guess I practices setting and unsetting variables o.0 Kinda new to that

On 1:text:hi*:#:{
  set %a Hi 
  set %b There
  set %c $nick
  set %d $chan
  Msg %d %a %b %c
  unset %a
  unset %b
  unset %c
  unset %d
}

Comments

Sign in to comment.
DaNzO   -  Jul 21, 2008

Juhapuha, Just... no -.-

 Respond  
juhapuha   -  Jul 11, 2008

hey! i know better one: on *:text:hi:#:{ msg $chan hi $+($nick,!) :DD::D:D:S DF }

 Respond  
EL   -  Jul 10, 2008

@FURBY

Introduction
I got bored so instead of making it Msg $chan Hello there $nick I made it in Variables, sets them then unsets after it sends the message o.0 I don\'t care about this scripts score xD....Load into remotes alt+r

Actually I guess I practices setting and unsetting variables o.0 Kinda new to that

And i also agree with you on the vars cause he could have actually made a code that needed them.`-.-´

 Respond  
ChunkieMonkey   -  Jul 10, 2008

Furby, I did it in vars because i was bored and needed practice o.0

 Respond  
F*U*R*B*Y*   -  Jul 10, 2008

why use vars??

on *:TEXT:hi*:#: msg $chan Hi There $nick

easier, cleaner, shorter, neater

 Respond  
napa182   -  Jul 10, 2008

why not just make them local vars instead of global then you wont have to unset

On 1:text:hi*:#:{
  var %a Hi, %b There, %c $nick, %d $chan 
  Msg %d %a %b %c
}
 Respond  
BlueThen   -  Jul 10, 2008

Ah, I didn\'t see that.

 Respond  
guest598594   -  Jul 10, 2008

Well the %d variable holds \"$chan\"

 Respond  
BlueThen   -  Jul 10, 2008

shouldn\'t it be

  Msg $nick %d %a %b %c

and not

  Msg %d %a %b %c
 Respond  
ChunkieMonkey   -  Jul 10, 2008

ok..

 Respond  
guest598594   -  Jul 10, 2008

Yea, same as any other variable

 Respond  
ChunkieMonkey   -  Jul 10, 2008

You can do it all in one line, like
Code:

unset %1 %2 %3 %4

Or you can make then %hi.a %hi.b %hi.c %hi.d and do unset %hi.*

Just a couple tips :)

Could I do the same for set %hi.a ect ect?

 Respond  
ChunkieMonkey   -  Jul 10, 2008

Thanks mountaindew o.0

 Respond  
Eugenio   -  Jul 10, 2008

rofl

 Respond  
guest598594   -  Jul 10, 2008
  unset %a
  unset %b
  unset %c
  unset %d

You can do it all in one line, like

  unset %1 %2 %3 %4

Or you can make then %hi.a %hi.b %hi.c %hi.d and do unset %hi.*

Just a couple tips :)

 Respond  
ChunkieMonkey   -  Jul 10, 2008

o.0 useless >>

 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.