diff options
author | lemongrass3110 <lemongrass3110@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2013-04-10 15:02:11 +0000 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-11 16:45:38 -0300 |
commit | e1f41ae8fdac977851bfd090a6e266a0dda8ed29 (patch) | |
tree | 9792f971338f659a58459a9e9737585ca7875e7c /src/map/npc.h | |
parent | 12963a5aa4e6e6cbf167d44ef6e509855f725282 (diff) | |
download | hercules-e1f41ae8fdac977851bfd090a6e266a0dda8ed29.tar.gz hercules-e1f41ae8fdac977851bfd090a6e266a0dda8ed29.tar.bz2 hercules-e1f41ae8fdac977851bfd090a6e266a0dda8ed29.tar.xz hercules-e1f41ae8fdac977851bfd090a6e266a0dda8ed29.zip |
New NPC range now working.
Sorry guys, back in my days it was as easy as this, but I did not test it. So now tested and working. :)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17246 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.h')
-rw-r--r-- | src/map/npc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/npc.h b/src/map/npc.h index c2351a836..229363191 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -88,7 +88,12 @@ enum actor_classes INVISIBLE_CLASS = 32767, }; +// Old NPC range #define MAX_NPC_CLASS 1000 +// New NPC range +#define MAX_NPC_CLASS2_START 10000 +#define MAX_NPC_CLASS2_END 10049 + //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) #define npcdb_checkid(id) ( ( (id) >= 46 && (id) <= 125) || (id) == HIDDEN_WARP_CLASS || ( (id) > 400 && (id) < MAX_NPC_CLASS ) || (id) == INVISIBLE_CLASS || ( (id) > 10000 && (id) < 10049 ) ) |