summaryrefslogtreecommitdiff
path: root/world/map/npc/022-1/tutorial.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2013-01-06 19:02:44 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2013-01-06 19:03:02 +0100
commit2f660ca694c0182353d2e0663e240a32f91135b8 (patch)
treeaa025f1f2e9c248c71c3fa502212d90dc138477a /world/map/npc/022-1/tutorial.txt
parentea1ee652e8727640121e75b49936b4c484de3016 (diff)
downloadserverdata-2f660ca694c0182353d2e0663e240a32f91135b8.tar.gz
serverdata-2f660ca694c0182353d2e0663e240a32f91135b8.tar.bz2
serverdata-2f660ca694c0182353d2e0663e240a32f91135b8.tar.xz
serverdata-2f660ca694c0182353d2e0663e240a32f91135b8.zip
Tutorial: put setting the completed flag and resetting the used variables into a separate function.
Diffstat (limited to 'world/map/npc/022-1/tutorial.txt')
-rw-r--r--world/map/npc/022-1/tutorial.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/world/map/npc/022-1/tutorial.txt b/world/map/npc/022-1/tutorial.txt
index 1aafafdb..23a924f1 100644
--- a/world/map/npc/022-1/tutorial.txt
+++ b/world/map/npc/022-1/tutorial.txt
@@ -3,11 +3,16 @@
// if you enter the tutorial area from outside, it is set to be already done
022-1.gat,19,37,0|script|#tutorial|45,0,2{
- set FLAGS, FLAGS | FLAG_TUTORIAL_DONE;
+ callfunc "TutorialCompleted";
+ warp "042-1.gat", 95, 69;
+ end;
+}
+
+function|script|TutorialCompleted|{
set hasan, 0;
set kaan, 0;
set sorfina, 0;
set tanisha, 0;
- warp "042-1.gat", 95, 69;
- end;
+ set FLAGS, FLAGS | FLAG_TUTORIAL_DONE;
+ return;
}