Issue information

Issue ID
#1765
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jun 24, 2008 14:55
Last Post
Ind
Jul 29, 2013 17:04
Confirmation
N/A

Hercules Elf Bot - Jun 24, 2008 14:55

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

As I read the changeset of 12753 and try it out, I found I still couldn't purchase an item worthing 150 with 50 points and 100 cash.
Then I make this change and then it works.

CODE
    if( (sd->kafraPoints < points) || (sd->cashPoints < prize - points) ) {
        if ( sd->kafraPoints + sd->cashPoints < prize )
            return 6;            
        else
            points = prize - sd->cashPoints;
    }


This is because whatever number you input, as long as it's less than 100, the client take it as 0.
I don't know if this fix is needed or not. Maybe this is the way it's supposed to be.
Thus, return 6 seems an extra check and will never happen unless someone hacks.

Ind - Jul 29, 2013 17:04

This has since been redesigned