Issue information

Issue ID
#597
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Dec 12, 2007 16:38
Last Post
Hercules Elf Bot
Feb 21, 2012 8:00
Confirmation
N/A

Hercules Elf Bot - Dec 12, 2007 16:38

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

/npc/merchants/old_pharmacist.txt
When making orange potions you see this:
CODE
                        if (countitem(507) < countitem(713)) {
                            set .@max,countitem(507);
                        }
                        if (countitem(508) < countitem(713)) {
                            set .@max,countitem(508);
                        } else {
                            set .@max,countitem(713);
                        }
Now, when you have item 507 = 1 and 508 = 2 and 713 = 3, the max is 2! Yes, and you just need 1 or more item 507.

Need an 'else' there.

This post has been edited by David Boy: Dec 16 2007, 06:08 PM