summaryrefslogtreecommitdiff
path: root/npc/014-2-2/gemini.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-04-28 16:21:45 -0300
committerJesusaves <cpntb1@ymail.com>2022-04-28 16:21:45 -0300
commit529456b33aafda550cb97ffb13c10e5fc81a54c0 (patch)
treeffb112b1cae5ffa5610bb3a7fb0eb47b37d48225 /npc/014-2-2/gemini.txt
parentd451a097f3ddc03c2552a8962fe86316440884ec (diff)
downloadserverdata-529456b33aafda550cb97ffb13c10e5fc81a54c0.tar.gz
serverdata-529456b33aafda550cb97ffb13c10e5fc81a54c0.tar.bz2
serverdata-529456b33aafda550cb97ffb13c10e5fc81a54c0.tar.xz
serverdata-529456b33aafda550cb97ffb13c10e5fc81a54c0.zip
Minimum testing so it barely works
Diffstat (limited to 'npc/014-2-2/gemini.txt')
-rw-r--r--npc/014-2-2/gemini.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/npc/014-2-2/gemini.txt b/npc/014-2-2/gemini.txt
index 898d12e9e..26317f297 100644
--- a/npc/014-2-2/gemini.txt
+++ b/npc/014-2-2/gemini.txt
@@ -11,12 +11,10 @@ OnCoreInit:
debugmes "CORE INIT, Inst = %d", instance_id();
.@p = getcharid(1);
instance_attach($@VALIA_INST[.@p]);
- debugmes "Attached to %d", $@VALIA_INST[.@p];
- debugmes "New Inst = %d", instance_id();
@mystatus = 0;
sleep2(200);
- if (!'STATUS)
- 'STATUS = 1;
+ if (!$@VALIA_STATUS[.@p])
+ $@VALIA_STATUS[.@p] = 1;
// FALLTHROUGH
OnCore:
if (!compare(getmap(), "val")) end;
@@ -24,10 +22,11 @@ OnCore:
instance_attach($@VALIA_INST[.@p]);
// Always true on first interaction
// This handles new stages for person
- if (@mystatus != 'STATUS) {
- switch ('STATUS) {
+ if (@mystatus != $@VALIA_STATUS[.@p]) {
+ // No retroaction!
+ @mystatus = $@VALIA_STATUS[.@p];
+ switch ($@VALIA_STATUS[.@p]) {
case 1: // Quest initiated
- @mystatus = 1;
// Spawn monsters
areamonster("val1@"+.@p, 20, 20, 60, 60, strmobinfo(1, GreenSlime), GreenSlime, (BaseLevel/15), "Valia::OnGSlime");
areamonster("val1@"+.@p, 20, 20, 70, 60, strmobinfo(1, LogHead), LogHead, (BaseLevel/15), "Valia::OnLHead");