From 62cf14da16023625773c43d215975766d86a1b9a Mon Sep 17 00:00:00 2001 From: coffee Date: Sat, 10 Sep 2011 11:26:14 -0300 Subject: Fixes a bug in npc omar (goto non existent label) and set the values to zero. --- world/map/npc/001-2/omar.txt | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'world/map') diff --git a/world/map/npc/001-2/omar.txt b/world/map/npc/001-2/omar.txt index 5e786d83..c541fce6 100644 --- a/world/map/npc/001-2/omar.txt +++ b/world/map/npc/001-2/omar.txt @@ -155,6 +155,20 @@ L_cured_elanore: callsub S_update_var; goto L_Close; +L_Close: + set @Q_STATUS_KNOWS_MOPOX, 0; + set @Q_STATUS_MADE_MOPOX, 0; + set @Q_STATUS_DIDNT_DRINK, 0; + set @Q_STATUS_WANTS_CHOCOCAKE, 0; + set @Q_STATUS_WANTS_ORANGECUPCAKE, 0; + set @Q_STATUS_COMPLETED, 0; + set @Q_STATUS_COMPLETED_ELANORE, 0; + set @Q_STATUS_COMPLETED_NOELANORE, 0; + set @Q_STATUS_COMPLETED_POST_ELANORE, 0; + set @Q_status, 0; + close; + + S_update_var: set QUEST_MAGIC2, (QUEST_MAGIC2 & ~(NIBBLE_3_MASK) | (@Q_status << NIBBLE_3_SHIFT)); return; @@ -294,24 +308,14 @@ L_cured: goto L_Close; L_Close: - set @Q_STATUS_KNOWS_MOPOX, 1; - set @Q_STATUS_MADE_MOPOX, 2; - set @Q_STATUS_DIDNT_DRINK, 3; - set @Q_STATUS_WANTS_CHOCOCAKE, 4; - set @Q_STATUS_WANTS_ORANGECUPCAKE, 5; - set @Q_STATUS_COMPLETED, 6; - set @Q_STATUS_COMPLETED_ELANORE, 7; - set @Q_STATUS_COMPLETED_NOELANORE, 8; - set @Q_STATUS_COMPLETED_POST_ELANORE, 9; - set @Q_kadiya_status, 0; set @Q_status, 0; set @Q_MASK, 0; set @Q_SHIFT, 0; - set @M_NAME, 1; - set @M_CANDY, 2; - set @M_POTION, 3; - set @M_CHOCOCAKE, 4; - set @M_CUPCAKE, 5; + set @M_NAME, 0; + set @M_CANDY, 0; + set @M_POTION, 0; + set @M_CHOCOCAKE, 0; + set @M_CUPCAKE, 0; set @choice, 0; set @choices_nr, 0; cleararray @choice_idx[0], 0, 7; -- cgit v1.2.3-70-g09d2