Issue information

Issue ID
#1167
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 12, 2008 9:58
Last Post
Hercules Elf Bot
Mar 12, 2008 9:58
Confirmation
N/A

Hercules Elf Bot - Mar 12, 2008 9:58

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

http://www.eathena.ws/board/index.php?s=&a...st&p=998894


at the script_commands.txt tells like this
QUOTE(eAthena\doc\script_commands.txt)
Since trunk r12264 you can alternatively use "cashshop" in place of "shop"
to use the Cash Shop interface, allowing you to buy items with special points
(Currently stored as account vars in global_reg #CASHPOINTS and #FREEPOINTS.)
This type of shop will not allow you to sell items at it, you may only
purchase items here. The layout used to define sale items still count, and
"<price>" refers to how many points will be spent purchasing the them.

I tested both #CASHPOINTS and #FREEPOINTS both not working

then I try to read the source and it tells
QUOTE(eAthena\src\map\clif.c)
WFIFOL(fd,4) = sd->cashPoints; // Cash Points
WFIFOL(fd,8) = sd->kafraPoints; // Kafra Points

which extend further to
QUOTE(eAthena\src\map\pc.c)
// Cash shop
sd->cashPoints = pc_readaccountreg(sd,"#CASHPOINTS");
sd->kafraPoints = pc_readaccountreg(sd,"#KAFRAPOINTS");

I wonder how the #FREEPOINTS variable pop out at the script_commands.txt ... (IMG:style_emoticons/default/sleep.gif)


currently I have tested this new feature
it seems like only #kafrapoints variable is working

I still dunno what #cashpoints does
ok #cashpoint can be increase via @cash atcommand
why this variable can't read directly with account variable ?
but have to do through atcommand ?

CODE
    dispbottom #CASHPOINTS;
    dispbottom #KAFRAPOINTS;
#kafrapoints can be read but #cashpoints cannot be read

also, I dunno how the official does
but the documentation is definitely wrong

This post has been edited by ~AnnieRuru~: Mar 12 2008, 03:58 AM