on *:text:!slap*:#yourchan: {
var %randval = $rand(1,5)
if (%randval == 1) describe $chan slap 1
elseif (%randval == 2) describe $chan slap 2
elseif (%randval == 3) describe $chan slap 3
elseif (%randval == 4) describe $chan slap 4
elseif (%randval == 5) describe $chan slap 5
}

Replace #yourchan with your channel or just use #
No need to use text files on this one, local variables work just as good, to add more slaps increase $rand(1,5) by one ex. $rand(1,6) and add another elseif (%randval == 6) describe $chan slap here

[Edit: Add to use a nickname in the slap use $2 if you want !slap to slap the person after the !slap command or remove the * in !slap and use $nick

Last edited by SS217; 18/02/04 06:59 AM.