summaryrefslogtreecommitdiff
path: root/world/map/npc/068-2/hetchel.txt
diff options
context:
space:
mode:
authorCandyCurt <orgzfrgh@gmail.com>2014-10-28 17:45:29 -0400
committermekolat <mekolat@gmail.com>2014-10-28 17:45:29 -0400
commit01609ecf05f7637e114dda3d6787286d47a9407b (patch)
tree82fd62f993f72b5f98dc5d6ff1654643571cdc18 /world/map/npc/068-2/hetchel.txt
parent0bc1c20799c9b01e60035ce1c82fd8a38c110c4c (diff)
downloadserverdata-01609ecf05f7637e114dda3d6787286d47a9407b.tar.gz
serverdata-01609ecf05f7637e114dda3d6787286d47a9407b.tar.bz2
serverdata-01609ecf05f7637e114dda3d6787286d47a9407b.tar.xz
serverdata-01609ecf05f7637e114dda3d6787286d47a9407b.zip
Squeeze WG_QUEST_state into one byte to make room for silk pants quest
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;
}
-