From e76563cd2770678f00b177e2baa74f79f9a27c71 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 17 Mar 2019 02:07:30 -0300 Subject: Release Lilit already I'm sleepy --- npc/018-5-0/_import.txt | 5 +++++ npc/018-5-0/_mobs.txt | 3 +++ npc/018-5-0/_warps.txt | 3 +++ npc/018-5-0/core.txt | 28 ++++++++++++++++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 npc/018-5-0/_import.txt create mode 100644 npc/018-5-0/_mobs.txt create mode 100644 npc/018-5-0/_warps.txt create mode 100644 npc/018-5-0/core.txt (limited to 'npc/018-5-0') 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; +} -- cgit v1.2.3-70-g09d2