summaryrefslogtreecommitdiff
path: root/npc/015-6/boss.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-25 15:34:21 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-25 15:34:21 -0300
commit5c13750cd1178a7564a1bb35ad6c6e141d507be6 (patch)
tree9dfd19d930f3b800d772da3c24f86c731370a574 /npc/015-6/boss.txt
parent286873913539f1db3e2f9a56ae64c1ddb4cdfd2c (diff)
downloadserverdata-5c13750cd1178a7564a1bb35ad6c6e141d507be6.tar.gz
serverdata-5c13750cd1178a7564a1bb35ad6c6e141d507be6.tar.bz2
serverdata-5c13750cd1178a7564a1bb35ad6c6e141d507be6.tar.xz
serverdata-5c13750cd1178a7564a1bb35ad6c6e141d507be6.zip
Regenerate maps and add Terranite King to his cave
Diffstat (limited to 'npc/015-6/boss.txt')
-rw-r--r--npc/015-6/boss.txt30
1 files changed, 30 insertions, 0 deletions
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;
+
+}