diff options
author | wushin <pasekei@gmail.com> | 2014-04-11 14:04:55 -0500 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2014-04-15 20:26:28 -0500 |
commit | 6e9543af67c5e027269bfc32e9c6f36111f3832a (patch) | |
tree | e18deac399a030b18b2e257060d8f435a13bd082 /world/map/npc/functions | |
parent | 7632f53fd6f0c2accf45983d2885ef596d4bee7e (diff) | |
download | serverdata-6e9543af67c5e027269bfc32e9c6f36111f3832a.tar.gz serverdata-6e9543af67c5e027269bfc32e9c6f36111f3832a.tar.bz2 serverdata-6e9543af67c5e027269bfc32e9c6f36111f3832a.tar.xz serverdata-6e9543af67c5e027269bfc32e9c6f36111f3832a.zip |
Tutorial Edit
Switched to Bit mask
Map Edits for the New Maps
Less requirements to get out
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r-- | world/map/npc/functions/clear_vars.txt | 22 |
1 files changed, 22 insertions, 0 deletions
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 |