diff options
author | shennetsind <ind@henn.et> | 2013-10-25 12:27:34 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-25 12:27:34 -0200 |
commit | a2405882a4123d6a11d24e895b40148dc7cb455e (patch) | |
tree | d59518bedb632136115dabf218933f73c2e92350 /src/map/clif.c | |
parent | bf27a9e0cf1bfe9be298c4191010ba6876457d64 (diff) | |
download | hercules-a2405882a4123d6a11d24e895b40148dc7cb455e.tar.gz hercules-a2405882a4123d6a11d24e895b40148dc7cb455e.tar.bz2 hercules-a2405882a4123d6a11d24e895b40148dc7cb455e.tar.xz hercules-a2405882a4123d6a11d24e895b40148dc7cb455e.zip |
test
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index e47bd2bf4..4b8baf401 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17402,6 +17402,12 @@ void __attribute__ ((unused)) clif_parse_dull(int fd,struct map_session_data *sd return; } void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) { + + if( map->list[sd->bl.m].flag.nocashshop ) { + clif->colormes(fd,COLOR_RED,msg_txt(1489)); //Cash Shop is disabled in this map + return; + } + WFIFOHEAD(fd, 10); WFIFOW(fd, 0) = 0x845; WFIFOL(fd, 2) = sd->cashPoints; //[Ryuuzaki] - switched positions to reflect proper values @@ -17438,6 +17444,11 @@ void clif_parse_CashShopBuy(int fd, struct map_session_data *sd) { unsigned short limit = RFIFOW(fd, 4), i, j; unsigned int kafra_pay = RFIFOL(fd, 6);// [Ryuuzaki] - These are free cash points (strangely #CASH = main cash curreny for us, confusing) + if( map->list[sd->bl.m].flag.nocashshop ) { + clif->colormes(fd,COLOR_RED,msg_txt(1489)); //Cash Shop is disabled in this map + return; + } + for(i = 0; i < limit; i++) { int qty = RFIFOL(fd, 14 + ( i * 10 )); int id = RFIFOL(fd, 10 + ( i * 10 )); |