|
@@ -3,7 +3,7 @@
|
|
//===== By: ==================================================
|
|
//===== By: ==================================================
|
|
//= eAthena Dev Team
|
|
//= eAthena Dev Team
|
|
//===== Current Version: =====================================
|
|
//===== Current Version: =====================================
|
|
-//= 1.4
|
|
|
|
|
|
+//= 1.3b
|
|
//===== Compatible With: =====================================
|
|
//===== Compatible With: =====================================
|
|
//= eAthena SVN
|
|
//= eAthena SVN
|
|
//===== Description: =========================================
|
|
//===== Description: =========================================
|
|
@@ -14,7 +14,7 @@
|
|
//= 1.2 Rescripted to Aegis 10.3 standard. [L0ne_W0lf]
|
|
//= 1.2 Rescripted to Aegis 10.3 standard. [L0ne_W0lf]
|
|
//= 1.2b Fixed typos in variable names [ultramage]
|
|
//= 1.2b Fixed typos in variable names [ultramage]
|
|
//= 1.3 Made the checks more dynamic [ultramage]
|
|
//= 1.3 Made the checks more dynamic [ultramage]
|
|
-//= 1.4 Fixed offset in getarraysize. (counting starts at 1.) [L0ne_W0lf]
|
|
|
|
|
|
+//= 1.3b Fixed incorrect checking loop structure [ultramage]
|
|
//============================================================
|
|
//============================================================
|
|
|
|
|
|
morocc_in,146,99,3 script Java Dullihan 58,{
|
|
morocc_in,146,99,3 script Java Dullihan 58,{
|
|
@@ -168,9 +168,12 @@ S_MakeDye:
|
|
}
|
|
}
|
|
next;
|
|
next;
|
|
if (select("Make Dyestuffs:Cancel") == 1) {
|
|
if (select("Make Dyestuffs:Cancel") == 1) {
|
|
- set .@size, (getarraysize(.@item)-1);
|
|
|
|
|
|
+ set .@size, getarraysize(.@item);
|
|
|
|
+ mes "Size is "+.@size+" entries!";
|
|
// check requirements
|
|
// check requirements
|
|
- for( set .@i,0 ; .@i < .@size && countitem(.@item[.@i]) >= .@count[.@i] ; set .@i,.@i+1 );
|
|
|
|
|
|
+ for( set .@i,0 ; .@i < .@size ; set .@i,.@i+1 )
|
|
|
|
+ if( countitem(.@item[.@i]) < .@count[.@i] )
|
|
|
|
+ break;
|
|
if( .@i < .@size || Zeny < .@cost ) {
|
|
if( .@i < .@size || Zeny < .@cost ) {
|
|
mes "[Dye Maker Java Dullihan]";
|
|
mes "[Dye Maker Java Dullihan]";
|
|
mes "Hmmm. Not enough...";
|
|
mes "Hmmm. Not enough...";
|