From e57a4d8a3292a90e580f98b2d2d77ff8e3048b5e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 13 Jan 2021 05:14:33 -0300 Subject: Fix some bad code in Rakinorf (i.e. add extra checks) --- npc/012-2/rakinorf.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'npc/012-2') diff --git a/npc/012-2/rakinorf.txt b/npc/012-2/rakinorf.txt index c078a853b..21f34a2b5 100644 --- a/npc/012-2/rakinorf.txt +++ b/npc/012-2/rakinorf.txt @@ -30,6 +30,9 @@ close; L_Menu: + if (!(.@q & .questID)) + close; + mesq l("I will reward you for 7 @@.", getitemlink(.itemID)); mes ""; menu @@ -38,9 +41,12 @@ L_Menu: l("No, thanks."),L_Close; L_Finish: - delitem .itemID, 7; - getitem StrangeCoin, rand(2,4); .@q=getq(SQuest_Sponsor); + if (!(.@q & .questID)) + close; + + delitem .itemID, 7; + getitem StrangeCoin, rand2(2,4); setq1 SQuest_Sponsor, .@q | .questID; mes ""; mesn; -- cgit v1.2.3-60-g2f50