diff options
author | Haruna <haru@dotalux.com> | 2015-09-17 15:25:03 +0200 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2015-09-17 15:25:03 +0200 |
commit | 45e9625f0f6756fd2e22d51f68f3aab238d0139f (patch) | |
tree | 7856d9f330d15ec99241bf07c6e4c25b52774643 /src/common | |
parent | ebf17bcb5e113f17ddb5c8e9c09bddd799bd7223 (diff) | |
parent | 0af11c16f1daf23d77a237b9452945706e9b40bc (diff) | |
download | hercules-45e9625f0f6756fd2e22d51f68f3aab238d0139f.tar.gz hercules-45e9625f0f6756fd2e22d51f68f3aab238d0139f.tar.bz2 hercules-45e9625f0f6756fd2e22d51f68f3aab238d0139f.tar.xz hercules-45e9625f0f6756fd2e22d51f68f3aab238d0139f.zip |
Merge pull request #711 from dastgir/autotrade_struct
Autotrade Struct to HPM
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/HPMi.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/HPMi.h b/src/common/HPMi.h index bd8d8fe64..e03f52e3b 100644 --- a/src/common/HPMi.h +++ b/src/common/HPMi.h @@ -71,11 +71,12 @@ enum HPluginDataTypes { HPDT_MOBDATA, HPDT_ITEMDATA, HPDT_BGDATA, + HPDT_AUTOTRADE_VEND, }; /* used in macros and conf storage */ enum HPluginConfType { - HPCT_BATTLE, /* battle-conf (map-server */ + HPCT_BATTLE, /* battle-conf (map-server) */ HPCT_LOGIN, /* login-server.conf (login-server) */ HPCT_CHAR, /* char-server.conf (char-server) */ HPCT_CHAR_INTER, /* inter-server.conf (char-server) */ @@ -138,6 +139,10 @@ enum HPluginConfType { #define addToBGDATA(ptr,data,index,autofree) (HPMi->addToHPData(HPDT_BGDATA,HPMi->pid,(ptr),(data),(index),(autofree))) #define getFromBGDATA(ptr,index) (HPMi->getFromHPData(HPDT_BGDATA,HPMi->pid,(ptr),(index))) #define removeFromBGDATA(ptr,index) (HPMi->removeFromHPData(HPDT_BGDATA,HPMi->pid,(ptr),(index))) +/* autotrade_vending */ +#define addToATVEND(ptr,data,index,autofree) (HPMi->addToHPData(HPDT_AUTOTRADE_VEND,HPMi->pid,(ptr),(data),(index),(autofree))) +#define getFromATVEND(ptr,index) (HPMi->getFromHPData(HPDT_AUTOTRADE_VEND,HPMi->pid,(ptr),(index))) +#define removeFromATVEND(ptr,index) (HPMi->removeFromHPData(HPDT_AUTOTRADE_VEND,HPMi->pid,(ptr),(index))) /// HPMi->addCommand #define addAtcommand(cname,funcname) do { \ |