summaryrefslogtreecommitdiff
path: root/src/common/HPMi.h
diff options
context:
space:
mode:
authordastgir <dastgirpojee@rocketmail.com>2015-09-09 09:28:39 -0400
committerdastgir <dastgirpojee@rocketmail.com>2015-09-09 10:03:58 -0400
commit0af11c16f1daf23d77a237b9452945706e9b40bc (patch)
tree004aa5258eb7eb37a29b8dc04a9df6b357ee0857 /src/common/HPMi.h
parentc76aa5f4843a521b1839875bf6c139f4658bd6d1 (diff)
downloadhercules-0af11c16f1daf23d77a237b9452945706e9b40bc.tar.gz
hercules-0af11c16f1daf23d77a237b9452945706e9b40bc.tar.bz2
hercules-0af11c16f1daf23d77a237b9452945706e9b40bc.tar.xz
hercules-0af11c16f1daf23d77a237b9452945706e9b40bc.zip
Autotrade Struct to HPM
Diffstat (limited to 'src/common/HPMi.h')
-rw-r--r--src/common/HPMi.h7
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 { \