diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-18 12:17:29 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-18 12:17:29 -0300 |
commit | f0395c85f7f7abef73008d4ee1c9525b17ca150d (patch) | |
tree | e47a7303481d96363772b4c228cef11b6cf3b5c5 /npc/010-1-1 | |
parent | 63ec224e59647477b21594a73f9d200cbbd66b26 (diff) | |
download | serverdata-f0395c85f7f7abef73008d4ee1c9525b17ca150d.tar.gz serverdata-f0395c85f7f7abef73008d4ee1c9525b17ca150d.tar.bz2 serverdata-f0395c85f7f7abef73008d4ee1c9525b17ca150d.tar.xz serverdata-f0395c85f7f7abef73008d4ee1c9525b17ca150d.zip |
Bonus "boss" (actually it is just a normal monster) - GIANT CAVE MAGGOT
Map 010-1-1, respawn only after 1 hour. Drop Rate was "fixed" on previous commit.
Diffstat (limited to 'npc/010-1-1')
-rw-r--r-- | npc/010-1-1/_import.txt | 1 | ||||
-rw-r--r-- | npc/010-1-1/boss.txt | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/npc/010-1-1/_import.txt b/npc/010-1-1/_import.txt index 166185523..a86ab148e 100644 --- a/npc/010-1-1/_import.txt +++ b/npc/010-1-1/_import.txt @@ -2,4 +2,5 @@ // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/010-1-1/_mobs.txt", "npc/010-1-1/_warps.txt", +"npc/010-1-1/boss.txt", "npc/010-1-1/treasure.txt", diff --git a/npc/010-1-1/boss.txt b/npc/010-1-1/boss.txt new file mode 100644 index 000000000..3e9624b1f --- /dev/null +++ b/npc/010-1-1/boss.txt @@ -0,0 +1,31 @@ +// TMW2 Script +// Author: +// Jesusalva +// Description: +// Giant Cave Maggot Boss + +010-1-1,0,0,0 script #BossCtrl_010-1-1 NPC_HIDDEN,{ + end; + +// Respawn every hour +OnTimer3600000: + stopnpctimer; +OnInit: + // WARNING: (51,19) INVALID COORDINATES + setarray .xp, 49, 51, 44, 101, 124, 164, 132, 154, 116; + setarray .yp, 59, 19, 100, 45, 26, 35, 61, 108, 94; + .@tg=rand(getarraysize(.xp)-1); + monster "010-1-1", .xp[.@tg], .yp[.@tg], strmobinfo(1, GiantCaveMaggot), GiantCaveMaggot, 1, "#BossCtrl_010-1-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; + +} |