summaryrefslogtreecommitdiff
path: root/npc/cities
diff options
context:
space:
mode:
authorDastgir <dastgir@users.noreply.github.com>2016-08-09 06:35:31 +0530
committerGitHub <noreply@github.com>2016-08-09 06:35:31 +0530
commit2731ce5374e14db47691e1b3f7d00773369de835 (patch)
treea9777683fd30adaeea655d2447f2b7eca23e9bfa /npc/cities
parent6f3629033c3879197b1ef0cff3dea4c7f909fe22 (diff)
parentfff97f21f78ded9a3a2e1b904075d4b645c775c0 (diff)
downloadhercules-2731ce5374e14db47691e1b3f7d00773369de835.tar.gz
hercules-2731ce5374e14db47691e1b3f7d00773369de835.tar.bz2
hercules-2731ce5374e14db47691e1b3f7d00773369de835.tar.xz
hercules-2731ce5374e14db47691e1b3f7d00773369de835.zip
Merge pull request #1392 from skyleo/script_fixes
Fixes to Doctor Quest, Crazy Uproar Quest, Kafra HQ's Potato Trader
Diffstat (limited to 'npc/cities')
-rw-r--r--npc/cities/aldebaran.txt6
1 files changed, 3 insertions, 3 deletions
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.";