From fff97f21f78ded9a3a2e1b904075d4b645c775c0 Mon Sep 17 00:00:00 2001 From: skyleo Date: Mon, 8 Aug 2016 16:15:45 +0200 Subject: Fixed a variable name typo that Kafra Headquarter's Potato Trader always enter you into the lottery. And fixed a scope typo that broke the correct display of a menu. --- npc/cities/aldebaran.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'npc/cities/aldebaran.txt') diff --git a/npc/cities/aldebaran.txt b/npc/cities/aldebaran.txt index 7cd989574..e7ebe9141 100644 --- a/npc/cities/aldebaran.txt +++ b/npc/cities/aldebaran.txt @@ -36,7 +36,7 @@ //================= Description =========================================== //= Aldebaran Town NPCs //================= Current Version ======================================= -//= 2.3 +//= 2.4 //========================================================================= //== Aldebaran ============================================= @@ -1098,7 +1098,7 @@ aldeba_in,79,161,6 script Kafra#04 4_F_KAFRA3,{ .@list$ = ""; .@numitemchoices = 0; for (.@i = 0; .@i < getarraysize(.@choices) - 3; .@i += 3) { // Skip the last entry as it's handled separately - .@list$ += .@choices[i] + "- " + getitemname(.@choices[.@i+1]) + " " + .@choices[.@i+2] + " ea:"; + .@list$ += .@choices[.@i] + "- " + getitemname(.@choices[.@i+1]) + " " + .@choices[.@i+2] + " ea:"; ++.@numitemchoices; } .@list$ += .@choices[.@i] + "- " + .@ordinal$ + " Lottery Chance!:" + .@changepage$ +":Cancel"; @@ -1111,7 +1111,7 @@ aldeba_in,79,161,6 script Kafra#04 4_F_KAFRA3,{ continue; } RESRVPTS -= .@choices[.@chosen * 3]; - if (.@chosen < .@numitemchances) { + if (.@chosen < .@numitemchoices) { // Item mes "[Kafra]"; mes "Here you are."; -- cgit v1.2.3-60-g2f50