summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-27 21:42:14 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-14 20:18:10 +0300
commitfa1cb492536f2853c59a995dc54aa51ead420546 (patch)
treeb0b3751721d688a4795ca7a8a7b5909dca09191a /src/map/npc.h
parent93b9a86bed2eb3a54b49557f663e06804985654f (diff)
downloadhercules-fa1cb492536f2853c59a995dc54aa51ead420546.tar.gz
hercules-fa1cb492536f2853c59a995dc54aa51ead420546.tar.bz2
hercules-fa1cb492536f2853c59a995dc54aa51ead420546.tar.xz
hercules-fa1cb492536f2853c59a995dc54aa51ead420546.zip
Add barter type shop and add packet ZC_NPC_BARTER_OPEN
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index ed5f4138d..2cd0c0e29 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -41,10 +41,11 @@ enum npc_parse_options {
};
enum npc_shop_types {
- NST_ZENY,/* default */
- NST_CASH,/* official npc cash shop */
- NST_MARKET,/* official npc market type */
+ NST_ZENY, /* default */
+ NST_CASH, /* official npc cash shop */
+ NST_MARKET, /* official npc market type */
NST_CUSTOM,
+ NST_BARTER, /* official npc barter type */
/* */
NST_MAX,
};
@@ -56,11 +57,14 @@ struct npc_label_list {
char name[NAME_LENGTH];
int pos;
};
+
struct npc_item_list {
int nameid;
- unsigned int value;
+ unsigned int value; // price or barter currency item id
+ int value2; // barter currency item amount
unsigned int qty;
};
+
struct npc_shop_data {
unsigned char type;/* what am i */
struct npc_item_list *item;/* list */