diff options
author | Wushin <pasekei@gmail.com> | 2015-01-07 21:25:14 -0600 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-01-07 21:25:14 -0600 |
commit | b734af239e8ff1e7ea746ea327fb84c62be09b7e (patch) | |
tree | cbc5f399ccf8dd226056887a70b9a313f88bee6e /world/map/npc/029-1/tutorial.txt | |
parent | 2c09797ebd2c03b2cbe9a458f8ea8d1fbd04ccff (diff) | |
parent | 61c88ec162713b980f30e6e5111c1cfbd9f23d3a (diff) | |
download | serverdata-b734af239e8ff1e7ea746ea327fb84c62be09b7e.tar.gz serverdata-b734af239e8ff1e7ea746ea327fb84c62be09b7e.tar.bz2 serverdata-b734af239e8ff1e7ea746ea327fb84c62be09b7e.tar.xz serverdata-b734af239e8ff1e7ea746ea327fb84c62be09b7e.zip |
Merge pull request #223 from wushin/moving-tutorial
Move Tutorial to Hurnscald
Diffstat (limited to 'world/map/npc/029-1/tutorial.txt')
-rw-r--r-- | world/map/npc/029-1/tutorial.txt | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/world/map/npc/029-1/tutorial.txt b/world/map/npc/029-1/tutorial.txt new file mode 100644 index 00000000..6a3df4ff --- /dev/null +++ b/world/map/npc/029-1/tutorial.txt @@ -0,0 +1,75 @@ +// This file is part of the Tutorial +// Author: Jenalya +// if you enter the tutorial area from outside, it is set to be already done +-|script|#TutorialConfig|-1 +{ + end; + +OnInit: + set $@ScorpionFighter, 0; + set $@ScorpionTimer, 0; + set $@ScorpDeath, 0; + set $@SpokeToKaan, (1 << 31); + end; +} +function|script|TutorialState +{ + callfunc "ClearVariables"; + set @tutorial, ((STARTAREA & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT); + set @kaan_talked, (STARTAREA & $@SpokeToKaan); + return; +} +function|script|SetTutorialMask +{ + set STARTAREA, (STARTAREA & ~(NIBBLE_0_MASK) | (@tutorial_tmp << NIBBLE_0_SHIFT)); + set @tutorial_tmp, 0; + return; +} +029-2.gat,21,26,0|script|TutDebug|154 +{ + mes "[TutDebug]"; + mes "Reset?"; + menu + "Reset Kaan/Hasan",L_Kaan, + "Yes.",L_Reset, + "No.",L_Close; + +L_Kaan: + set @tutorial_tmp, 8; + set STARTAREA, (STARTAREA & ~(NIBBLE_0_MASK) | (@tutorial_tmp << NIBBLE_0_SHIFT)); + set STARTAREA, STARTAREA &~ $@SpokeToKaan; + mes "Reset!"; + goto L_Close; + +L_Reset: + set TUT_var, 0; + set @tutorial_tmp, 0; + set STARTAREA, (STARTAREA & ~(NIBBLE_0_MASK) | (@tutorial_tmp << NIBBLE_0_SHIFT)); + set STARTAREA, STARTAREA &~ $@SpokeToKaan; + mes "Reset!"; + goto L_Close; + +L_Close: + close; + +OnInit: + if(!debug) + disablenpc "TutDebug"; + end; +} +029-1.gat,32,99,0|script|#tutorialoutside|45,0,0 +{ + callfunc "TutorialState"; + if (@tutorial >= 8) + goto L_Warp; + goto L_ResetTutorial; + +L_ResetTutorial: + set @tutorial_tmp, 8; + callfunc "SetTutorialMask"; + goto L_Warp; + +L_Warp: + warp "029-2.gat", 114, 92; + end; +} |