I made this script quite a while ago.. Its using quotes from an online maffia RPG when you kill someone x)
Simply put it in the remotes of your bot :)
Triggers are
!kill
!stats
!killhelp
Probably it can be made a whole lot shorter, but i suck at combining things in 1 line x)
Screenshot:
Script available in Dutch aswell..
on 1:text:!kill *:#: {
if (%killing == ON) {
notice $nick Please wait a while to use this command again.
halt
}
if (%killer == $nick) {
notice $nick Please wait a while to use this command again.
halt
}
if (memento isin $chan) {
notice $nick Please wait a while to use this command again.
halt
}
if ($me isin $2) {
msg $chan You cant kill $2- $+ .
halt
}
if ($nick isin $2) {
msg $chan You cant kill yourself :/
halt
}
if ($2- !ison $chan) {
msg $chan $2- aint here :S
halt
}
set %killer $nick
set %killing ON
set %attempt $rand(1,5)
set %backfire $rand(1,9)
inc %killtry $+ $nick
inc %killedtryx $+ $2
if (%attempt == 1) || (%attempt == 2) || (%attempt == 3) set %murder $2 died from the wounds you have inflicted. He's swimming with the fishes now.
if (%attempt == 4) set %murder You missed $2 completely.
if (%attempt == 5) set %murder $2 suffered but is still alive.
if (%backfire == 1) || (%backfire == 2) set %bf You couldn't contain your enemy's backfire. You died from the wounds he inflicted.
if (%backfire == 3) || (%backfire == 4) || (%backfire == 5) set %bf Your enemy tried to strike back, but failed completely.
if (%backfire == 6) || (%backfire == 7) set %bf Your enemy tried to strike back, his bullets found their way through your body, but you survived.
if (%backfire == 8) || (%backfire == 9) set %bf Your enemy tried to strike back, but totaly missed you.
if (%attempt == 1) inc %points $+ $nick
if (%attempt == 2) inc %points $+ $nick
if (%attempt == 3) inc %points $+ $nick
if (%attempt == 1) inc %killsuc $+ $nick
if (%attempt == 2) inc %killsuc $+ $nick
if (%attempt == 3) inc %killsuc $+ $nick
if (%attempt == 1) inc %killsucx $+ $2
if (%attempt == 2) inc %killsucx $+ $2
if (%attempt == 3) inc %killsucx $+ $2
if (%attempt == 4) inc %missed $+ $nick
if (%backfire == 1) inc %bfkillx $+ $2
if (%backfire == 1) inc %bfkill $+ $nick
if (%backfire == 2) inc %bfkillx $+ $2
if (%backfire == 2) inc %bfkill $+ $nick
if (%backfire == 1) dec %points $+ $nick
if (%backfire == 1) inc %points $+ $2
if (%backfire == 2) dec %points $+ $nick
if (%backfire == 2) inc %points $+ $2
msg $chan %murder
timer 1 1 msg $chan %bf
timer 1 11 unset %kill
timer 1 30 unset %killer
timer 1 30 unset %killing
}
on *:TEXT:!stats *:#: {
if ($nick == $2) notice $nick Stats for $nick $+ : Attempts %killtry [ $+ [ $nick ] ] . Succesfull kills: %killsuc [ $+ [ $nick ] ] . Totaly missed: %missed [ $+ [ $nick ] ] . Died in Backfire: %bfkill [ $+ [ $nick ] ] . Points: %points [ $+ [ $nick ] ] . Chance to kill: $round($calc( %killsuc [ $+ [ $nick ] ] / %killtry [ $+ [ $nick ] ] * 100 ),2) $+ %
if ($nick == $2) notice $nick Stats for $2 $+ : Attempts on life %killedtryx [ $+ [ $2 ] ] . Died: %killsucx [ $+ [ $2 ] ] times. Backfire kills: %bfkillx [ $+ [ $2 ] ] .
else notice $nick You cant view the stats of someone else.
}
on 1:text:!killhelp:#: {
notice $nick !kill <nick> To Kill Some1 (A)
notice $nick !stats <YOURnick> To See Your Stats
notice $nick 1 Point will be given when you kill someone. 1 will be taked if you die in BF, and transfered to your target. }
Something else.. :$
if (%bf == 1) inc %bfkillx $+ $2
if (%bf == 1) inc %bfkill $+ $nick
if (%bf == 1) dec %points $+ $nick
if (%bf == 1) inc %points $+ $2
Shouldnt that be:
if (%bf == 1) || (%bf == 2) inc %bfkillx $+ $2
if (%bf == 1) || (%bf == 2) inc %bfkill $+ $nick
if (%bf == 1) || (%bf == 2) dec %points $+ $nick
if (%bf == 1) || (%bf == 2) inc %points $+ $2
(A)
Furthermore.. great script :D:D:D loving it :^
well, the IF is a logical statement .. if it\'s true .. it does what\'s in the brackets .. so if 5 statements are true, it will carry themm all out.
for example;
var %x = 10
if (%x <= 10) {
//true
;;halt
}
if (%x < 10) {
//true
;;halt
}
if (%x > 5 && %x < 10) {
//true
;;halt
}
a halt in there will just stop it after 1 ..
Im not quite sure hat LucSatise is telling me.. :$
when i remove the halts i get this..
(23:04:14) <~Yilena> !kill [X-Bot]
(23:04:15) <&[X-Bot]> You cant kill [X-Bot].
(23:04:15) <&[X-Bot]> [X-Bot] suffered but is still alive.
(23:04:16) <&[X-Bot]> Your enemy tried to strike back, his bullets found their way through your body, but you survived.
(23:04:17) <&[X-Bot]> Stats for Yilena: Attempts 4 . Succesfull kills: 2 . Totaly missed: . Died in Backfire: . Points: 2 . Chance to kill: 50%
(23:04:18) <&[X-Bot]> Stats for [X-Bot]: Attempts on life 1 . Died: times. Backfire kills: .
instead of just
(23:04:14) <~Yilena> !kill [X-Bot]
(23:04:15) <&[X-Bot]> You cant kill [X-Bot].