From 6d4ae7670d0acca504d17d27b5c971be6625a311 Mon Sep 17 00:00:00 2001 From: panikon Date: Fri, 9 May 2014 23:17:09 -0300 Subject: Added documentation regarding trader objects in script_commands.txt Added enumered returns to npc_cashshop_buy and to npc_cashshop_buylist --- src/map/clif.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/map/clif.h') diff --git a/src/map/clif.h b/src/map/clif.h index f54c4afce..d0444f9fe 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -348,6 +348,22 @@ enum clif_messages { ITEM_CANT_USE_AREA = 0x537, }; +/** + * Used to answer CZ_PC_BUY_CASH_POINT_ITEM (clif_parse_cashshop_buy) + **/ +enum cashshop_error { + ERROR_TYPE_NONE = 0, // The deal has successfully completed. (ERROR_TYPE_NONE) + ERROR_TYPE_NPC, // The Purchase has failed because the NPC does not exist. (ERROR_TYPE_NPC) + ERROR_TYPE_SYSTEM, // The Purchase has failed because the Kafra Shop System is not working correctly. (ERROR_TYPE_SYSTEM) + ERROR_TYPE_INVENTORY_WEIGHT, // You are over your Weight Limit. (ERROR_TYPE_INVENTORY_WEIGHT) + ERROR_TYPE_EXCHANGE, // You cannot purchase items while you are in a trade. (ERROR_TYPE_EXCHANGE) + ERROR_TYPE_ITEM_ID, // The Purchase has failed because the Item Information was incorrect. (ERROR_TYPE_ITEM_ID) + ERROR_TYPE_MONEY, // You do not have enough Kafra Credit Points. (ERROR_TYPE_MONEY) + // Unofficial type names + ERROR_TYPE_QUANTITY, // You can purchase up to 10 items. (ERROR_TYPE_QUANTITY) + ERROR_TYPE_NOT_ALL, // Some items could not be purchased. (ERROR_TYPE_NOT_ALL) +}; + /** * Color Table **/ -- cgit v1.2.3-60-g2f50