diff options
Diffstat (limited to 'npc/015-6')
-rw-r--r-- | npc/015-6/_import.txt | 1 | ||||
-rw-r--r-- | npc/015-6/boss.txt | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/npc/015-6/_import.txt b/npc/015-6/_import.txt index 733918207..f75a7dd6c 100644 --- a/npc/015-6/_import.txt +++ b/npc/015-6/_import.txt @@ -2,5 +2,6 @@ // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/015-6/_mobs.txt", "npc/015-6/_warps.txt", +"npc/015-6/boss.txt", "npc/015-6/mapflags.txt", "npc/015-6/treasure.txt", diff --git a/npc/015-6/boss.txt b/npc/015-6/boss.txt new file mode 100644 index 000000000..8345351a4 --- /dev/null +++ b/npc/015-6/boss.txt @@ -0,0 +1,30 @@ +// TMW2 Script +// Author: +// Jesusalva +// Description: +// Terranite King Boss + +015-6,0,0,0 script #BossCtrl_015-6 NPC_HIDDEN,{ + end; + +// Respawn every hour +OnTimer3600000: + stopnpctimer; +OnInit: + setarray .xp, 268, 55, 371, 482, 212; + setarray .yp, 90, 45, 38, 114, 148; + .@tg=rand(getarraysize(.xp)-1); + monster "015-6", .xp[.@tg], .yp[.@tg], strmobinfo(1, TerraniteKing), TerraniteKing, 1, "#BossCtrl_015-6::OnBossDeath"; + end; + +OnBossDeath: + initnpctimer; + .@party=getcharid(1); + if (.@party > 0) { + mapannounce "015-6", "Boss deafeated by Party: " + getpartyname(.@party), bc_all; + } else { + mapannounce "015-6", "Boss deafeated by: " + strcharinfo(0), bc_all; + } + end; + +} |