diff options
Diffstat (limited to 'npc/015-1')
-rw-r--r-- | npc/015-1/_import.txt | 1 | ||||
-rw-r--r-- | npc/015-1/boss.txt | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/npc/015-1/_import.txt b/npc/015-1/_import.txt index 19aefef50..69c337026 100644 --- a/npc/015-1/_import.txt +++ b/npc/015-1/_import.txt @@ -2,4 +2,5 @@ // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/015-1/_mobs.txt", "npc/015-1/_warps.txt", +"npc/015-1/boss.txt", "npc/015-1/treasure.txt", diff --git a/npc/015-1/boss.txt b/npc/015-1/boss.txt new file mode 100644 index 000000000..5d1d77121 --- /dev/null +++ b/npc/015-1/boss.txt @@ -0,0 +1,27 @@ +// TMW2 Script +// Author: +// Jesusalva +// Description: +// Spider Queen Boss + +015-1,0,0,0 script #BossCtrl_015-1 NPC_HIDDEN,{ + end; + +// Respawn every half hour +OnTimer1800000: + stopnpctimer; +OnInit: + areamonster "015-1", 20, 20, getmapinfo(MAPINFO_SIZE_X, "015-1"), getmapinfo(MAPINFO_SIZE_Y, "015-1"), strmobinfo(1, SpiderQueen), SpiderQueen, 1, "#BossCtrl_015-1::OnBossDeath"; + end; + +OnBossDeath: + initnpctimer; + .@party=getcharid(1); + if (.@party > 0) { + mapannounce getmap(), "Boss deafeated by Party: " + getpartyname(.@party), bc_all; + } else { + mapannounce getmap(), "Boss deafeated by: " + strcharinfo(0), bc_all; + } + end; + +} |