summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorSkotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-08-20 18:14:40 +0000
committerSkotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-08-20 18:14:40 +0000
commit0828cd6660ce9bc0e0fae7d6f9af01051937b82b (patch)
tree5b6db46f4ec0a8fc09ac43c31bb6d1892ab49870 /src/map
parentfc52a4371fffa1cad6f7effc448406386a313b4b (diff)
downloadhercules-0828cd6660ce9bc0e0fae7d6f9af01051937b82b.tar.gz
hercules-0828cd6660ce9bc0e0fae7d6f9af01051937b82b.tar.bz2
hercules-0828cd6660ce9bc0e0fae7d6f9af01051937b82b.tar.xz
hercules-0828cd6660ce9bc0e0fae7d6f9af01051937b82b.zip
- Added a few missing updates to the last packet update to properly support player clones and disguising.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14387 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index c0f6ccfaa..1dfdbd899 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -168,7 +168,7 @@ static inline unsigned char clif_bl_type(struct block_list *bl) {
case BL_ITEM: return 0x2; //ITEM_TYPE
case BL_SKILL: return 0x3; //SKILL_TYPE
case BL_CHAT: return 0x4; //UNKNOWN_TYPE
- case BL_MOB: return 0x5; //NPC_MOB_TYPE
+ case BL_MOB: return pcdb_checkid(((TBL_MOB*)bl)->class_)?0x0:0x5; //NPC_MOB_TYPE
case BL_NPC: return 0x6; //NPC_EVT_TYPE
case BL_PET: return 0x7; //NPC_PET_TYPE
case BL_HOM: return 0x8; //NPC_HOM_TYPE
@@ -1016,7 +1016,11 @@ static int clif_set_unit_walking(struct block_list* bl, struct unit_data* ud, un
//Used for spawn/walk packets, where the ID offset changes for packetver >=9
static void clif_setdisguise(struct block_list *bl, unsigned char *buf,int len)
{
-#if PACKETVER >= 20071106
+#if PACKETVER >= 20091103
+ WBUFB(buf,4)= 0x5; //NPC_MOB_TYPE
+ WBUFL(buf,5)=-bl->id;
+#elif PACKETVER >= 20071106
+ WBUFB(buf,2)= 0x5; //NPC_MOB_TYPE
WBUFL(buf,3)=-bl->id;
#else
WBUFL(buf,2)=-bl->id;