I do not edit it often, don't blame me if there still are errors
A snippet which allows you to fight other people in RuneScape-Style.
--
Commands:
[ !sgsspec -- !sgs ]
[ !zgsspec -- !zgs ]
[ !specags -- !ags ]
[ !specbgs -- !bgs ]
[ !specdds -- !dds ]
[ !specwhip -- !whip ]
[ !specdbow -- !dbow ]
[ !cbow ] [ !dh ]
[ !tele ] [ !stopdm ]
[ !eat ] [ !dmscore ]
[ !dmcompare ] [ !dmrank ]
( If you want to use a special attack, make sure ' spec ' is in the command. )
--
UPDATE: Thanks to Jonesy44 and Napa182 I managed to change the 200 lines hpbar to a 10 line
hp bar.
UPDATE: There's a flood protection added ( It's a small one but prevents getting flooded )
*** UPDATE: Added a loot system.. You can change the loot any time.
*** NOTE: If you check my other snippets, you'll see there's another dm snippet i've posted already, this one is alot different, way more features and a cooler color combination :)
%%% The looting %%%
First run your mIRC client and type /write loot.txt
After you've done the first step, /run loot.txt
It opens a notepad and enter things* you want... Chicken..Spade.. Funny stuff..
;*~*~*~*~*~*~*~*~*~*~*~**~*~*~*~*~*~*~*~*~*~*~*~*~*
; -------------- Read This First -------------- *~*
; How to get: *~*
; Copy the code ( Block it and press Ctrl+C ) *~*
; Open your mIRC screen and press Alt+R *~*
; File - New (Options in the left above corner) *~*
; Click on Remote. *~*
; And press Ctrl+V in the screen. *~*
; You now have successfully copied this code. *~*
; -------------- Read This First -------------- *~*
;*~*~*~*~*~*~*~*~*~*~*~**~*~*~*~*~*~*~*~*~*~*~*~*~*
on $*:TEXT:/^[!.@]dmrank*/si:#: {
if (!$2) {
if (!%dmscore. [ $+ [ $nick ] ]) { .notice $nick You do not have a score yet. | halt }
if (%dmscore. [ $+ [ $nick ] ] > 29) { .msg $chan $nick $+ 's Rank: Tha Bomb ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $nick ] ] > 19) { .msg $chan $nick $+ 's Rank: HOLY SHIT! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $nick ] ] > 16) { .msg $chan $nick $+ 's Rank: Ludicrous kills! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $nick ] ] > 14) { .msg $chan $nick $+ 's Rank: Wicked Sick! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $nick ] ] > 11) { .msg $chan $nick $+ 's Rank: Unstopable! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $nick ] ] > 9) { .msg $chan $nick $+ 's Rank: Monster Kill! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $nick ] ] > 7) { .msg $chan $nick $+ 's Rank: Killing Spree! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $nick ] ] > 5) { .msg $chan $nick $+ 's Rank: Rampage! ( $+ $v1 $+ ) | Halt }
if (%dmscore. [ $+ [ $nick ] ] > 3) { .msg $chan $nick $+ 's Rank: Dominating! ( $+ $v1 $+ ) | Halt }
if (%dmscore. [ $+ [ $nick ] ] <= 3) { .msg $chan $nick $+ 's Rank: None ( $+ $v1 $+ ) | Halt }
}
else {
if ($3) { .notice $nick Syntax is: !dmrank Nick | halt }
if (!%dmscore. [ $+ [ $2 ] ]) { .notice $nick $2 does not have a score yet. | halt }
if (%dmscore. [ $+ [ $2 ] ] > 29) { .msg $chan $2 $+ 's Rank: Tha Bomb ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $2 ] ] > 19) { .msg $chan $2 $+ 's Rank: HOLY SHIT! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $2 ] ] > 16) { .msg $chan $2 $+ 's Rank: Ludicrous kills! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $2 ] ] > 14) { .msg $chan $2 $+ 's Rank: Wicked Sick! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $2 ] ] > 11) { .msg $chan $2 $+ 's Rank: Unstopable! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $2 ] ] > 9) { .msg $chan $2 $+ 's Rank: Monster Kill! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $2 ] ] > 7) { .msg $chan $2 $+ 's Rank: Killing Spree! ( $+ $v1 $+ ) | halt }
if (%dmscore. [ $+ [ $2 ] ] > 5) { .msg $chan $2 $+ 's Rank: Rampage! ( $+ $v1 $+ ) | Halt }
if (%dmscore. [ $+ [ $2 ] ] > 3) { .msg $chan $2 $+ 's Rank: Dominating! ( $+ $v1 $+ ) | Halt }
if (%dmscore. [ $+ [ $2 ] ] <= 3) { .msg $chan $2 $+ 's Rank: None ( $+ $v1 $+ ) | Halt }
}
}
on $*:TEXT:/^[!.@]dmcompare*/si:#: {
if (!$2) { .notice $nick Syntax is: !dmcompare Nick1 Nick2 | halt }
if (!$3) { .notice $nick Syntax is: !dmcompare Nick1 Nick2 | halt }
if (!%dmscore. [ $+ [ $2 ] ]) { .notice $nick $2 does not have a score yet. | halt }
if (!%dmscore. [ $+ [ $3 ] ]) { .notice $nick $3 does not have a score yet. | halt }
if (%dmscore. [ $+ [ $2 ] ] == %dmscore. [ $+ [ $3 ] ]) { .notice $nick $2 and $3 have the same score: %dmscore. [ $+ [ $2 ] ] | halt }
if (%dmscore. [ $+ [ $2 ] ] > %dmscore. [ $+ [ $3 ] ]) { .notice $nick $2 has $calc($v1 - $v2) more points then $3 $+ . | halt }
if (%dmscore. [ $+ [ $2 ] ] < %dmscore. [ $+ [ $3 ] ]) { .notice $nick $3 has $calc($v2 - $v1) more points then $2 $+ . | halt }
}
on $*:TEXT:/^[!.@]dmscore*/si:#: {
if (!$2) {
if (!%dmscore. [ $+ [ $nick ] ]) { .notice $nick You do not have a score yet. | halt }
if (%dmscore. [ $+ [ $nick ] ] > 29) { .notice $nick You have a score of: $v1 -- Rank: Tha Bomb | halt }
if (%dmscore. [ $+ [ $nick ] ] > 19) { .notice $nick You have a score of: $v1 -- Rank: HOLY SHIT! | halt }
if (%dmscore. [ $+ [ $nick ] ] > 16) { .notice $nick You have a score of: $v1 -- Rank: Ludicrous kills! | halt }
if (%dmscore. [ $+ [ $nick ] ] > 14) { .notice $nick You have a score of: $v1 -- Rank: Wicked Sick! | halt }
if (%dmscore. [ $+ [ $nick ] ] > 11) { .notice $nick You have a score of: $v1 -- Rank: Unstopable! | halt }
if (%dmscore. [ $+ [ $nick ] ] > 9) { .notice $nick You have a score of: $v1 -- Rank: Monster Kill! | halt }
if (%dmscore. [ $+ [ $nick ] ] > 7) { .notice $nick You have a score of: $v1 -- Rank: Killing Spree! | halt }
if (%dmscore. [ $+ [ $nick ] ] > 5) { .notice $nick You have a score of: $v1 -- Rank: Rampage! | Halt }
if (%dmscore. [ $+ [ $nick ] ] > 3) { .notice $nick You have a score of: $v1 -- Rank: Dominating! | Halt }
if (%dmscore. [ $+ [ $nick ] ] <= 3) { .notice $nick You have a score of: $v1 -- Rank: None | Halt }
}
else {
if (!%dmscore. [ $+ [ $2 ] ]) { notice $nick $2 does not have a score yet. | halt }
if (%dmscore. [ $+ [ $2 ] ] > 29) { .notice $nick $2 has a score of: $v1 -- Rank: Tha Bomb | halt }
if (%dmscore. [ $+ [ $2 ] ] > 19) { .notice $nick $2 has a score of: $v1 -- Rank: HOLY SHIT! | halt }
if (%dmscore. [ $+ [ $2 ] ] > 16) { .notice $nick $2 has a score of: $v1 -- Rank: Ludicrous kills! | halt }
if (%dmscore. [ $+ [ $2 ] ] > 14) { .notice $nick $2 has a score of: $v1 -- Rank: Wicked Sick! | halt }
if (%dmscore. [ $+ [ $2 ] ] > 11) { .notice $nick $2 has a score of: $v1 -- Rank: Unstopable! | halt }
if (%dmscore. [ $+ [ $2 ] ] > 9) { .notice $nick $2 has a score of: $v1 -- Rank: Monster Kill! | halt }
if (%dmscore. [ $+ [ $2 ] ] > 7) { .notice $nick $2 has a score of: $v1 -- Rank: Killing Spree! | halt }
if (%dmscore. [ $+ [ $2 ] ] > 5) { .notice $nick $2 has a score of: $v1 -- Rank: Rampage! | Halt }
if (%dmscore. [ $+ [ $2 ] ] > 3) { .notice $nick $2 has a score of: $v1 -- Rank: Dominating! | Halt }
if (%dmscore. [ $+ [ $2 ] ] <= 3) { .notice $nick $2 has a score of: $v1 -- Rank: None | Halt }
}
}
on $*:TEXT:/^[!.@]dmcommands/si:#: {
if (%OiNoFloodPlz. [ $+ [ $address($nick,2) ] ] != 1) {
set -u10 %OiNoFloodPlz. [ $+ [ $address($nick,2) ] ] 1
.msg $nick 04• 1D14m 4[ 5!sgsspec -- !sgs 4]
.msg $nick 04• 1D14m 4[ 5!zgsspec -- !zgs 4]
.msg $nick 04• 1D14m 4[ 5!specags -- !ags 4]
.msg $nick 04• 1D14m 4[ 5!specbgs -- !bgs 4]
.msg $nick 04• 1D14m 4[ 5!specdds -- !dds 4]
.msg $nick 04• 1D14m 4[ 5!specwhip -- !whip 4]
.msg $nick 04• 1D14m 4[ 5!specdbow -- !dbow 4]
.msg $nick 04• 1D14m 4[ 5!cbow 4] [ 5!dh 4]
.msg $nick 04• 1D14m 4[ 5!tele 4] [ 5!stopdm 4]
.msg $nick 04• 1D14m 4[ 5!eat 4] 4[ 5!dmscore 4 4] 4[ 5!dmcompare 4]
}
else { .notice $nick Please wait 10 seconds before you use the command again. | halt }
}
on $*:TEXT:/^[!.@]dm/Si:#: {
if (%HolaPola != ActiveSon) {
if (%Deathmatch.duel2 == active) {
.msg $chan 04• 1D14m 4[ 5Sorry 4][14 A dm is already active between3 %Deathmatch.player1 14and3 %Deathmatch.player2 4]
.msg $chan 04• 1D14m 4[ 14Please wait for it to end. 4]
.halt
}
if (%Deathmatch.duel == active) {
if (%Deathmatch.Player1 == $nick) { notice $nick Playing with yourself ehh $nick $+ ? Your score has been changed.. | dec %dmscore. [ $+ [ $nick ] ] | halt }
set -u70 %HolaPola ActiveSon
set %Deathmatch.player2 $nick
set %Deathmatch.duel2 active
set %Deathmatch.HPplayer1 99
set %Deathmatch.HPplayer2 99
set %Deathmatch.specPLAYER1 0
set %Deathmatch.specPLAYER2 0
set %Deathmatch.foodPLAYER1 0
set %Deathmatch.foodPLAYER2 0
set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[14 The match is set! 4]
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 7vs3 %Deathmatch.player2 4]
}
else {
set %Deathmatch.duel active
set %Deathmatch.player1 $nick
.msg $chan 04• 1D14m 4[3 $nick 14has started a 4DM14! 4]
}
}
else {
.notice $nick Please wait 100 seconds before you use the command again.
.halt
}
}
on $*:TEXT:/^[!.@]eat/si:#: {
if (%Deathmatch.turn == 1) {
if (%Deathmatch.HPplayer1 == 99) {
.notice $nick Sorry $nick $+ , you have 99 hp left.. There is no reason to eat a shark. Please choose another command.
.halt
}
elseif ($nick == %Deathmatch.player1) {
if (%Deathmatch.foodPLAYER1 == 20) { notice $nick You are out of food! please choose another command. | halt }
if (%Deathmatch.foodPLAYER1 < 20) {
.inc %Deathmatch.foodPLAYER1
.set %Deathmatch.turn 2
.inc %Deathmatch.HPplayer1 20
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14eats a shark. 4]
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14now has7 %Deathmatch.HPplayer1 14hp.4 ]
if (%Deathmatch.foodPLAYER1 == 1) { timer 1 0.5 notice $nick you have 19 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 2) { timer 1 0.5 notice $nick you have 18 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 3) { timer 1 0.5 notice $nick you have 17 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 4) { timer 1 0.5 notice $nick you have 16 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 5) { timer 1 0.5 notice $nick you have 15 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 6) { timer 1 0.5 notice $nick you have 14 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 7) { timer 1 0.5 notice $nick you have 13 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 8) { timer 1 0.5 notice $nick you have 12 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 9) { timer 1 0.5 notice $nick you have 11 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 10) { timer 1 0.5 notice $nick you have 10 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 11) { timer 1 0.5 notice $nick you have 9 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 12) { timer 1 0.5 notice $nick you have 8 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 13) { timer 1 0.5 notice $nick you have 7 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 14) { timer 1 0.5 notice $nick you have 6 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 15) { timer 1 0.5 notice $nick you have 5 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 16) { timer 1 0.5 notice $nick you have 4 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 17) { timer 1 0.5 notice $nick you have 3 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 18) { timer 1 0.5 notice $nick you have 2 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 19) { timer 1 0.5 notice $nick you have 1 sharks remaining. }
if (%Deathmatch.foodPLAYER1 == 20) { timer 1 0.5 notice $nick that was your last shark! }
}
}
}
elseif (%Deathmatch.turn == 2) {
if (%Deathmatch.HPplayer2 == 99) {
.notice $nick Sorry $nick $+ , you have 99 hp left.. There is no reason to eat a shark. Please choose another command.
.halt
}
elseif ($nick == %Deathmatch.player2) {
if (%Deathmatch.foodPLAYER2 == 20) { notice $nick You are out of food! Please choose another command. | halt }
if (%Deathmatch.foodPLAYER2 < 20) {
.inc %Deathmatch.foodPLAYER2
.set %Deathmatch.turn 1
.inc %Deathmatch.HPplayer2 20
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14eats a shark. 4]
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14now has7 %Deathmatch.HPplayer2 14hp. 4]
if (%Deathmatch.foodPLAYER2 == 1) { .timer 1 0.5 notice $nick you have 19 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 2) { .timer 1 0.5 notice $nick you have 18 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 3) { .timer 1 0.5 notice $nick you have 17 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 4) { .timer 1 0.5 notice $nick you have 16 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 5) { .timer 1 0.5 notice $nick you have 15 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 6) { .timer 1 0.5 notice $nick you have 14 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 7) { .timer 1 0.5 notice $nick you have 13 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 8) { .timer 1 0.5 notice $nick you have 12 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 9) { .timer 1 0.5 notice $nick you have 11 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 10) { .timer 1 0.5 notice $nick you have 10 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 11) { .timer 1 0.5 notice $nick you have 9 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 12) { .timer 1 0.5 notice $nick you have 8 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 13) { .timer 1 0.5 notice $nick you have 7 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 14) { .timer 1 0.5 notice $nick you have 6 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 15) { .timer 1 0.5 notice $nick you have 5 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 16) { .timer 1 0.5 notice $nick you have 4 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 17) { .timer 1 0.5 notice $nick you have 3 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 18) { .timer 1 0.5 notice $nick you have 2 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 19) { .timer 1 0.5 notice $nick you have 1 sharks remaining. }
if (%Deathmatch.foodPLAYER2 == 20) { .timer 1 0.5 notice $nick that was your last shark! }
}
}
}
}
on $*:TEXT:/^[!.@]ddsspec/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
if (%Deathmatch.specPLAYER1 < 4) {
.set %Deathmatch.hit1 $rand(0,28)
.set %Deathmatch.hit2 $rand(0,28)
.dec %Deathmatch.HPplayer2 %Deathmatch.hit1
.dec %Deathmatch.HPplayer2 %Deathmatch.hit2
.inc %Deathmatch.specPLAYER1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.hit1 14and7 %Deathmatch.hit2 4]
.set %Deathmatch.turn 2
if (%Deathmatch.specPLAYER1 == 1) { .timer 1 0.5 .notice $nick you have 3/4 special attacks remaining. }
if (%Deathmatch.specPLAYER1 == 2) { .timer 1 0.5 .notice $nick you have 2/4 special attacks remaining. }
if (%Deathmatch.specPLAYER1 == 3) { .timer 1 0.5 .notice $nick you have 1/4 special attack remaining. }
if (%Deathmatch.specPLAYER1 == 4) { .timer 1 0.5 .notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer2 > 0) { .hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
elseif (%Deathmatch.specPLAYER1 >= 4) {
.notice $nick You are out of special attacks.
.halt
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
if (%Deathmatch.specPLAYER2 < 4) {
.set %Deathmatch.hit1 $rand(0,28)
.set %Deathmatch.hit2 $rand(0,28)
.inc %Deathmatch.specPLAYER2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.hit1 14and7 %Deathmatch.hit2 4]
.dec %Deathmatch.HPplayer1 %Deathmatch.hit1
.dec %Deathmatch.HPplayer1 %Deathmatch.hit2
.set %Deathmatch.turn 1
if (%Deathmatch.specPLAYER2 == 1) { .timer 1 0.5 .notice $nick you have 3/4 special attacks remaining. }
if (%Deathmatch.specPLAYER2 == 2) { .timer 1 0.5 .notice $nick you have 2/4 special attacks remaining. }
if (%Deathmatch.specPLAYER2 == 3) { .timer 1 0.5 .notice $nick you have 1/4 special attack remaining. }
if (%Deathmatch.specPLAYER2 == 4) { .timer 1 0.5 .notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
elseif (%Deathmatch.specPLAYER2 >= 4) {
.notice $nick You are out of special attacks.
.halt
}
}
}
}
on $*:TEXT:/^[!.@]dds/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
.set %Deathmatch.hit $rand(0,20)
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.hit 4]
.dec %Deathmatch.HPplayer2 %Deathmatch.hit
.set %Deathmatch.turn 2
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
.set %Deathmatch.hit $rand(0,20)
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.hit 4]
.dec %Deathmatch.HPplayer1 %Deathmatch.hit
.set %Deathmatch.turn 1
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
}
}
on $*:TEXT:/^[!.@]dharok/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
if (%Deathmatch.HPplayer1 >= 50) {
.set %Deathmatch.dharokhit $rand(0,45)
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.dharokhit 4]
.dec %Deathmatch.HPplayer2 %Deathmatch.dharokhit
.set %Deathmatch.turn 2
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
.unset %Deathmatch.*
}
}
if (%Deathmatch.HPplayer1 <= 50) {
.set %Deathmatch.dharokunder $rand(0,60)
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.dharokunder 4]
.dec %Deathmatch.HPplayer2 %Deathmatch.dharokunder
.set %Deathmatch.turn 2
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
.unset %Deathmatch.*
}
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
if (%Deathmatch.HPplayer2 >= 50) {
.set %Deathmatch.spelertweedharok $rand(0,45)
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.spelertweedharok 4]
.dec %Deathmatch.HPplayer1 %Deathmatch.spelertweedharok
.set %Deathmatch.turn 1
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
.unset %Deathmatch.*
}
}
if (%Deathmatch.HPplayer2 <= 50) {
.set %Deathmatch.dharokunder2 $rand(0,70)
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.dharokunder2 4]
.dec %Deathmatch.HPplayer1 %Deathmatch.dharokunder2
.set %Deathmatch.turn 1
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
.unset %Deathmatch.*
}
}
}
}
}
on $*:TEXT:/^[!.@]agsspec/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
if (%Deathmatch.specPLAYER1 < 3) {
.set %Deathmatch.armaspechit $rand(0,55)
.dec %Deathmatch.HPplayer2 %Deathmatch.armaspechit
.inc %Deathmatch.specPLAYER1
.inc %Deathmatch.specPLAYER1
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.armaspechit 4]
if (%Deathmatch.specPLAYER1 == 2) { .timer 1 0.5 notice $nick you have 2/4 special attacks remaining! }
if (%Deathmatch.specPLAYER1 == 3) { .timer 1 0.5 notice $nick you have 1/4 special attacks remaining! }
if (%Deathmatch.specPLAYER1 == 4) { .timer 1 0.5 notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer2 > 0) { .hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
elseif (%Deathmatch.specPLAYER1 == 3) {
.notice $nick You have 1/4 special attacks remaining, you need atleast 2 for agsspec!
.halt
}
elseif (%Deathmatch.specPLAYER1 == 4) {
.notice $nick You are out of special attacks!
.halt
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
if (%Deathmatch.specPLAYER2 < 3) {
.set %Deathmatch.speler2armaspechit $rand(0,55)
.dec %Deathmatch.HPplayer1 %Deathmatch.speler2armaspechit
.inc %Deathmatch.specPLAYER2
.inc %Deathmatch.specPLAYER2
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.speler2armaspechit 4]
if (%Deathmatch.specPLAYER2 == 2) { .timer 1 0.5 notice $nick you have 2/4 special attacks remaining! }
if (%Deathmatch.specPLAYER2 == 3) { .timer 1 0.5 notice $nick you have 1/4 special attacks remaining! }
if (%Deathmatch.specPLAYER2 == 4) { .timer 1 0.5 notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
elseif (%Deathmatch.specPLAYER2 == 3) {
.notice $nick You have 1/4 special attacks remaining, you need atleast 2 for agsspec!
.halt
}
elseif (%Deathmatch.specPLAYER2 == 4) {
.notice $nick You are out of special attacks!
.halt
}
}
}
}
on $*:TEXT:/^[!.@]ags/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
.set %Deathmatch.agshit $rand(10,50)
.dec %Deathmatch.HPplayer2 %Deathmatch.agshit
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.agshit 4]
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
.set %Deathmatch.player2agshit $rand(10,50)
.dec %Deathmatch.HPplayer1 %Deathmatch.player2agshit
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.player2agshit 4]
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
}
}
on $*:TEXT:/^[!.@]bgsspec/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
if (%Deathmatch.specPLAYER1 == 0) {
.set %Deathmatch.bandospechit $rand(0,70)
.dec %Deathmatch.HPplayer2 %Deathmatch.bandospechit
.inc %Deathmatch.specPLAYER1
.inc %Deathmatch.specPLAYER1
.inc %Deathmatch.specPLAYER1
.inc %Deathmatch.specPLAYER1
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.bandospechit 4]
if (%Deathmatch.specPLAYER1 == 4) { .timer 1 0.5 notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
if (%Deathmatch.specPLAYER1 == 3) {
.notice $nick You have 1/4 special attacks remaining, you need atleast 4 for bgsspec!
.halt
}
if (%Deathmatch.specPLAYER1 == 2) {
.notice $nick You have 2/4 special attacks remaining, you need atleast 4 for bgsspec!
.halt
}
if (%Deathmatch.specPLAYER1 == 1) {
.notice $nick You have 3/4 special attacks remaining, you need atleast 4 for bgsspec!
.halt
}
if (%Deathmatch.specPLAYER1 == 4) {
.notice $nick You are out of special attacks!
.halt
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
if (%Deathmatch.specPLAYER2 = 0) {
.set %Deathmatch.speler2bandospechit $rand(0,70)
.dec %Deathmatch.HPplayer1 %Deathmatch.speler2bandospechit
.inc %Deathmatch.specPLAYER2 4
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.speler2bandospechit 4]
if (%Deathmatch.specPLAYER2 == 2) { timer 1 0.5 notice $nick you have 2/4 special attacks remaining! }
if (%Deathmatch.specPLAYER2 == 3) { timer 1 0.5 notice $nick you have 1/4 special attacks remaining! }
if (%Deathmatch.specPLAYER2 == 4) { timer 1 0.5 notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
if (%Deathmatch.specPLAYER1 == 3) {
.notice $nick You have 1/4 special attacks remaining, you need atleast 4 for bgsspec!
.halt
}
if (%Deathmatch.specPLAYER1 == 2) {
.notice $nick You have 2/4 special attacks remaining, you need atleast 4 for bgsspec!
.halt
}
if (%Deathmatch.specPLAYER1 == 1) {
.notice $nick You have 3/4 special attacks remaining, you need atleast 4 for bgsspec!
.halt
}
if (%Deathmatch.specPLAYER1 == 4) {
.notice $nick You are out of special attacks!
.halt
}
}
}
}
on $*:TEXT:/^[!.@]bgs/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
.set %Deathmatch.bgshit $rand(0,50)
.dec %Deathmatch.HPplayer2 %Deathmatch.bgshit
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.bgshit 4]
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
.set %Deathmatch.player2agshit $rand(0,50)
.dec %Deathmatch.HPplayer1 %Deathmatch.player2agshit
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.player2agshit 4]
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
}
}
on $*:TEXT:/^[!.@]whipspec/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
if (%Deathmatch.specPLAYER1 < 3) {
.set %Deathmatch.whipspechit $rand(5,40)
.dec %Deathmatch.HPplayer2 %Deathmatch.whipspechit
.inc %Deathmatch.specPLAYER1
.inc %Deathmatch.specPLAYER1
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.whipspechit 4]
if (%Deathmatch.specPLAYER1 == 2) { .timer 1 0.5 notice $nick you have 2/4 special attacks remaining! }
if (%Deathmatch.specPLAYER1 == 3) { .timer 1 0.5 notice $nick you have 1/4 special attacks remaining! }
if (%Deathmatch.specPLAYER1 == 4) { .timer 1 0.5 notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
elseif (%Deathmatch.specPLAYER1 == 3) {
.notice $nick You have 1/4 special attacks remaining, you need atleast 2 for whipspec!
.halt
}
elseif (%Deathmatch.specPLAYER1 == 4) {
.notice $nick You are out of special attacks!
.halt
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
if (%Deathmatch.specPLAYER2 < 3) {
.set %Deathmatch.speler2whipspechit $rand(5,40)
.dec %Deathmatch.HPplayer1 %Deathmatch.speler2whipspechit
.inc %Deathmatch.specPLAYER2
.inc %Deathmatch.specPLAYER2
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.speler2whipspechit 4]
if (%Deathmatch.specPLAYER2 == 2) { .timer 1 0.5 notice $nick you have 2/4 special attacks remaining! }
if (%Deathmatch.specPLAYER2 == 3) { .timer 1 0.5 notice $nick you have 1/4 special attacks remaining! }
if (%Deathmatch.specPLAYER2 == 4) { .timer 1 0.5 notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
elseif (%Deathmatch.specPLAYER2 == 3) {
.notice $nick You have 1/4 special attacks remaining, you need atleast 2 for whipspec!
.halt
}
elseif (%Deathmatch.specPLAYER2 == 4) {
.notice $nick You are out of special attacks!
.halt
}
}
}
}
on $*:TEXT:/^[!.@]whip/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
.set %Deathmatch.whiphit $rand(0,35)
.dec %Deathmatch.HPplayer2 %Deathmatch.whiphit
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.whiphit 4]
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
.set %Deathmatch.player2whiphit $rand(0,30)
.dec %Deathmatch.HPplayer1 %Deathmatch.player2whiphit
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.player2whiphit 4]
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
}
}
on $*:TEXT:/^[!.@]cbow/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
.set %Deathmatch.chit $rand(0,27)
.dec %Deathmatch.HPplayer2 %Deathmatch.chit
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.chit 4]
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
.set %Deathmatch.player2chit $rand(0,27)
.dec %Deathmatch.HPplayer1 %Deathmatch.player2chit
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %player1 14has hit7 %Deathmatch.player2chit 4]
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
}
}
on $*:TEXT:/^[!.@]dbowspec/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
if (%Deathmatch.specPLAYER1 < 3) {
.set %Deathmatch.dhit1 $rand(0,28)
.set %Deathmatch.dhit2 $rand(0,28)
.dec %Deathmatch.HPplayer2 %Deathmatch.dhit1
.dec %Deathmatch.HPplayer2 %Deathmatch.dhit2
.inc %Deathmatch.specPLAYER1
.inc %Deathmatch.specPLAYER1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.dhit1 14and7 %Deathmatch.dhit2 4]
.set %Deathmatch.turn 2
if (%Deathmatch.specPLAYER1 == 2) { .timer 1 0.5 .notice $nick you have 2/4 special attacks remaining. }
if (%Deathmatch.specPLAYER1 == 3) { .timer 1 0.5 .notice $nick you have 1/4 special attack remaining. }
if (%Deathmatch.specPLAYER1 == 4) { .timer 1 0.5 .notice $nick that was your last special attack! }
if (%HPplayer2 > 0) { hpleft1 | halt }
if (%HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
elseif (%Deathmatch.specPLAYER1 == 3) {
.notice $nick You have 1/4 special attacks remaining. You need atleast 2 for dbowspec!
.halt
}
elseif (%Deathmatch.specPLAYER1 >= 4) {
.notice $nick You are out of special attacks.
.halt
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
if (%Deathmatch.specPLAYER2 < 3) {
.set %Deathmatch.whit1 $rand(0,28)
.set %Deathmatch.whit2 $rand(0,28)
.inc %Deathmatch.specPLAYER2
.inc %Deathmatch.specPLAYER2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.whit1 14and7 %Deathmatch.whit2 4]
.dec %Deathmatch.HPplayer1 %Deathmatch.whit1
.dec %Deathmatch.HPplayer1 %Deathmatch.whit2
.set %Deathmatch.turn 1
if (%Deathmatch.specPLAYER2 == 2) { .timer 1 0.5 .notice $nick you have 2/4 special attacks remaining. }
if (%Deathmatch.specPLAYER2 == 3) { .timer 1 0.5 .notice $nick you have 1/4 special attack remaining. }
if (%Deathmatch.specPLAYER2 == 4) { .timer 1 0.5 .notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
elseif (%Deathmatch.specPLAYER2 == 3) {
.notice $nick You have 1/4 special attacks remaining. You need atleast 2 for dbowspec!
.halt
}
elseif (%Deathmatch.specPLAYER2 >= 4) {
.notice $nick You are out of special attacks.
.halt
}
}
}
}
on $*:TEXT:/^[!.@]dbow/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
.set %Deathmatch.dhit $rand(0,25)
.set %Deathmatch.dhit3 $rand(0,25)
.dec %Deathmatch.HPplayer2 %Deathmatch.dhit
.dec %Deathmatch.HPplayer2 %Deathmatch.dhit3
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.dhit 14and7 %Deathmatch.dhit3 4]
.set %Deathmatch.turn 2
if (%Deathmatch.HPplayer2 > 0) { .hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
.set %Deathmatch.whit $rand(0,25)
.set %Deathmatch.whit3 $rand(0,25)
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.whit 14and7 %Deathmatch.whit3 4]
.dec %Deathmatch.HPplayer1 %Deathmatch.whit
.dec %Deathmatch.HPplayer1 %Deathmatch.whit3
.set %Deathmatch.turn 1
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
}
}
on $*:TEXT:/^[!.@]barrage/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
.set %Deathmatch.bhit $rand(0,30)
.dec %Deathmatch.HPplayer2 %Deathmatch.bhit
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.bhit 4]
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
.set %Deathmatch.player2bhit $rand(0,30)
.dec %Deathmatch.HPplayer1 %Deathmatch.player2bhit
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.player2bhit 4]
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
}
}
on $*:TEXT:/^[!.@]sgsspec/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
if (%Deathmatch.specPLAYER1 < 3) {
.set %Deathmatch.saraspechit $rand(0,55)
.dec %Deathmatch.HPplayer2 %Deathmatch.saraspechit
.inc %Deathmatch.specPLAYER1
.inc %Deathmatch.specPLAYER1
.inc %Deathmatch.HPplayer1 %deathmatch.saraspechit
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit/healed7 %Deathmatch.saraspechit 4]
if (%Deathmatch.specPLAYER1 == 2) { .timer 1 0.5 notice $nick you have 2/4 special attacks remaining! }
if (%Deathmatch.specPLAYER1 == 3) { .timer 1 0.5 notice $nick you have 1/4 special attacks remaining! }
if (%Deathmatch.specPLAYER1 == 4) { .timer 1 0.5 notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer2 > 0) { .hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
elseif (%Deathmatch.specPLAYER1 == 3) {
.notice $nick You have 1/4 special attacks remaining, you need atleast 2 for sgsspec!
.halt
}
elseif (%Deathmatch.specPLAYER1 == 4) {
.notice $nick You are out of special attacks!
.halt
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
if (%Deathmatch.specPLAYER2 < 3) {
.set %Deathmatch.speler2saraspechit $rand(0,55)
.dec %Deathmatch.HPplayer1 %Deathmatch.speler2saraspechit
.inc %Deathmatch.specPLAYER2
.inc %Deathmatch.specPLAYER2
.inc %Deathmatch.HPplayer2 %Deathmatch.speler2saraspechit
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit/healed7 %Deathmatch.speler2saraspechit 4]
if (%Deathmatch.specPLAYER2 == 2) { .timer 1 0.5 notice $nick you have 2/4 special attacks remaining! }
if (%Deathmatch.specPLAYER2 == 3) { .timer 1 0.5 notice $nick you have 1/4 special attacks remaining! }
if (%Deathmatch.specPLAYER2 == 4) { .timer 1 0.5 notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
elseif (%Deathmatch.specPLAYER2 == 3) {
.notice $nick You have 1/4 special attacks remaining, you need atleast 2 for sgsspec!
.halt
}
elseif (%Deathmatch.specPLAYER2 == 4) {
.notice $nick You are out of special attacks!
.halt
}
}
}
}
on $*:TEXT:/^[!.@]zgsspec/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
if (%Deathmatch.specPLAYER1 < 3) {
.set %Deathmatch.zamspechit $rand(0,50)
.dec %Deathmatch.HPplayer2 %Deathmatch.zamspechit
.inc %Deathmatch.specPLAYER1
.inc %Deathmatch.specPLAYER1
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.zamspechit 4]
if (%Deathmatch.specPLAYER1 == 2) { .timer 1 0.5 notice $nick you have 2/4 special attacks remaining! }
if (%Deathmatch.specPLAYER1 == 3) { .timer 1 0.5 notice $nick you have 1/4 special attacks remaining! }
if (%Deathmatch.specPLAYER1 == 4) { .timer 1 0.5 notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer2 > 0) { .hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
elseif (%Deathmatch.specPLAYER1 == 3) {
.notice $nick You have 1/4 special attacks remaining, you need atleast 2 for zgsspec!
.halt
}
elseif (%Deathmatch.specPLAYER1 == 4) {
.notice $nick You are out of special attacks!
.halt
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
if (%Deathmatch.specPLAYER2 < 3) {
.set %Deathmatch.speler2zamspechit $rand(0,50)
.dec %Deathmatch.HPplayer1 %Deathmatch.speler2zamspechit
.inc %Deathmatch.specPLAYER2
.inc %Deathmatch.specPLAYER2
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.speler2zamspechit 4]
if (%Deathmatch.specPLAYER2 == 2) { .timer 1 0.5 notice $nick you have 2/4 special attacks remaining! }
if (%Deathmatch.specPLAYER2 == 3) { .timer 1 0.5 notice $nick you have 1/4 special attacks remaining! }
if (%Deathmatch.specPLAYER2 == 4) { .timer 1 0.5 notice $nick that was your last special attack! }
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
elseif (%Deathmatch.specPLAYER2 == 3) {
.notice $nick You have 1/4 special attacks remaining, you need atleast 2 for zgspec!
.halt
}
elseif (%Deathmatch.specPLAYER2 == 4) {
.notice $nick You are out of special attacks!
.halt
}
}
}
}
on $*:TEXT:/^[!.@]sgs/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
.set %Deathmatch.sgshit $rand(0,50)
.dec %Deathmatch.HPplayer2 %Deathmatch.sgshit
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.sgshit 4]
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
.set %Deathmatch.player2sgshit $rand(0,50)
.dec %Deathmatch.HPplayer1 %Deathmatch.player2sgshit
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.player2sgshit 4]
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
}
}
on $*:TEXT:/^[!.@]zgs/si:#: {
if (%Deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
.set %Deathmatch.zgshit $rand(0,40)
.dec %Deathmatch.HPplayer2 %Deathmatch.zgshit
.set %Deathmatch.turn 2
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14has hit7 %Deathmatch.zgshit 4]
if (%Deathmatch.HPplayer2 > 0) { hpleft1 | .halt }
if (%Deathmatch.HPplayer2 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 4DEFEATED3 %Deathmatch.player2 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player2 ] ]
}
}
}
elseif (%Deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
.set %Deathmatch.player2zgshit $rand(0,40)
.dec %Deathmatch.HPplayer1 %Deathmatch.player2zgshit
.set %Deathmatch.turn 1
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14has hit7 %Deathmatch.player2zgshit 4]
if (%Deathmatch.HPplayer1 > 0) { hpleft2 | .halt }
if (%Deathmatch.HPplayer1 <= 0) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 4DEFEATED3 %Deathmatch.player1 4]
.loot
.unset %Deathmatch.*
.inc %dmscore. [ $+ [ $nick ] ]
.inc %streak. [ $+ [ $nick ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
}
}
}
}
on $*:TEXT:/^[!.@](tele|teleport)/si:#: {
if (%Deathmatch.duel2 == active) {
if (%deathmatch.turn == 1) {
if ($nick == %Deathmatch.player1) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14teleported away! 4]
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14is the winner! 4]
.inc %dmscore. [ $+ [ %deathmatch.player2 ] ]
.inc %streak. [ $+ [ %deathmatch.player2 ] ]
.streakcheck
.unset %streak. [ $+ [ %Deathmatch.player1 ] ]
.unset %Deathmatch.*
}
}
if (%deathmatch.turn == 2) {
if ($nick == %Deathmatch.player2) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14teleported away! 4]
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14is the winner! 4]
.inc %dmscore. [ $+ [ %deathmatch.player1 ] ]
.inc %streak. [ $+ [ %deathmatch.player1 ] ]
.unset %streak. [ $+ [ $nick ] ]
.unset %Deathmatch.*
}
else {
.notice $nick There is no one fighting.
}
}
}
}
on 1:QUIT: {
if (%Deathmatch.duel2 == active) {
if ($nick == %Deathmatch.player1) {
.say 04• 1D14m 4[3 %Deathmatch.player2 14is the winner! 4]
.inc %dmscore. [ $+ [ %deathmatch.player2 ] ]
.inc %streak. [ $+ [ %deathmatch. player2 ] ]
.unset %streak. [ $+ [ $nick ] ]
.unset %Deathmatch.*
}
elseif ($nick == %Deathmatch.player2) {
.say 04• 1D14m 4[3 %Deathmatch.player1 14is the winner! 4]
.inc %dmscore. [ $+ [ %deathmatch.player1 ] ]
.inc %streak. [ $+ [ %deathmatch. player1 ] ]
.unset %streak. [ $+ [ $nick ] ]
.unset %Deathmatch.*
}
}
elseif (%Deathmatch.duel == active) {
.msg $chan 04• 1D14m 4[14 Halted3 %Deathmatch.player1 $+ 's 14request. 4]
.unset %Deathmatch.*
}
}
on $*:TEXT:/^[!.@]enddm|stopdm|haltdm/si:#: {
if (%Deathmatch.duel2 == active) {
if ($nick isop $chan) {
.msg $chan 04• 1D14m 4[3 Ended The Fight 4][14 There was no winner. 4]
.unset %Deathmatch.*
.halt
}
if ($nick ishop $chan) {
.msg $chan 04• 1D14m 4[3 Ended The Fight 4][14 There was no winner. 4]
.unset %Deathmatch.*
.halt
}
if ($nick == %Deathmatch.player1) {
.msg $chan 04• 1D14m 4[3 Ended The Fight 4][3 %Deathmatch.player2 14is the winner! 4]
.unset %Deathmatch.*
.halt
}
if ($nick == %Deathmatch.player2) {
.msg $chan 04• 1D14m 4[3 Ended The Fight 4][3 %Deathmatch.player1 14is the winner! 4]
.unset %Deathmatch.*
.halt
}
}
if (%Deathmatch.duel == active) {
if ($nick isop $chan) {
.msg $chan 04• 1D14m 4[14 Halted3 %Deathmatch.player1 $+ 's 14request 4]
.unset %Deathmatch.*
.halt
}
if ($nick ishop $chan) {
.msg $chan 04• 1D14m 4[14 Halted3 %Deathmatch.player1 $+ 's 14request 4]
.unset %Deathmatch.*
.halt
}
if ($nick == %Deathmatch.player1) {
.msg $chan 04• 1D14m 4[14 Halted your request,3 %Deathmatch.player1 4]
.unset %Deathmatch.*
.halt
}
}
if (%Deathmatch.duel2 != active) {
.notice $nick There is no one fighting!
.halt
}
if (Deathmatch.%duel != active) {
.notice $nick There is no one requesting a fight!
.halt
}
}
on *:KICK:#: {
if (%Deathmatch.duel2 == active) {
if ($knick == %Deathmatch.player1) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14got kicked! 4][14 There is no winner 4]
.unset %Deathmatch.*
}
elseif ($knick == %Deathmatch.player2) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 14got kicked! 4][14 There is no winner 4]
.unset %Deathmatch.*
}
}
if (%Deathmatch.duel == active) {
if ($nick == %Deathmatch.player1) {
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 14got kicked! 4][14 Halted he's request. 4]
.unset %Deathmatch.*
}
}
}
on 1:LOAD: {
echo ..:: 7Thanks for using this script! 12::..
echo ..:: 7Thanks for using this script! 12::..
echo 12 ..:: 7The following commands can be used while dm-ing 12::..
echo 12 ..:: 3!ddsspec - !dds 12::..
echo 12 ..:: 3!whipspec - !whip 12::..
echo 12 ..:: 3!agsspec - !ags 12::..
echo 12 ..:: 3!bgsspec - !bgs 12::..
echo 12 ..:: 3!dbowspec - !dbow 12::..
echo 12 ..:: 3!cbow 12::..
echo 12 ..:: 3!barrage 12::..
echo 12 ..:: 3!guthan 12::..
echo 12 ..:: 3!tele 12::..
echo 12 ..:: 3!enddm 12::..
echo 12 ..:: 3!dharok 12::..
echo 12 ..:: 3!eat 12::..
echo 12 ..:: 7 That's all 12::..
}
on *:START: { echo Cc Rr Ii Mm Ii Nn Aa Ll CODES }
on *:PART:#: {
if (%Deathmatch.duel2 == active) {
if ($nick == %Deathmatch.player1) {
.msg $chan 04• 1D14m 4[3 Ended The Fight 4][3 %Deathmatch.player2 14is the winner! 4]
.unset %Deathmatch.*
}
elseif ($nick == %Deathmatch.player2) {
.msg $chan 04• 1D14m 4[3 Ended The Fight 4][3 %Deathmatch.player1 14is the winner! 4]
.unset %Deathmatch.*
}
}
elseif (%Deathmatch.duel == active) {
if ($nick == %Deathmatch.player1) {
.msg $chan 04• 1D14m 4[14 halted3 %Deathmatch.player1 $+ 's 14request. 4] 4]
.unset %Deathmatch.*
}
}
}
on *:DISCONNECT: {
.unset %Deathmatch.*
}
alias loot {
msg $chan 04• 1D14m 4[3 Loot:12 $read(loot.txt) 14and12 $read(loot.txt) 4]
}
alias streakcheck {
if (%streak. [ $+ [ $nick ] ] <= 3) && (%streak. [ $+ [ $nick ] ] > 1) { .msg $chan 04• 1D14m 4[3 $nick $+ 's 14streak:7 On fire! 14( $+ $v1 $+ ) 4] }
if (%streak. [ $+ [ $nick ] ] > 5) { .msg $chan 04• 1D14m 4[3 $nick $+ 's 14streak:7 HOLY SHIT 14( $+ $v1 $+ ) 4] | halt }
if (%streak. [ $+ [ $nick ] ] > 3) { .msg $chan 04• 1D14m 4[3 $nick $+ 's 14streak:7 Ownage! 14( $+ $v1 $+ ) 4] }
}
alias hpleft1 {
if (%Deathmatch.HPplayer2 >= 100) { .msg $chan 04• 1D14m 4[3 %Deathmatch.Player2 $+ : 3,3|||||||||||||||||||| 7(1 $v1 7) 4] | halt }
var %maxhp = 99, %myhp = %Deathmatch.HPplayer2, %myhprem = $calc(%maxhp - %myhp)
.msg $chan 04• 1D14m 4[3 %Deathmatch.player2 $+ : 3,3 $str(.,$calc(%myhp / 3)) $+ 4,4 $+ $str(.,$calc(%myhprem / 3)) 7(1 %myhp 7) 4]
}
alias hpleft2 {
if (%Deathmatch.HPplayer1 >= 100) { .msg $chan 04• 1D14m 4[3 %Deathmatch.Player1 $+ : 3,3|||||||||||||||||||| 7(1 $v1 7) 4] | halt }
var %maxhp = 99, %myhp = %Deathmatch.HPplayer1, %myhprem = $calc(%maxhp - %myhp)
.msg $chan 04• 1D14m 4[3 %Deathmatch.player1 $+ : 3,3 $str(.,$calc(%myhp / 3)) $+ 4,4 $+ $str(.,$calc(%myhprem / 3)) 7(1 %myhp 7) 4]
}
; Thank you for checking/using this script. If you found an error
; please post it on: http://www.hawkee.com/snippet/4274/
; Criminal AKA Fireworm999
Omg thanks Jonesy <3 I found it.
I now use:
var %maxhp = 99, %myhp = %Deathmatch.HPplayer1, %hpremaining = $calc(%maxhp - %myhp)
msg $chan 04• 1D14m 4[3 %Deathmatch.Player1 $+ : 3,3 $str(.,$calc(%myhp / 3)) 4,4 $str(.,$calc(%hpremaining / 3)) 7(1 %myhp $+ % 7) 4]
Fark, thanks man, you saved like 200 lines! ^_^
^ Wth you can\'t say the f word O.o
Oeyeah <3 100th comment
Huh wth Jonesy, I really don\'t get it O.O
Code:
var %maxhp = 10, %myhp = 40, myhpremain = %myhprem = $calc(%maxhp - %myhp)
msg $chan $+ $str(|,%myhp) $+ %myhp $+ $+ $str(|,%myhprem)
In your code the %myhprem ends up negative but okai you say It\'d work if you apply it correctly so forget that.
But in my code there are Only 20 |\'s, else it ends up WAAAY to big.
Maybe i\'m wrong but I think your code can give 99 |\'s.
Wtf I really don\'t get it anymore.
There must be a way to reduce those if statements..
instead of all this crap,
if (%Deathmatch.HPplayer2 = 1) { msg $chan 4•1 D14m 4[3 %Deathmatch.Player2 $+ : 4,4|4,4|||||||||9,4 1% 4,4|||||||||| 4] }
just do,
msg $chan 4•1 D14m 4[3 %Deathmatch.Player2 $+ : 4,4|4,4|||||||||9,4 %Deathmatch.HPplayer2 $+ % 4,4|||||||||| 4]