summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-05-09 23:17:09 -0300
committerpanikon <panikon@zoho.com>2014-05-09 23:17:09 -0300
commit6d4ae7670d0acca504d17d27b5c971be6625a311 (patch)
treec486cd73cdc1719752da44274725d397ca8fdbd0 /src/map/clif.c
parenta168c786095d50dfce96791627b57b917a9cf7eb (diff)
downloadhercules-6d4ae7670d0acca504d17d27b5c971be6625a311.tar.gz
hercules-6d4ae7670d0acca504d17d27b5c971be6625a311.tar.bz2
hercules-6d4ae7670d0acca504d17d27b5c971be6625a311.tar.xz
hercules-6d4ae7670d0acca504d17d27b5c971be6625a311.zip
Added documentation regarding trader objects in script_commands.txt
Added enumered returns to npc_cashshop_buy and to npc_cashshop_buylist
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 1da6070e8..0fc1fe044 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -15561,20 +15561,10 @@ void clif_cashshop_show(struct map_session_data *sd, struct npc_data *nd) {
WFIFOSET(fd,WFIFOW(fd,2));
}
-
/// Cashshop Buy Ack (ZC_PC_CASH_POINT_UPDATE).
/// 0289 <cash point>.L <error>.W
/// 0289 <cash point>.L <kafra point>.L <error>.W (PACKETVER >= 20070711)
-/// error:
-/// 0 = The deal has successfully completed. (ERROR_TYPE_NONE)
-/// 1 = The Purchase has failed because the NPC does not exist. (ERROR_TYPE_NPC)
-/// 2 = The Purchase has failed because the Kafra Shop System is not working correctly. (ERROR_TYPE_SYSTEM)
-/// 3 = You are over your Weight Limit. (ERROR_TYPE_INVENTORY_WEIGHT)
-/// 4 = You cannot purchase items while you are in a trade. (ERROR_TYPE_EXCHANGE)
-/// 5 = The Purchase has failed because the Item Information was incorrect. (ERROR_TYPE_ITEM_ID)
-/// 6 = You do not have enough Kafra Credit Points. (ERROR_TYPE_MONEY)
-/// 7 = You can purchase up to 10 items.
-/// 8 = Some items could not be purchased.
+/// For error return codes see enum cashshop_error@clif.h
void clif_cashshop_ack(struct map_session_data* sd, int error) {
struct npc_data *nd;
int fd = sd->fd;