From 6e9543af67c5e027269bfc32e9c6f36111f3832a Mon Sep 17 00:00:00 2001 From: wushin Date: Fri, 11 Apr 2014 14:04:55 -0500 Subject: Tutorial Edit Switched to Bit mask Map Edits for the New Maps Less requirements to get out --- world/map/npc/functions/clear_vars.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'world/map/npc/functions') diff --git a/world/map/npc/functions/clear_vars.txt b/world/map/npc/functions/clear_vars.txt index ef4f217a..b83ea630 100644 --- a/world/map/npc/functions/clear_vars.txt +++ b/world/map/npc/functions/clear_vars.txt @@ -2,6 +2,28 @@ function|script|ClearVariables|, { + // Tutorial + if (sorfina) + goto L_SetAllTut; + goto L_Easter; + +L_SetAllTut: + if (FLAGS & FLAG_TUTORIAL_DONE) + goto L_ResetAllTut; + set @tutorial_tmp, (sorfina + tanisha + hasan + kaan); + set TUTORIAL, (TUTORIAL & ~(NIBBLE_0_MASK) | (@tutorial_tmp << NIBBLE_0_SHIFT)); + set @tutorial_tmp, 0; + goto L_ResetAllTut; + +L_ResetAllTut: + set sorfina, 0; + set tanisha, 0; + set hasan, 0; + set kaan, 0; + goto L_Easter; + +L_Easter: + // Easter set EasterQuest, 0; // Halloween 2006 -- cgit v1.2.3-70-g09d2