diff options
Diffstat (limited to 'world/map/npc/008-1')
-rw-r--r-- | world/map/npc/008-1/banu.txt | 26 | ||||
-rw-r--r-- | world/map/npc/008-1/mikhail.txt | 21 |
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; } |