From 01609ecf05f7637e114dda3d6787286d47a9407b Mon Sep 17 00:00:00 2001 From: CandyCurt Date: Tue, 28 Oct 2014 17:45:29 -0400 Subject: Squeeze WG_QUEST_state into one byte to make room for silk pants quest --- world/map/npc/068-2/hetchel.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'world/map/npc/068-2') 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; } - -- cgit v1.2.3-70-g09d2