summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorshennetsind <shennetsind@users.noreply.github.com>2013-10-30 14:48:26 -0700
committershennetsind <shennetsind@users.noreply.github.com>2013-10-30 14:48:26 -0700
commit566529c819bcf9aeb1bd3a4a691c443c2b88d076 (patch)
tree5d3448afe67329cc9d650732425f0152ef242e7b /src/map/npc.h
parent8039bd169886a4b0583cd1a794fcf61c79626e86 (diff)
parente9b4aec5eae2bc3454636a71953dcb1e1abb5ee7 (diff)
downloadhercules-566529c819bcf9aeb1bd3a4a691c443c2b88d076.tar.gz
hercules-566529c819bcf9aeb1bd3a4a691c443c2b88d076.tar.bz2
hercules-566529c819bcf9aeb1bd3a4a691c443c2b88d076.tar.xz
hercules-566529c819bcf9aeb1bd3a4a691c443c2b88d076.zip
Merge pull request #210 from kisuka/npc-constants
NPC Constants
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index e1ec6e5e4..5ec201e55 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -92,7 +92,7 @@ enum actor_classes {
#define MAX_NPC_CLASS 1000
// New NPC range
#define MAX_NPC_CLASS2_START 10000
-#define MAX_NPC_CLASS2_END 10049
+#define MAX_NPC_CLASS2_END 10070
//Checks if a given id is a valid npc id. [Skotlex]
//Since new npcs are added all the time, the max valid value is the one before the first mob (Scorpion = 1001)
@@ -197,6 +197,8 @@ struct npc_interface {
void (*addsrcfile) (const char *name);
void (*delsrcfile) (const char *name);
void (*parsename) (struct npc_data *nd, const char *name, const char *start, const char *buffer, const char *filepath);
+ int (*parseview) (const char *w4, const char *start, const char *buffer, const char *filepath);
+ bool (*viewisid) (const char *viewid);
struct npc_data* (*add_warp) (char *name, short from_mapid, short from_x, short from_y, short xs, short ys, unsigned short to_mapindex, short to_x, short to_y);
const char* (*parse_warp) (char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath);
const char* (*parse_shop) (char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath);