diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-03-17 02:07:30 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-03-17 02:07:30 -0300 |
commit | e76563cd2770678f00b177e2baa74f79f9a27c71 (patch) | |
tree | 782b771b6e667d604961106aa69d1a6d1be9ccbf /npc/018-5-0 | |
parent | e6d42426f7d4cbb1677a0e2528f5e66ced9bdbbf (diff) | |
download | serverdata-e76563cd2770678f00b177e2baa74f79f9a27c71.tar.gz serverdata-e76563cd2770678f00b177e2baa74f79f9a27c71.tar.bz2 serverdata-e76563cd2770678f00b177e2baa74f79f9a27c71.tar.xz serverdata-e76563cd2770678f00b177e2baa74f79f9a27c71.zip |
Release Lilit already I'm sleepy
Diffstat (limited to 'npc/018-5-0')
-rw-r--r-- | npc/018-5-0/_import.txt | 5 | ||||
-rw-r--r-- | npc/018-5-0/_mobs.txt | 3 | ||||
-rw-r--r-- | npc/018-5-0/_warps.txt | 3 | ||||
-rw-r--r-- | npc/018-5-0/core.txt | 28 |
4 files changed, 39 insertions, 0 deletions
diff --git a/npc/018-5-0/_import.txt b/npc/018-5-0/_import.txt new file mode 100644 index 000000000..d7a946e8f --- /dev/null +++ b/npc/018-5-0/_import.txt @@ -0,0 +1,5 @@ +// Map 018-5-0: Heroes' Hold - Exchange Hall +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/018-5-0/_mobs.txt", +"npc/018-5-0/_warps.txt", +"npc/018-5-0/core.txt", diff --git a/npc/018-5-0/_mobs.txt b/npc/018-5-0/_mobs.txt new file mode 100644 index 000000000..90eb88b59 --- /dev/null +++ b/npc/018-5-0/_mobs.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 018-5-0: Heroes' Hold - Exchange Hall mobs +018-5-0,79,38,59,18 monster Bluepar 1177,40,30000,30000 diff --git a/npc/018-5-0/_warps.txt b/npc/018-5-0/_warps.txt new file mode 100644 index 000000000..2b05b6099 --- /dev/null +++ b/npc/018-5-0/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 018-5-0: Heroes' Hold - Exchange Hall warps +018-5-0,139,25,0 warp #018-5-0_139_25 0,9,018-5,39,133 diff --git a/npc/018-5-0/core.txt b/npc/018-5-0/core.txt new file mode 100644 index 000000000..38bef9df1 --- /dev/null +++ b/npc/018-5-0/core.txt @@ -0,0 +1,28 @@ +// TMW-2 Script +// Author: +// Jesusalva +// Description: +// Controls the swimming minigame. Basically, you lose 1% HP if lack total status. + +018-5-0,0,0,0 script #01850SwimmingCtrl NPC_HIDDEN,{ + end; + +OnLoop: + if (getmap() != "018-5-0") + end; + if (ispcdead()) + end; + // Sum everything - you can have 70 str instead of splitting in 35 str and 35 vit + .@status=readparam(bStr)+readparam(bVit); + .@reqst=.reqstr+.reqvit; + debugmes "Got %d/%d (%d), heal %d", .@status,.@reqst,.@status-.@reqst,min(0, .@status-.@reqst); + //percentheal min(0, .@status-.@reqst), 0; + heal (min(0, .@status-.@reqst)*3), 0; + addtimer(3000, "#01850SwimmingCtrl::OnLoop"); + end; + +OnInit: + .reqstr=35; + .reqvit=35; + end; +} |