summaryrefslogtreecommitdiff
path: root/world/map/npc/020-1/well.txt
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-04 11:43:47 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-13 09:57:58 -0400
commit833c70cf2ada6b6015ed49fc3f98c9aa4bb4ad4c (patch)
tree11bff5d9a75827d29befa6415aa8516dbe46d4a9 /world/map/npc/020-1/well.txt
parentda0f4578b83cc2f9df249dc1bb5bb33d720cb7a8 (diff)
downloadserverdata-833c70cf2ada6b6015ed49fc3f98c9aa4bb4ad4c.tar.gz
serverdata-833c70cf2ada6b6015ed49fc3f98c9aa4bb4ad4c.tar.bz2
serverdata-833c70cf2ada6b6015ed49fc3f98c9aa4bb4ad4c.tar.xz
serverdata-833c70cf2ada6b6015ed49fc3f98c9aa4bb4ad4c.zip
convert well quest
Diffstat (limited to 'world/map/npc/020-1/well.txt')
-rw-r--r--world/map/npc/020-1/well.txt32
1 files changed, 5 insertions, 27 deletions
diff --git a/world/map/npc/020-1/well.txt b/world/map/npc/020-1/well.txt
index a4513536..5c9c9d75 100644
--- a/world/map/npc/020-1/well.txt
+++ b/world/map/npc/020-1/well.txt
@@ -16,11 +16,7 @@
020-1,99,83,0|script|#Well|400
{
- set @Q_MASK, NIBBLE_4_MASK;
- set @Q_SHIFT, NIBBLE_4_SHIFT;
- set @Q_status, ((QUEST_Nivalis_state) & @Q_MASK) >> @Q_SHIFT;
-
- if(@Q_status == 2) goto L_Finished;
+ if(QL_WELL == 2) goto L_Finished;
set @item_ID, 0;
setarray @quote_item$, "Yuck! Who has thrown that on me?","Ouch! Who hurts me?","White powder!? What's going on up there?","Ahw! It's raining ","","","";
@@ -76,8 +72,7 @@ L_MenuItems1:
set @quote$, "";
mes "[Mysterious voice inside the well]";
mes "\" "+ @quote$ +". So if you can call help for me... please do so!\"";
- set @Q_status, 1;
- callsub S_Update_Var;
+ set QL_WELL, 1;
close;
L_NO_ITEM:
@@ -90,24 +85,14 @@ L_Finished:
L_Close:
close;
-
-S_Update_Var:
- set QUEST_Nivalis_state,
- (QUEST_Nivalis_state & ~(@Q_MASK)
- | (@Q_status << @Q_SHIFT));
- return;
}
020-2,100,28,0|script|Miler|100
{
- set @Q_MASK, NIBBLE_4_MASK;
- set @Q_SHIFT, NIBBLE_4_SHIFT;
- set @Q_status, ((QUEST_Nivalis_state) & @Q_MASK) >> @Q_SHIFT;
-
mes "[Miler]";
mes "\"Hello!\"";
- if(@Q_status == 2) close;
- if(@Q_status == 1)
+ if(QL_WELL == 2) close;
+ if(QL_WELL == 1)
menu
"Hello.", L_Close,
"Hello, Can you help me?", L_HELP;
@@ -122,16 +107,9 @@ L_Next:
mes "[Miler]";
mes "\"Ho! I'll help him!\"";
getexp (BaseLevel * 111), 0;
- set @Q_status, 2;
- callsub S_Update_Var;
+ set QL_WELL, 2;
close;
L_Close:
close;
-
-S_Update_Var:
- set QUEST_Nivalis_state,
- (QUEST_Nivalis_state & ~(@Q_MASK)
- | (@Q_status << @Q_SHIFT));
- return;
}