diff options
author | NetSysFire <59517351+NetSysFire@users.noreply.github.com> | 2023-02-21 12:39:45 +0100 |
---|---|---|
committer | NetSysFire <59517351+NetSysFire@users.noreply.github.com> | 2023-02-21 12:39:45 +0100 |
commit | ad32354635777d62f36b297da06c2a49bd24d336 (patch) | |
tree | 62e291d0ffa57548228ee74c418adc2c62811ca3 | |
parent | 6f8e1b116532ddb70d1eb9a0d28f181a15453983 (diff) | |
download | serverdata-ad32354635777d62f36b297da06c2a49bd24d336.tar.gz serverdata-ad32354635777d62f36b297da06c2a49bd24d336.tar.bz2 serverdata-ad32354635777d62f36b297da06c2a49bd24d336.tar.xz serverdata-ad32354635777d62f36b297da06c2a49bd24d336.zip |
use announce_mobkill() for more stuff
-rw-r--r-- | npc/010-1-1/boss.txt | 7 | ||||
-rw-r--r-- | npc/015-3-3/boss.txt | 2 | ||||
-rw-r--r-- | npc/015-6/boss.txt | 7 | ||||
-rw-r--r-- | npc/025-2-3/boss.txt | 4 | ||||
-rw-r--r-- | npc/031-0/boss.txt | 6 |
5 files changed, 5 insertions, 21 deletions
diff --git a/npc/010-1-1/boss.txt b/npc/010-1-1/boss.txt index 3e9449f6d..899766ed3 100644 --- a/npc/010-1-1/boss.txt +++ b/npc/010-1-1/boss.txt @@ -20,12 +20,7 @@ OnInit: OnBossDeath: initnpctimer; - .@party=getcharid(1); - if (.@party > 0) { - mapannounce getmap(), "Giant Cave Maggot defeated by Party: " + getpartyname(.@party), bc_all; - } else { - mapannounce getmap(), "Giant Cave Maggot defeated by: " + strcharinfo(0), bc_all; - } + announce_bosskill(getmap(), GiantCaveMaggot); fix_mobkill(GiantCaveMaggot); end; diff --git a/npc/015-3-3/boss.txt b/npc/015-3-3/boss.txt index 0fd764e48..50f9af934 100644 --- a/npc/015-3-3/boss.txt +++ b/npc/015-3-3/boss.txt @@ -13,7 +13,7 @@ /* Treasure Chest logic */ if (getq(HurnscaldQuest_PirateCave) == 7) { // You'll always get the maximum prize the first time - TreasureBox(99999); + TreasureBox(99999); Zeny+=rand2(5700, 6200); getexp 1000, 320; compareandsetq HurnscaldQuest_PirateCave, 7, 8; diff --git a/npc/015-6/boss.txt b/npc/015-6/boss.txt index 0fe8ee6b9..845bc72ba 100644 --- a/npc/015-6/boss.txt +++ b/npc/015-6/boss.txt @@ -19,12 +19,7 @@ OnInit: OnBossDeath: initnpctimer; - .@party=getcharid(1); - if (.@party > 0) { - mapannounce "015-6", "Terranite King defeated by Party: " + getpartyname(.@party), bc_all; - } else { - mapannounce "015-6", "Terranite King defeated by: " + strcharinfo(0), bc_all; - } + announce_bosskill(getmap(), TerraniteKing); fix_mobkill(TerraniteKing); end; diff --git a/npc/025-2-3/boss.txt b/npc/025-2-3/boss.txt index 5cd42c822..d375a5c6f 100644 --- a/npc/025-2-3/boss.txt +++ b/npc/025-2-3/boss.txt @@ -21,11 +21,9 @@ OnBossDeath: initnpctimer; .@party=getcharid(1); getitem StrangeCoin, 1; + announce_bosskill(getmap(), PinkieEmperor); if (.@party > 0) { - mapannounce "025-2-3", "Pinkie Emperor defeated by Party: " + getpartyname(.@party), bc_all; partytimer("025-2-3", 200, "#BossCtrl_025-2-3::OnBossReward"); - } else { - mapannounce "025-2-3", "Pinkie Emperor defeated by: " + strcharinfo(0), bc_all; } callfunc "02524_Revenge_BlackBox"; fix_mobkill(PinkieEmperor); diff --git a/npc/031-0/boss.txt b/npc/031-0/boss.txt index 003d22b49..8ef2b1fa7 100644 --- a/npc/031-0/boss.txt +++ b/npc/031-0/boss.txt @@ -18,11 +18,7 @@ OnInit: OnBossDeath: initnpctimer; .@party=getcharid(1); - if (.@party > 0) { - mapannounce getmap(), "Tengu defeated by Party: " + getpartyname(.@party), bc_all; - } else { - mapannounce getmap(), "Tengu defeated by: " + strcharinfo(0), bc_all; - } + announce_bosskill(getmap(), Tengu); getexp 0, 1000+BaseLevel*8+JobLevel; fix_mobkill(Tengu); end; |