diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-06-04 21:27:22 +0200 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-06-04 21:27:22 +0200 |
commit | ffdd6b6345e32983c86041d3e1cf6f3252e2bba0 (patch) | |
tree | 1cdcf3c143b2683f225c525ebef3d3f5dc54133d /npc/042-2 | |
parent | d087c8b0aec29469244fa2e5c4b997a2c4e41d2d (diff) | |
download | serverdata-ffdd6b6345e32983c86041d3e1cf6f3252e2bba0.tar.gz serverdata-ffdd6b6345e32983c86041d3e1cf6f3252e2bba0.tar.bz2 serverdata-ffdd6b6345e32983c86041d3e1cf6f3252e2bba0.tar.xz serverdata-ffdd6b6345e32983c86041d3e1cf6f3252e2bba0.zip |
using flag to indicate the tutorial is done and adding behaviour according to that to all tut-npcs
Diffstat (limited to 'npc/042-2')
-rw-r--r-- | npc/042-2/sorfina.txt | 15 | ||||
-rw-r--r-- | npc/042-2/tanisha.txt | 6 |
2 files changed, 18 insertions, 3 deletions
diff --git a/npc/042-2/sorfina.txt b/npc/042-2/sorfina.txt index ab5dd9f5..67ae1a87 100644 --- a/npc/042-2/sorfina.txt +++ b/npc/042-2/sorfina.txt @@ -1,5 +1,6 @@ 042-2.gat,28,26,0 script Sorfina 154,{ + if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done; if (sorfina == 2) goto L_Again; if (sorfina == 1) goto L_Clothes; @@ -194,7 +195,16 @@ L_SkipTut: "Yeah, but thanks for the offer. Bye",-; mes "[Sorfina]"; mes "\"If you think so. Good luck.\""; - //TODO:set flag + set hasan, 0; + set kaan, 0; + set sorfina, 0; + set tanisha, 0; + set FLAGS, FLAGS | FLAG_TUTORIAL_DONE; + close; + +L_Tut_Done: + mes "[Sorfina]"; + mes "\"Welcome. Please make yourself at home.\""; close; L_Close: @@ -202,8 +212,7 @@ L_Close: } 042-2.gat,45,31,0 script #DoorOut 127,2,2,{ -//TODO: check also flag for having finished the tutorial - if (sorfina < 2) goto L_Block; + if ((sorfina < 2) && !(FLAGS & FLAG_TUTORIAL_DONE)) goto L_Block; warp "042-1.gat", 62, 63; end; L_Block: diff --git a/npc/042-2/tanisha.txt b/npc/042-2/tanisha.txt index 8db46057..9ede30e3 100644 --- a/npc/042-2/tanisha.txt +++ b/npc/042-2/tanisha.txt @@ -1,6 +1,7 @@ //TODO: remove knife from beginning items 042-2.gat,37,90,0 script Tanisha 114,{ + if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done; if (tanisha == 3) goto L_Again; if (tanisha == 2) goto L_Stats; if (tanisha == 1) goto L_Maggots; @@ -156,6 +157,11 @@ L_Blocked: mes "\"Oh, someone else is already in there. Let's wait a short while.\""; close; +L_Tut_Done: + mes "[Tanisha]"; + mes "\"This yucky maggots! They're eating our goods!\""; + close; + OnTimer1000: setnpctimer 0; if (getareausers("042-2.gat", 29, 85, 36, 90) < 1) |