From 2f660ca694c0182353d2e0663e240a32f91135b8 Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Sun, 6 Jan 2013 19:02:44 +0100 Subject: Tutorial: put setting the completed flag and resetting the used variables into a separate function. --- world/map/npc/022-1/tutorial.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'world/map/npc/022-1') 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; } -- cgit v1.2.3-60-g2f50