summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskyleo <leo-pflug@web.de>2016-08-08 16:15:45 +0200
committerskyleo <leo-pflug@web.de>2016-08-08 16:15:45 +0200
commitfff97f21f78ded9a3a2e1b904075d4b645c775c0 (patch)
tree3c0e28e672b3bdc73cd162483acb8915164a9385
parent06911c55eb6a4fdecc2102541cb7cad51ada4a64 (diff)
downloadhercules-fff97f21f78ded9a3a2e1b904075d4b645c775c0.tar.gz
hercules-fff97f21f78ded9a3a2e1b904075d4b645c775c0.tar.bz2
hercules-fff97f21f78ded9a3a2e1b904075d4b645c775c0.tar.xz
hercules-fff97f21f78ded9a3a2e1b904075d4b645c775c0.zip
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.
-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.";