Issue information

Issue ID
#7172
Status
New
Severity
None
Started
Beret
Apr 18, 2013 18:25
Last Post
bgamez23
Apr 19, 2013 17:21
Confirmation
N/A

Beret - Apr 18, 2013 18:25

When I buy some items my cash value is changed to 0, I have to close and open the cash button again.


Also as discussed in the topic, leave cash shop to work the same aegis.
[code=:0] cashshop { New { // New category Item_name,79; Item_name,79; } Other { // Other category Item_name,80; Item_name,80; } } [/code]

Ryuuzaki - Apr 19, 2013 12:59

In clif.c
[code=:0] void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) { replace below: WFIFOW(fd, 0) = 0x845; WFIFOL(fd, 2) = sd->cashPoints;/* kafra for now disabled until we know how to apply it */ WFIFOL(fd, 6) = sd->kafraPoints; WFIFOSET(fd, 10); } [/code]
scroll a bit down till you see:[code=:0] void clif_parse_CashShopBuy(int fd, struct map_session_data *sd) { Scroll down till function end: WFIFOHEAD(fd, 16); WFIFOW(fd, 0) = 0x849; WFIFOL(fd, 2) = id; WFIFOW(fd, 6) = result;/* result */ WFIFOL(fd, 8) = sd->cashPoints;/* current cash point */ WFIFOL(fd, 12) = sd->kafraPoints;/* no idea (kafra cash?) */ WFIFOSET(fd, 16); [/code]

This will send the proper packet structure and you won't have to close / open the shop all time.

bgamez23 - Apr 19, 2013 17:21

[quote name="Beret" timestamp="1366309508"]
When I buy some items my cash value is changed to 0, I have to close and open the cash button again.


Also as discussed in the topic, leave cash shop to work the same aegis.[code=auto:0] cashshop { New { // New category Item_name,79; Item_name,79; } Other { // Other category Item_name,80; Item_name,80; } } [/code][/quote]
how to reproduce?i try to buy to the cash shop but it's not changing value to 0. i'm using the latest revision.