Issue information

Issue ID
#2427
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Nov 8, 2008 13:54
Last Post
Hercules Elf Bot
Mar 5, 2012 9:21
Confirmation
N/A

Hercules Elf Bot - Nov 8, 2008 13:54

Originally posted by [b]akd[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2427

Here is a small bug on the mercenary_rent.txt script

On the
CODE
prontera,30,337,4    script    Mercenary Merchant#Spear::MercMerchant    700,{


In the switch we can find this:
CODE
case 3:
        mes "[Mercenary Goods Merchant]";
        mes "Mercenary Concentration";
        mes "Potions each cost 560 zeny.";
        mes "How many would you like?";
        next;
        input .@input; //,0,10000;
        callfunc "F_PurchaseMercItem",12241,560;


Because of this, you have to enter twice the number of concentration potion you want to purchase.
It asks again here

CODE
function    script    F_PurchaseMercItem    {
    input .@input;
    if( .@input == 0 )


You just need to remove the first input call.

CODE
case 3:
        mes "[Mercenary Goods Merchant]";
        mes "Mercenary Concentration";
        mes "Potions each cost 560 zeny.";
        mes "How many would you like?";
        next;
-        input .@input; //,0,10000;
        callfunc "F_PurchaseMercItem",12241,560;