diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-17 17:13:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-17 17:13:44 -0300 |
commit | 79f82bff9ea69134ba5a4e5fa5d211b909ce1dbb (patch) | |
tree | 68f5c0d666a150596d5fb45caa423b64db2c2d38 /npc/001-7 | |
parent | f934946b629d5814bcf4c6d1b432619310f02dde (diff) | |
download | serverdata-79f82bff9ea69134ba5a4e5fa5d211b909ce1dbb.tar.gz serverdata-79f82bff9ea69134ba5a4e5fa5d211b909ce1dbb.tar.bz2 serverdata-79f82bff9ea69134ba5a4e5fa5d211b909ce1dbb.tar.xz serverdata-79f82bff9ea69134ba5a4e5fa5d211b909ce1dbb.zip |
Move 001-7 logic parts to 001-7/ folder
Diffstat (limited to 'npc/001-7')
-rw-r--r-- | npc/001-7/_import.txt | 1 | ||||
-rw-r--r-- | npc/001-7/homunculus.txt | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/npc/001-7/_import.txt b/npc/001-7/_import.txt index 808e1ca58..733e72626 100644 --- a/npc/001-7/_import.txt +++ b/npc/001-7/_import.txt @@ -4,4 +4,5 @@ "npc/001-7/_warps.txt", "npc/001-7/barbarian.txt", "npc/001-7/celestia_bossfight.txt", +"npc/001-7/homunculus.txt", "npc/001-7/mapflags.txt", diff --git a/npc/001-7/homunculus.txt b/npc/001-7/homunculus.txt new file mode 100644 index 000000000..bd14db3a4 --- /dev/null +++ b/npc/001-7/homunculus.txt @@ -0,0 +1,51 @@ +// TMW2 scripts. +// Author: +// Jesusalva +// Description: +// 001-7 Monster King's Village Configuration File +// Part of Player Quest, see 023-3 scope and 024-16 +// (C) Moubootaur Legends, 2019 + +001-7,91,89,0 script #Init0233 NPC_HIDDEN,0,0,{ + end; + +OnTouch: + .@q=getq(General_Narrator); + .@q2=getq2(General_Narrator); + // Cheater Detected + if (.@q < 13) { + warp "Save", 0, 0; + percentheal -100, -100; + return false; + } + if (.@q == 15) { + dispbottom lg("I'm not a coward! I must press forward!"); + end; + } + .@mapn$="023-3"; + warp .@mapn$, 48, 23; + end; +} + +001-7,59,44,0 script #Init02331 NPC_HIDDEN,0,0,{ + end; + +OnTouch: + .@n=getq(General_Narrator); + .@q=getq2(FrostiaQuest_Homunculus); + // Cheater Detected + if (.@n < 13) { + warp "Save", 0, 0; + percentheal -100, -100; + return false; + } + if (.@q < 15) { + dispbottom l("It seems to be sealed."); + end; + } + .@mapn$="023-3-1"; + warp .@mapn$, any(45,46), 79; + end; +} +// Okay, we're done with basic warps + |