summaryrefslogtreecommitdiff
path: root/world/map/npc/068-2/hetchel.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/068-2/hetchel.txt')
-rw-r--r--world/map/npc/068-2/hetchel.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/world/map/npc/068-2/hetchel.txt b/world/map/npc/068-2/hetchel.txt
index 87c3d5af..d5d3fe72 100644
--- a/world/map/npc/068-2/hetchel.txt
+++ b/world/map/npc/068-2/hetchel.txt
@@ -9,8 +9,8 @@
//
// Hetchel's workshop is actually under repair, Shé'll be back in 021-2 when workers have finished their job.
//
-// QUEST_WG_state: Global variable indicating winter gloves status.
-// Lora Tay proposes silk Robe if (QUEST_WG_state>= 11).
+// @wg_state: variable indicating winter gloves status.
+// Lora Tay proposes silk Robe if (@wg_state>= 11).
// @SHEET_COCOONS_NR : Number of cocoons required per sheet.
// Might ne calculated from @ROBE_COCOONS_NR/@ROBE_SHEETS_NR
// Actually: 150∕6 = 25
@@ -19,11 +19,12 @@
068-2.gat,62,83,0|script|Hetchel|376,
{
+ set @wg_state, ((QUEST_WG_state & BYTE_0_MASK) >> BYTE_0_SHIFT);
set @SHEET_COCOONS_NR, 25;
set @SHEET_ZENY, 500;
set @SheetCount, 0;
- if (QUEST_WG_state < 11)
+ if (@wg_state < 11)
goto L_WG_quest_not_done;
mes "[Hetchel the weaver]";
mes "\"Hello I am Hetchel, I weave fine textiles, what can I do for you?\"";
@@ -141,6 +142,6 @@ L_end:
set @SHEET_COCOONS_NR, 0;
set @SHEET_ZENY, 0;
set @SheetCount, 0;
+ set @wg_state, 0;
close;
}
-