diff options
Diffstat (limited to 'src/map/buyingstore.h')
-rw-r--r-- | src/map/buyingstore.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/map/buyingstore.h b/src/map/buyingstore.h index ee0163a03..63762f321 100644 --- a/src/map/buyingstore.h +++ b/src/map/buyingstore.h @@ -30,6 +30,8 @@ struct map_session_data; * Declarations **/ struct s_search_store_search; +struct PACKET_CZ_REQ_OPEN_BUYING_STORE_sub; +struct PACKET_CZ_REQ_TRADE_BUYING_STORE_sub; /** * Defines @@ -61,7 +63,7 @@ enum e_buyingstore_failure { struct s_buyingstore_item { int price; unsigned short amount; - unsigned short nameid; + int nameid; }; struct s_buyingstore { @@ -75,14 +77,15 @@ struct s_buyingstore { **/ struct buyingstore_interface { unsigned int nextid; - short blankslots[MAX_SLOTS]; // used when checking whether or not an item's card slots are blank + int blankslots[MAX_SLOTS]; // used when checking whether or not an item's card slots are blank + struct item_option blankoptions[MAX_ITEM_OPTIONS]; // used for search result temporary. /* */ bool (*setup) (struct map_session_data* sd, unsigned char slots); - void (*create) (struct map_session_data* sd, int zenylimit, unsigned char result, const char* storename, const uint8* itemlist, unsigned int count); + void (*create) (struct map_session_data* sd, int zenylimit, unsigned char result, const char* storename, const struct PACKET_CZ_REQ_OPEN_BUYING_STORE_sub* itemlist, unsigned int count); void (*close) (struct map_session_data* sd); void (*open) (struct map_session_data* sd, int account_id); - void (*trade) (struct map_session_data* sd, int account_id, unsigned int buyer_id, const uint8* itemlist, unsigned int count); - bool (*search) (struct map_session_data* sd, unsigned short nameid); + void (*trade) (struct map_session_data* sd, int account_id, unsigned int buyer_id, const struct PACKET_CZ_REQ_TRADE_BUYING_STORE_sub* itemlist, unsigned int count); + bool (*search) (struct map_session_data* sd, int nameid); bool (*searchall) (struct map_session_data* sd, const struct s_search_store_search* s); unsigned int (*getuid) (void); }; |