summaryrefslogtreecommitdiff
path: root/world/map/npc/022-1/tutorial.txt
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2014-04-16 13:09:51 -0500
committerwushin <pasekei@gmail.com>2014-04-16 13:09:51 -0500
commite04e9eb0065caa6adf12ef36efbd3c5a3c5c3652 (patch)
treec57506b8665c9acc305bc6c85064bb4a7ab1fbc5 /world/map/npc/022-1/tutorial.txt
parent566297bd2b1467cf23e88bb2c0ad210b7d5a2ffa (diff)
parentc84e27e10b0f6ed56ae0ee1b0ec4fe7e9d0fd507 (diff)
downloadserverdata-e04e9eb0065caa6adf12ef36efbd3c5a3c5c3652.tar.gz
serverdata-e04e9eb0065caa6adf12ef36efbd3c5a3c5c3652.tar.bz2
serverdata-e04e9eb0065caa6adf12ef36efbd3c5a3c5c3652.tar.xz
serverdata-e04e9eb0065caa6adf12ef36efbd3c5a3c5c3652.zip
Merge pull request #79 from wushin/Tile-Fixes-Map-Travelv2014.4.16
Tile map fixes sprite travel
Diffstat (limited to 'world/map/npc/022-1/tutorial.txt')
-rw-r--r--world/map/npc/022-1/tutorial.txt41
1 files changed, 35 insertions, 6 deletions
diff --git a/world/map/npc/022-1/tutorial.txt b/world/map/npc/022-1/tutorial.txt
index b8fcf2c6..93f1700a 100644
--- a/world/map/npc/022-1/tutorial.txt
+++ b/world/map/npc/022-1/tutorial.txt
@@ -1,20 +1,49 @@
// This file is part of the Tutorial
// Author: Jenalya
// if you enter the tutorial area from outside, it is set to be already done
+// Tutorial
+// Nibble 0
+// 1-4: Sorfina
-022-1.gat,19,37,0|script|#tutorial-outside1|45,0,2
+022-1.gat,46,82,0|script|#tutorial-outside1|45,2,1
{
callfunc "TutorialCompleted";
- warp "042-1.gat", 95, 69;
+ warp "042-1.gat", 115, 85;
end;
}
+-|script|#TutorialConfig|-1,
+{
+ end;
+
+OnInit:
+ set $@ScorpionFighter, 0;
+ set $@ScorpionTimer, 0;
+ set $@ScorpDeath, 0;
+ set $@SorfinaHasanBit, (1 << 4);
+ set $@TanishaHasanBit, (1 << 5);
+ end;
+}
+
+function|script|TutorialState|,
+{
+ callfunc "ClearVariables";
+ set @tutorial, ((TUTORIAL & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT);
+ set @sorfina_hasan, (TUTORIAL & $@SorfinaHasanBit);
+ set @tanisha_hasan, (TUTORIAL & $@TanishaHasanBit);
+ return;
+}
+
+function|script|SetTutorialMask|,
+{
+ set TUTORIAL, (TUTORIAL & ~(NIBBLE_0_MASK) | (@tutorial_tmp << NIBBLE_0_SHIFT));
+ set @tutorial_tmp, 0;
+ return;
+}
+
function|script|TutorialCompleted|,
{
- set hasan, 0;
- set kaan, 0;
- set sorfina, 0;
- set tanisha, 0;
set FLAGS, FLAGS | FLAG_TUTORIAL_DONE;
+ callfunc "ClearVariables";
return;
}