diff options
Diffstat (limited to 'npc/merchants/dye_maker.txt')
-rw-r--r-- | npc/merchants/dye_maker.txt | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/npc/merchants/dye_maker.txt b/npc/merchants/dye_maker.txt index b8ca80d06..bca4ef276 100644 --- a/npc/merchants/dye_maker.txt +++ b/npc/merchants/dye_maker.txt @@ -105,57 +105,57 @@ S_MakeDye: mes "Mmm... I need 30 Red Herbs, 1 Counteragent, and 1 Empty Bottle to make Red Dyestuffs. The fee is only 3000 zeny to make it."; setarray .@item[0], 507, 973, 713; setarray .@count[0], 30, 1, 1; - set .@cost,3000; - set .@dyestuff,975; + .@cost = 3000; + .@dyestuff = 975; break; case 2: mes "Mmm... I need 30 Yellow Herbs, 1 Couneragent, and 1 Empty Bottle to make Lemon Dyestuffs. The fee is only 3000 zeny to make it."; setarray .@item[0], 508, 973, 713; setarray .@count[0], 30, 1, 1; - set .@cost,3000; - set .@dyestuff,976; + .@cost = 3000; + .@dyestuff = 976; break; case 3: mes "Mmm... I need 20 Blue Herbs, 1 Counteragent, and 1 Empty Bottle to make Cobaltblue Dyestuff. It's hard to use the Blue Herb, so the fee is going to be 3500 zeny."; setarray .@item[0], 510, 973, 713; setarray .@count[0], 20, 1, 1; - set .@cost,3500; - set .@dyestuff,978; + .@cost = 3500; + .@dyestuff = 978; break; case 4: mes "Mmm... I need 5 Blue Herbs, 20 Green Herbs, 20 Yellow Herbs, 1 Counteragent, 1 Mixture, and 1 Empty Bottle to make Darkgreen Dyestuffs. Don't get all of the materials confused. The fee is only 5000 zeny."; setarray .@item[0], 510, 511, 508, 974, 973, 713; setarray .@count[0], 5, 20, 20, 1, 1, 1; - set .@cost,5000; - set .@dyestuff,979; + .@cost = 5000; + .@dyestuff = 979; break; case 5: mes "Mmm... I need 20 Red Herbs, 20 Yellow Herbs, 1 Counteragent, 1 Mixture, and 1 Empty Bottle to make Orange Dyestuff. The fee is going to be 5000 zeny."; setarray .@item[0], 507, 508, 974, 973, 713; setarray .@count[0], 20, 20, 1, 1, 1; - set .@cost,5000; - set .@dyestuff,980; + .@cost = 5000; + .@dyestuff = 980; break; case 6: mes "Mmm... I need 10 Blue Herbs, 30 Red Herbs, 1 Counteragent, 1 Mixture, and 1 Empty Bottle to make Violet Dyestuffs. The fee will be 5000 zeny."; setarray .@item[0], 510, 507, 974, 973, 713; setarray .@count[0], 10, 30, 1, 1, 1; - set .@cost,5000; - set .@dyestuff,981; + .@cost = 5000; + .@dyestuff = 981; break; case 7: mes "Mmm... I need 30 White Herbs, 1 Counteragent, and 1 Empty bottle to make White Dyestuffs. The fee will be 3000 zeny."; setarray .@item[0], 509, 973, 713; setarray .@count[0], 30, 1, 1; - set .@cost,3000; - set .@dyestuff,982; + .@cost = 3000; + .@dyestuff = 982; break; case 8: mes "Mmm... I need 30 of each Red, Yellow, and Green Herb, 5 Blue Herbs, 1 Counteragent, 1 Mixture, and 1 Empty Bottle. The process takes longer and more effort than the others, so it is going to be 7000 zeny."; setarray .@item[0], 507, 508, 511, 510, 974, 973, 713; setarray .@count[0], 30, 30, 30, 5, 1, 1, 1; - set .@cost,7000; - set .@dyestuff,983; + .@cost = 7000; + .@dyestuff = 983; break; } next; @@ -168,9 +168,9 @@ S_MakeDye: } next; if (select("Make Dyestuffs:Cancel") == 1) { - set .@size, getarraysize(.@item); + .@size = getarraysize(.@item); // check requirements - for( set .@i,0 ; .@i < .@size ; set .@i,.@i+1 ) + for (.@i = 0; .@i < .@size; ++.@i) if( countitem(.@item[.@i]) < .@count[.@i] ) break; if( .@i < .@size || Zeny < .@cost ) { @@ -180,7 +180,7 @@ S_MakeDye: close; } // delete items - for (set .@i, 0; .@i < .@size ; set .@i, .@i+1) + for (.@i = 0; .@i < .@size; ++.@i) delitem .@item[.@i], .@count[.@i]; Zeny -= .@cost; // get dyestuff |