summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-13 05:14:33 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-13 05:14:33 -0300
commite57a4d8a3292a90e580f98b2d2d77ff8e3048b5e (patch)
treea4f1b251e6488599457998043b0e4732f269ecab
parent74662212b3887dfb48fb134ba40a3ac4e37699e0 (diff)
downloadserverdata-e57a4d8a3292a90e580f98b2d2d77ff8e3048b5e.tar.gz
serverdata-e57a4d8a3292a90e580f98b2d2d77ff8e3048b5e.tar.bz2
serverdata-e57a4d8a3292a90e580f98b2d2d77ff8e3048b5e.tar.xz
serverdata-e57a4d8a3292a90e580f98b2d2d77ff8e3048b5e.zip
Fix some bad code in Rakinorf (i.e. add extra checks)
-rw-r--r--npc/012-2/rakinorf.txt10
1 files changed, 8 insertions, 2 deletions
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;