summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2011-02-14 13:08:58 +0100
committerStefan Beller <stefanbeller@googlemail.com>2011-02-14 13:14:02 +0100
commitd78528098d1e519cc4827ae34929c66f30a0a57e (patch)
tree1686736dd93c940df5cf2bd4b4b3c208ad080840 /npc
parentc3e76f9d8a8962275d490f16d462d8b36061957d (diff)
downloadserverdata-d78528098d1e519cc4827ae34929c66f30a0a57e.tar.gz
serverdata-d78528098d1e519cc4827ae34929c66f30a0a57e.tar.bz2
serverdata-d78528098d1e519cc4827ae34929c66f30a0a57e.tar.xz
serverdata-d78528098d1e519cc4827ae34929c66f30a0a57e.zip
bugfix for ian the trainer
Ok, you get the graduation cap now again.
Diffstat (limited to 'npc')
-rw-r--r--npc/001-1_Tulimshar/guide.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/npc/001-1_Tulimshar/guide.txt b/npc/001-1_Tulimshar/guide.txt
index 8627e18c..d00a2a6f 100644
--- a/npc/001-1_Tulimshar/guide.txt
+++ b/npc/001-1_Tulimshar/guide.txt
@@ -1,7 +1,12 @@
//
001-1.gat,32,27,0 script Ian 102,4,4,{
- if (TUT_var & 1 == 1 && TUT_var & 2 == 0 && BaseLevel >= 10) callsub S_Grad;
+ // This line is only relevant for players, who started before the timestamp was introduced.
+ // Set the graduation cap flag at the right position.
+ // It is a bugfix
+ if ((TUT_var < 4) && (TUT_var & 2)) set FLAGS, FLAGS|FLAG_GOT_GRADUATIONCAP;
+
+ if ((TUT_var != 0) && !(FLAGS & FLAG_GOT_GRADUATIONCAP) && BaseLevel >= 10) callsub S_Grad;
mes "[Ian the Guide]";
mes "\"Would you like to know about something?\"";
next;
@@ -42,7 +47,7 @@ L_Items:
mes "After use, they will disappear from your inventory.\"";
next;
mes "[Ian the Guide]";
- mes "\"Equipment items like Armors, Weapons, Accessories";
+ mes "\"Equipment items like Armors, Weapons, Accessories";
mes "can be equipped for fashionable purposes or to raise your status.\"";
next;
mes "[Ian the Guide]";
@@ -146,7 +151,7 @@ L_Laws:
mes "\"The constable can help you with them.\"";
next;
goto L_Menu_A;
-
+
L_Know:
mes "[Ian the Guide]";
mes "\"Lost? Confused? Want to know why you can't get past a quest, overcome an NPC or find an item? Check http://wiki.themanaworld.org for player hints, walkthroughs, item lists and more!\"";
@@ -161,7 +166,7 @@ S_Grad:
mes "\"Hey, you've been doing good, let me give you this.\"";
getitem "GraduationCap", 1;
- set TUT_var, TUT_var | 2;
+ set FLAGS, FLAGS | FLAG_GOT_GRADUATIONCAP;
next;
return;
@@ -171,7 +176,7 @@ L_TooMany:
mes "\"I wanted to give you something, but you don't have room for it.\"";
next;
return;
-
+
OnTouch:
if (TUT_var != 0) close;
callfunc "GameRules";