summaryrefslogtreecommitdiff
path: root/world/map/npc/008-1
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-05-19 12:35:46 -0500
committerwushin <pasekei@gmail.com>2015-09-06 13:13:30 -0500
commita5816766ed870dd55170a4b66a75a1907021e421 (patch)
tree12288e1561914b5268a2ccd6801cc4aa4f0e4dd8 /world/map/npc/008-1
parentf86e961ffbf9e1467279d3086a48c47be2a5a86f (diff)
downloadserverdata-a5816766ed870dd55170a4b66a75a1907021e421.tar.gz
serverdata-a5816766ed870dd55170a4b66a75a1907021e421.tar.bz2
serverdata-a5816766ed870dd55170a4b66a75a1907021e421.tar.xz
serverdata-a5816766ed870dd55170a4b66a75a1907021e421.zip
Some of the Tonori Area Quests
Diffstat (limited to 'world/map/npc/008-1')
-rw-r--r--world/map/npc/008-1/banu.txt26
-rw-r--r--world/map/npc/008-1/mikhail.txt21
2 files changed, 11 insertions, 36 deletions
diff --git a/world/map/npc/008-1/banu.txt b/world/map/npc/008-1/banu.txt
index 4c3a2e7f..37881ca0 100644
--- a/world/map/npc/008-1/banu.txt
+++ b/world/map/npc/008-1/banu.txt
@@ -1,18 +1,12 @@
-// Old woman working on a field, asks the player to get her some water
-// after that she asks for a knife
-// Using bit 10 and 11 of QUEST_NorthTulimshar (second half of nibble 2)
-// author: Jenalya
-
008-1,70,42,0|script|Banu|154
{
- set @state, ((QUEST_NorthTulimshar & TWOBIT_5_MASK) >> TWOBIT_5_SHIFT);
set @EXP, 100;
set @money_water, 250;
set @money_knife, 100;
- if (@state >= 3) goto L_Done;
- if (@state == 2) goto L_Knife;
- if (@state == 1) goto L_Water;
+ if (QL_BANU >= 3) goto L_Done;
+ if (QL_BANU == 2) goto L_Knife;
+ if (QL_BANU == 1) goto L_Water;
mes "[Banu]";
mes "\"Ah, hello. You've come at just the right moment. The field work is hard and the sun is burning.";
@@ -30,8 +24,7 @@ L_Next:
mes "[Banu]";
mes "\"Here is my Empty Bottle. There is a well right over there at Hurnscald.\"";
getitem "EmptyBottle", 1;
- set @state, 1;
- callsub S_Update_Mask;
+ set QL_BANU, 1;
goto L_Close;
L_Water:
@@ -44,8 +37,7 @@ L_Water:
mes "She grabs the Bottle of Water and drinks.";
getexp @EXP, 0;
set Zeny, Zeny + @money_water;
- set @state, 2;
- callsub S_Update_Mask;
+ set QL_BANU, 2;
mes "[Banu]";
mes "\"Ah, that's refreshing. Thank you. You're a good kid. Have this for your expenses.";
mes "Maybe you can do me another favor?\"";
@@ -67,8 +59,7 @@ L_Next1:
delitem "Knife", 1;
getexp @EXP, 0;
set Zeny, Zeny + @money_knife;
- set @state, 3;
- callsub S_Update_Mask;
+ set QL_BANU, 3;
mes "[Banu]";
mes "\"Thank you! You're a darling. Please take this for your effort.\"";
goto L_Close;
@@ -102,11 +93,6 @@ L_FullInv:
L_Close:
set @inventorylist_count, 0;
set @EXP, 0;
- set @state, 0;
set @rand, 0;
close;
-
-S_Update_Mask:
- set QUEST_NorthTulimshar, (QUEST_NorthTulimshar & ~(TWOBIT_5_MASK)) | (@state << TWOBIT_5_SHIFT);
- return;
}
diff --git a/world/map/npc/008-1/mikhail.txt b/world/map/npc/008-1/mikhail.txt
index 98a58d12..aca28beb 100644
--- a/world/map/npc/008-1/mikhail.txt
+++ b/world/map/npc/008-1/mikhail.txt
@@ -1,12 +1,8 @@
-// Variables used: nibble 0 of QUEST_SouthTulimshar
-
008-1,135,25,0|script|Mikhail|120
{
- set @state, ((QUEST_SouthTulimshar & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT);
-
- if (@state >= 6) goto L_Done;
- if (@state == 5) goto L_Progress;
- if (@state == 4) goto L_Start;
+ if (QL_SOUP >= 6) goto L_Done;
+ if (QL_SOUP == 5) goto L_Progress;
+ if (QL_SOUP == 4) goto L_Start;
goto L_Con_Mik_First;
L_Con_Mik_First:
@@ -30,8 +26,7 @@ L_Start:
L_accept:
mes "[Mikhail]";
mes "\"Thank you so much! I'll wait for you here.\"";
- set @state, 5;
- callsub S_Update_Var;
+ set QL_SOUP, 5;
close;
L_Progress:
@@ -52,8 +47,7 @@ L_try:
L_get:
delitem "MaggotSlime", 5;
getexp 100, 0;
- set @state, 6;
- callsub S_Update_Var;
+ set QL_SOUP, 6;
mes "[Mikhail]";
mes "\"Ooh! Thank you so much! I can get back to Bernard now!\"";
goto L_Close;
@@ -64,10 +58,5 @@ L_Done:
goto L_Close;
L_Close:
- set @state, 0;
close;
-
-S_Update_Var:
- set QUEST_SouthTulimshar, (QUEST_SouthTulimshar & ~(NIBBLE_0_MASK) | (@state << NIBBLE_0_SHIFT));
- return;
}