Random Slap

Platform:  mIRC
Published  Sep 24, 2009
Updated  Sep 24, 2009
This is a random slap script that I made, when you type /slap (nick) it slaps the nick with random stuff. :D
Command: /slap nick

Post your suggestions and comments. alias slap {
var %r $r(1,6)
if ( %r == 1 ) { describe $chan slaps $1 around a bit with a large trout. }
if ( %r == 2 ) { describe $chan slaps $1 with a television. }
if ( %r == 3 ) { describe $chan slaps $1 with a fish. }
if ( %r == 4 ) { describe $chan slaps $1 with a pair of sunglasses. }
if ( %r == 5 ) { describe $chan bitch slaps $1 $+ . }
if ( %r == 6 ) { describe $chan slaps $1 with a birthday cake. }
}

Comments

Sign in to comment.
VinX   -  Sep 25, 2009
NNS has already got a lot of good slaps ... lol

 Respond  
Jethro   -  Sep 24, 2009
You can even shorten the script further by placing those slap messages, including the $1 identifier line by line vertically, in a txt file called, say, 'slap.txt' and then play them to the targeted person on the channel.

Code

 
This way a random line from slap.txt will be played upon the trigger of slap alias. Of course, more messages can be added in the future.
 Respond  
LeonardoL   -  Sep 24, 2009
Shorten the script.
 Respond  
Jethro   -  Sep 24, 2009
Only one /describe command is needed to randomize the %randmsg

Code

 
 Respond  
Testor   -  Sep 24, 2009
Changing

Code

 
to

Code

 
Will eliminate a line of the code that'll be un-needed :o.
 Respond  
gooshie   -  Sep 24, 2009
No need for a global set variable here.
Use a local variable to avoid harddrive writes and reads.
ANYWHERE $chan works the short form # will work.
The main reason $chan exist is for doing more elaborate
things like $chan(0) $chan(#).topic etc etc
$r(1,6) is short for $rand(1,6)
This should be in a nicklist popup because of $1




Code

 
 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.