Issue information

Issue ID
#1103
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 3, 2008 19:01
Last Post
Hercules Elf Bot
Mar 3, 2008 19:01
Confirmation
N/A

Hercules Elf Bot - Mar 3, 2008 19:01

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

cities/lighthalzen NPC Lucius#zen5, lines 588 and following

CODE
            if (Zeny < .@input) {
                mes "[Lucius]";
                mes "Still, I'm just a little";
                mes "disappointed. An adventurer";
                mes "like you should be donating";
                mes "as much as you possibly can...";
                close;
            }
            set zeny,zeny-.@input;
            set $donatedzeny,$donatedzeny + .@input;
            mes "[Lucius]";
            mes "So far, I've received";
            mes "a total of " + $donatedzeny + " zeny in";
            mes "donations. I'm glad to see";
            mes "that there are still kind and";
            mes "generous people in the world.";
            close;
            if ($donatedzeny < 260000) {
                mes "[Lucius]";
                mes "This should be enough";
                mes "to send to the Poor Relief";
                mes "Organization. Please accept";
                mes "this small gift as a token of";
                mes "my gratitude, adventurer. Bless";
                mes "you, youngster and take care.";
                set $donatedzeny,0;
                getitem 603,1; //Old_Blue_Box
                getitem 12016,1; //Speed_Up_Potion
                close;
            }


The condition "if ($donatedzeny < 260000) {" is never tested, so that $donatedzeny can grow up to 260000 while nothing happens with the NPC.