From d78528098d1e519cc4827ae34929c66f30a0a57e Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Mon, 14 Feb 2011 13:08:58 +0100 Subject: bugfix for ian the trainer Ok, you get the graduation cap now again. --- db/const.txt | 1 + npc/001-1_Tulimshar/guide.txt | 15 ++++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/db/const.txt b/db/const.txt index f51f1dfe..53ad97bd 100644 --- a/db/const.txt +++ b/db/const.txt @@ -254,6 +254,7 @@ MFLAG_KNOWS_UNFOCUS_RECIPE 65536 // Luca told me about how to unfocus FLAG_HAS_BOWLER_BURNSDAY 1 // every year's poem at burns day, shannon gives you a bowler hat FLAG_OPENED_UNDERGROUND 2 // this flag is a replacement for variable Open_Underground_Palace_Barrier, which was used only as bool FLAG_GOT_NAEM_GLOVES 4 // this replaces Naem_Quest_Done, which was used as a bool variable +FLAG_GOT_GRADUATIONCAP 8 // this is a bit which was to be found in Tut_var second bit DOCK_tulimshar 1 DOCK_hurnscald 2 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"; -- cgit v1.2.3-60-g2f50