Jump to content

Kafrapoints Make Up For Cash

open

Inkfish
2008-06-24 14:55:00
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.

Akkarin
2014-11-07 01:13:25
I wasn't aware that Kafra Points could be used in lieu of missing Cash Points??

I've just had a look on iRO's wiki and read up on the difference: http://irowiki.org/wiki/Kafra_Shop

Kafra Points are awarded in-game by the Kafras themselves, Cash Points are.. exchanged with IRL money. They're not the same.

As i can't find in the code where that particular snippet is from, i can't do anything else with this report. Also, the changeset mentioned above has nothing to do with Kafra/Cash Points >_> http://trac.rathena.org/changeset/12753/rathena
×
×
  • Create New...