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/042-1/hasan.txt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'world/map/npc/042-1/hasan.txt') diff --git a/world/map/npc/042-1/hasan.txt b/world/map/npc/042-1/hasan.txt index bb4e1578..70b3a430 100644 --- a/world/map/npc/042-1/hasan.txt +++ b/world/map/npc/042-1/hasan.txt @@ -73,11 +73,7 @@ L_Pay: mes "He grins gloatingly."; mes "[Hasan]"; mes "\"Very well. You may pass.\""; - set hasan, 0; - set kaan, 0; - set sorfina, 0; - set tanisha, 0; - set FLAGS, FLAGS | FLAG_TUTORIAL_DONE; + callfunc "TutorialCompleted"; goto L_Close; L_Cheat: @@ -116,12 +112,8 @@ L_Thank: mes "\"Let me tell you a secret: Cool persons are allowed to pass for free."; mes "And you can have my Sharp Knife.\""; getitem "SharpKnife", 1; + callfunc "TutorialCompleted"; next; - set hasan, 0; - set kaan, 0; - set sorfina, 0; - set tanisha, 0; - set FLAGS, FLAGS | FLAG_TUTORIAL_DONE; mes "\"You want to go to the bazaar, right? Shall I tell you how to get there?\""; next; menu -- cgit v1.2.3-60-g2f50