summaryrefslogtreecommitdiff
path: root/world/map/npc/021-2/kylian.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2013-01-27 00:09:29 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2013-02-12 23:05:13 +0100
commit93efd4949c5eb7268c8f197fac1f8e6a924b63d3 (patch)
tree66c3b1e59750ce8f3ceeee78bd7f0533d27d8975 /world/map/npc/021-2/kylian.txt
parent55b20f23de4c709398b65e6833b29138e4307e7a (diff)
downloadserverdata-93efd4949c5eb7268c8f197fac1f8e6a924b63d3.tar.gz
serverdata-93efd4949c5eb7268c8f197fac1f8e6a924b63d3.tar.bz2
serverdata-93efd4949c5eb7268c8f197fac1f8e6a924b63d3.tar.xz
serverdata-93efd4949c5eb7268c8f197fac1f8e6a924b63d3.zip
Restructuring the quests saved in TMW_Quest: Convert Bernard and Mikhail to new variables.
The variable was also used in Kylian, so that script needed changes too.
Diffstat (limited to 'world/map/npc/021-2/kylian.txt')
-rw-r--r--world/map/npc/021-2/kylian.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/world/map/npc/021-2/kylian.txt b/world/map/npc/021-2/kylian.txt
index 2f5b903a..737214a5 100644
--- a/world/map/npc/021-2/kylian.txt
+++ b/world/map/npc/021-2/kylian.txt
@@ -70,6 +70,10 @@ OnInit:
set @fun_money, 50;
set @fun_exp, 20;
+ // This NPC previously used the variable TMW_Quest
+ callfunc "ClearVarTMW_Quest";
+ set @bernard, ((QUEST_SouthTulimshar & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT);
+
if (@state == 9) goto L_Done;
if (@KylianNTCasino) goto L_CasinoDone;
if (@state == 8) goto L_DesertHat;
@@ -166,7 +170,7 @@ L_SightSeeing: // @state == 4 and logged out sometime between getting to that st
L_Food: // @state == 5
mes "[Kylian]";
mes "\"While I'm out, I could also get something to eat. Maybe some typical dish for this region. Do you have a good suggestion for that?\"";
- if (TMW_Quest < 4) // didn't yet help Bernard to make his soup
+ if (@bernard < 4) // didn't yet help Bernard to make his soup
goto L_Close;
menu
"Bernard on the bazaar makes a great soup.",-,
@@ -265,6 +269,7 @@ L_Close:
set @fun_money, 0;
set @fun_exp, 0;
set @inventorylist_count, 0;
+ set @bernard, 0;
// NOT set to zero: @KylianNTLicense, @KylianNTSightSeeing and @KylianNTCasino
// those are used to check if the player logged out in the meanwhile
close;