Eh.. This is my first time using Hawkee.. so I posted a simple one.
I hope that you will like it :)
UPDATE:
Added an alias; /ukill
on *:TEXT:+kill*:#: {
if (!$var(%flood)) {
if ( $2 == $null ) { msg $chan You have not stated any name. The name/whatever must be stated after "+Kill" } { halt }
set %stamp 11«ø»14
inc %killcount
msg $chan %stamp Searching for $2- $+ ...
msg $chan %stamp $2- has been found!!!
var %tm = timer 1 3 describe $chan
var %shoot = $rand(1,10)
if (%shoot == 1) %tm takes out a sniper rifle and shoots it at $2- $+ .
if (%shoot == 2) %tm takes out a pistol, points it at $2- and triggers it TRRRAANGGG!
if (%shoot == 3) %tm drops $2- over a cliff.
if (%shoot == 4) %tm throws $2- into a canyon.
if (%shoot == 5) %tm tickles $2- to death.
if (%shoot == 6) %tm makes $2- eat a toxic sandwich.
if (%shoot == 7) %tm pushes $2- into a box with spiky objects.
if (%shoot == 8) %tm sneaks in behind $2- and inserts a sword.
if (%shoot == 9) %tm gives $2- a grenade and runs.
if (%shoot == 10) %tm makes $2- eat an toxic frog.
.timer 1 4 msg $chan %stamp " $+ $2- $+ " has been successfully killed. And 25 Dollars have been taken from $nick $+ . [Murders: %killcount $+ ]
set -u4 %flood 1.
}
}
------------------------- Alias Version ----------------
alias ukill {
if ( $1 == $null ) { echo You have not stated any name. The name/whatever must be stated after "/uKill" } { halt }
set %stamp 11«ø»14
inc %killcount
msg $active %stamp Searching for $1- $+ ...
msg $active %stamp $1- has been found!!!
var %tm = timer 1 3 describe $active
var %shoot = $rand(1,10)
if (%shoot == 1) %tm takes out a sniper rifle and shoots it at $1- $+ .
if (%shoot == 2) %tm takes out a pistol, points it at $1- and triggers it TRRRAANGGG!
if (%shoot == 3) %tm drops $1- over a cliff.
if (%shoot == 4) %tm throws $1- into a canyon.
if (%shoot == 5) %tm tickles $1- to death.
if (%shoot == 6) %tm makes $1- eat a toxic sandwich.
if (%shoot == 7) %tm pushes $1- into a box with spiky objects.
if (%shoot == 8) %tm sneaks in behind $1- and inserts a sword.
if (%shoot == 9) %tm gives $1- a grenade and runs.
if (%shoot == 10) %tm makes $1- eat an toxic frog.
.timer 1 4 msg $active %stamp " $+ $1- $+ " has been successfully killed. [Murders: %killcount $+ ]
}
Jethro, I made two version because some users might want to use it by themselves... I mean if it was made as one it would trigger when someone types +kill... and as you can see.. the last line is different from the each other ".timer 1 4 msg $chan %stamp " $+ $2- $+ " has been successfully killed. And 25 Dollars have been taken from $nick $+ . [Murders: %killcount $+ ]"
You don't have to have two versions for text and alias. You can have the alias to be called from the text event:
on *:TEXT:+kill*:#: $ukill($2-)
alias ukill {
if (!%flood) {
if ($1 == $null) {
msg $chan You have not stated any name. $&
The name/whatever must be stated after $qt($iif(!$isid,/ukill,+Kill))
}
elseif ($1 !ison $chan) {
msg $chan The name $qt($1) has not been found on the channel.
}
else {
var %stamp = 11«ø»14
inc %killcount
msg $chan %stamp Searching for $1- $+ ...
msg $chan %stamp $1- has been found!!!
var %tm = .timer 1 3 describe $chan, %shoot = $rand(1,10)
if (%shoot == 1) %tm takes out a sniper rifle and shoots it at $1-.
if (%shoot == 2) %tm takes out a pistol, points it at $1- and triggers it TRRRAANGGG!
if (%shoot == 3) %tm drops $1- over a cliff.
if (%shoot == 4) %tm throws $1- into a canyon.
if (%shoot == 5) %tm tickles $1- to death.
if (%shoot == 6) %tm makes $1- eat a toxic sandwich.
if (%shoot == 7) %tm pushes $1- into a box with spiky objects.
if (%shoot == 8) %tm sneaks in behind $1- and inserts a sword.
if (%shoot == 9) %tm gives $1- a grenade and runs.
if (%shoot == 10) %tm makes $1- eat an toxic frog.
.timer 1 4 msg $chan %stamp $qt($1-) has been successfully killed. $&
And 25 Dollars have been taken from $nick $+ . [Murders: %killcount $+ ]
set -u4 %flood 1.
}
}
}
I've taken the liberty of adding an additional check for whether the nickname you want to kill has been on the channel. It's pointless to kill "imaginary" names. I have corrected some minor redundancies.
Yes, napa182. 8-ball related scripts are often presented by people who've just started MSL. They're very common and easy to learn from.
The
else { halt
}
is unneccesairy, because if the if does not match, it doesn't do anything anyway. So no need for it. Also, next time put the .timer 1 3 msg $chan in a variable. Like
var %m = .timer 1 3 msg $chan
%m this message is send to $chan after 3 seconds
And %EstampYou is not a valid variable, i'd assume. I think you want %Estamp $+ You. However, i don't see %estamp defined in this snippet, so you'd better just leave out the %Estamp.