i was bored so i made a slap script
put your name in where it says "your name here"
and your bots name where it says "bots name here"
type !slap
on *:TEXT:!slap*:#: {
if ($2 == "bots name here") {
msg $chan but i dun wanna slap myself
}
elseif ($2 == "your name here") {
msg $chan but i dun wanna slap meh
}
elseif ($2 !== "your name here") || ($2 !== "bots name here") {
var %item = $rand(1,46)
if (%item == 1) .timer 1 2 describe $chan leaves the mark of (PWNED) on $2- $+ 's cheek!
if (%item == 2) .timer 1 2 describe $chan slaps $2- in da nootz with a catus!
if (%item == 3) .timer 1 2 describe $chan slaps $2- across the channel
if (%item == 4) .timer 1 2 describe $chan slaps $2- with a large trout
if (%item == 5) .timer 1 2 describe $chan slaps $2- with a brick
if (%item == 6) .timer 1 2 describe $chan rips out $2- $+ 's intestins and slaps him/her with them
if (%item == 7) .timer 1 2 describe $chan enables backdoor feature for mircryption and steals all $2- $+ 's passwords onto my machine.
if (%item == 8) .timer 1 2 describe $chan slaps $2- into next year
if (%item == 9) .timer 1 2 describe $chan slaps $2- with an educational video about science and astro physics!
if (%item == 10) .timer 1 2 describe $chan pimp slaps $2-
if (%item == 11) .timer 1 2 describe $chan slaps $2- with a freezer
if (%item == 12) .timer 1 2 describe $chan slaps $2- with a telephone pole!
if (%item == 13) .timer 1 2 describe $chan slaps $2- around a bit with a large Cod
if (%item == 14) .timer 1 2 describe $chan slaps $2- with a alarm clock
if (%item == 15) .timer 1 2 describe $chan slaps $2- with a very large banana Banana
if (%item == 16) .timer 1 2 describe $chan throws a BIG BRICK at $2-
if (%item == 17) .timer 1 2 describe $chan slaps $2- with his very own hand
if (%item == 18) .timer 1 2 describe $chan smacks $2- in the eye with a large HOT!! sasuage
if (%item == 19) .timer 1 2 describe $chan throws a keyboard at $2-
if (%item == 20) .timer 1 2 describe $chan puts a bomb in $2- $+ 's pocket and waits for the bomb & $2- to go BANG bye bye $2- .....3.....2.....1.....BANG
if (%item == 21) .timer 1 2 describe $chan hugs $2-
if (%item == 22) .timer 1 2 describe $chan discovers $2- $+ 's picture at uglypeople.com
if (%item == 23) .timer 1 2 describe $chan smacks $2- with a pc screen
if (%item == 24) .timer 1 2 describe $chan slaps $2 $3 around the head with a big dummy!!
if (%item == 25) .timer 1 2 describe $chan sneezes in $2- $+ 's face
if (%item == 26) .timer 1 2 describe $chan gets his gun out and points it at $2-
if (%item == 27) .timer 1 2 describe $chan follows $2- into a dark avenue. Hey test my crowbar!
if (%item == 28) .timer 1 2 describe $chan shakes hands with $2-
if (%item == 29) .timer 1 2 describe $chan sits down next to $2-
if (%item == 30) .timer 1 2 describe $chan taps $2 $3 on the sholder
if (%item == 31) .timer 1 2 describe $chan snogs $2-
if (%item == 32) .timer 1 2 describe $chan snogs $2- then.....
if (%item == 33) .timer 1 2 describe $chan hits $2- around the head with a frying pan *BONG*!!
if (%item == 34) .timer 1 2 describe $chan sets $2- $+ 's cloths on fire
if (%item == 35) .timer 1 2 describe $chan throws a custard pie @ $2-
if (%item == 36) .timer 1 2 describe $chan throw's a plate of Strawberry Jelly @ $2-
if (%item == 37) .timer 1 2 describe $chan 4,1????? Hi $2- !! ?????
if (%item == 38) .timer 1 2 describe $chan gives $2- a lip ripping, tongue snatching, suck the eyeballs right out of the socket, hot flaming, breath-taking, spine tingling, make you weak at the knees, better call 911, to die for KISS!!!!!!!!!
if (%item == 39) describe $chan slaps $2- around a bit with a large trout
if (%item == 40) describe $chan slaps $2- around a bit with a large pig
if (%item == 41) describe $chan slaps $2- around a bit with a large horse
if (%item == 42) describe $chan slaps $2- around a bit with a large cat
if (%item == 43) describe $chan slaps $2- around a bit with a Big Mac
if (%item == 44) describe $chan slaps $2- around a bit with a large dog
if (%item == 45) describe $chan slaps $2- around a bit with a computer
if (%item == 46) describe $chan slaps $2- around a bit with a stolen car
}
}
Killerx, you're either misunderstanding or ill-informed of the event prefixes.
The @ by the text event means the client running the code is opped, not for the ops. For the text event to be triggered by the ops, you need to use
$nick isop $chan
or
$nick(#,$nick,o)
The ! by the text event means the client running the code won't be triggered by itself. For text event, the ! prefix is redundant, because you can never trigger you own text.
You can also use mirc's user list to add levels to your events.
Meh. to add script either on mIRC write
/write (file name) then the line
if you want someone else to be able to add it
ON !:text:!addslap:#:{
if ($nick isreg $chan) { msg # sorry only Op'ed status can add slaps. }
if ($nick isop $chan) {
/write (file name) $2-
msg # $nick your slap message has been added
}
}
is personally what I use. Because this makes it so that if a non op'ed person tries to add one it alerts them that they can't. and doesn't add it. And only allows Op'ed people add them ;). Quiet a fun script.
and you don't necessarily need the message, but it is to let them know. (you can also switch # with $nick if you want it to send them a message.)
The Delete I don't know exactly because it would have to be the same phrase I think. Which if you want to remove them just go into the file and erase them.
heres a fast random slap socket
menu nicklist {
.SLAP!!:{
if ($sock(slap)) sockclose slap
sockopen slap www.seventhsanctum.com 80
sockmark slap describe # slaps $$1 around a bit with a
}
}
on *:sockopen:slap: {
sockwrite -nt $sockname GET $+(/generate.php?Genname=,$gettok(magicitem|sftool|gadgetnamer,$r(1,3),124)) HTTP/1.1
sockwrite -nt $sockname Host: $+(www.seventhsanctum.com,$str($crlf,2))
}
on *:sockread:slap: {
var %slap | sockread %slap
if ($regex(%slap,/\t{3}(.+)<BR>/)) { $sock(slap).mark $regml(1) | sockclose slap }
}
Nice WorldDMT, but I was told the goto loops is not very well liked by many people for some reason. I, however, do like to use goto command though. =)
I think three efficient methods are to simply use a text file as mentioned, play command with the -r switch, or socket to get random slap messages from a website. (only if there's one exists)
hi
u can put all slaps into a file and use $read that will send randomly a slap
to avoid calculations of the conditions for anything use the goto loop like that
on *:text:!slap *:#:{
if !%f {
set -u2 %f 1
if ($istok(bots name here|YourNameHere,$2,124)) msg # but i dun wanna slap $2
else {
goto $(1,46)
:1
describe $chan leaves the mark of (PWNED) on $2- $+ 's cheek!
halt
:2
describe $chan slaps $2- in da nootz with a catus!
halt
:3
describe $chan slaps $2- across the channel
halt
:4
.....
....
...
..
:46
describe $chan slaps $2- around a bit with a stolen car
halt
}
}
}
A better approach would be using $istok(), flood trigger control, and $gettok() as such:
on *:text:!slap *:#: {
if (!%f) {
set -u2 %f on
if ($istok(bots name here|YourNameHere,$2,124)) { msg # but i dun wanna slap $2 }
else { describe # $gettok($slapsmsg($2),$r(1,6),124) }
}
}
alias -l slapsmsg {
return leaves the mark of (PWNED) on $1 $+ 's cheek!|slaps $1 in da nootz with a catus!|$&
$+ slaps $1 across the channel|slaps $1 with a large trout|slaps $1 with a brick|$&
$+ rips out $1 $+ 's intestins and slaps him/her with them
}
I only put six messages at random, but you can do it in this fashion to add the rest.