Join hug

By Dark| on Nov 29, 2010

a theme for my channel
hug kiss slap etc
For fun

on *:Join:#: {
  describe $chan Hugs $Nick
}

on *:Join:#: {
  describe $chan kisses $Nick
}

on *:Join:#: {
  describe $chan kills  $Nick
}

on *:Join:#: {
  describe $chan slaps  $Nick
}

Comments

Sign in to comment.
Phil_FW   -  Dec 03, 2010

i like $gettok more :P lol its easier to use and understand, especially when you're just using 4 different actions (: I myself am learning MSL still and trust me, $gettok is soo much easier :P happy scripting!

 Respond  
Bielie   -  Dec 03, 2010

$replace(String,Substring,Newstring)

like in text: if Nickname has a 1 in his name replace the 1 with one. Be aware you can make more then one replacement just add more ;)

like in script

$replace($nick,1,one,2,two,3,three,4,four)
 Respond  
Dark|   -  Nov 30, 2010

Well,
The auto greet makes the users feel happy for some odd reason,
id like to make a bot that will talk back to you
like fords pandora, but i dont really like it

 Respond  
Jethro   -  Nov 30, 2010

Yes, you can have them both scripted side by side. It really depends on what you try to achieve though.

 Respond  
Dark|   -  Nov 29, 2010

Can you do $gettok and $replace with any script?

 Respond  
Jethro   -  Nov 29, 2010

Other than the $gettok method, you can do it with the $replace one:

on !*:join:#:describe # $+($replace($r(1,4),1,hug,2,kisse,3,kill,4,slap),s) $nick
 Respond  
Dark|   -  Nov 29, 2010

Ohh

 Respond  
blackvenomm666   -  Nov 29, 2010

it basically means the way you did it will only use one of the on join events. the very first one. the way napa did it it picks a random one to do and the way spoofing did it it does all of them

 Respond  
Dark|   -  Nov 29, 2010

So that means in english..

 Respond  
napa182   -  Nov 29, 2010

from the help file:

$gettok(text,N,C)
Returns the Nth token in text.
$gettok(a.b.c.d.e,3,46) returns c
$gettok(a.b.c.d.e,9,46) returns $null
You can also specify a range of tokens:
$gettok(a.b.c.d.e,2-,46) returns 2nd token onwards b.c.d.e
$gettok(a.b.c.d.e,2-4,46) returns tokens 2 through 4 b.c.d
You can specify a negative value for N.

also the way you have then it will only say the first one
the way i did it it will pick a random one to say, and the way
Spoofing did it will say them all in 4 action lines

 Respond  
Dark|   -  Nov 29, 2010

Spoofing everytime i see you or your comments i cant stop looking at that dancing cow..
its just DANCING

 Respond  
Dark|   -  Nov 29, 2010

well she wanted to know it simple
this is one thing she did
basic but - oh well xD
but thanks napa i dont know what gettok does {rhats why i didnt edit it for her}

 Respond  
Spoofing   -  Nov 29, 2010
on !*:JOIN:#: {
  tokenize 32 Hugs kisses kills slaps
  describe # $* $nick
}
 Respond  
napa182   -  Nov 29, 2010

whynot just

on !*:Join:#:describe # $gettok(Hugs.kisses.kills.slaps,$r(1,4),46) $Nick
 Respond  
Dark|   -  Nov 29, 2010

Should have said
This Was made by someone who is now learning msl in my channel
She says dont dis xD

 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.