Fixed walking NPCs with monster sprites (#6325)

Sending all NPCs with new type now

Fixes #6312

Thanks to @Everade and @attackjom
This commit is contained in:
Lemongrass3110 2021-10-27 17:42:44 +02:00 committed by GitHub
parent bca8287473
commit 4b9c3e37f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,7 +364,7 @@ static inline unsigned char clif_bl_type(struct block_list *bl, bool walking) {
// There is one exception and this is if they are walking.
// Since walking NPCs are not supported on official servers, the client does not know how to handle it.
#if PACKETVER >= 20170726
return ( pcdb_checkid(status_get_viewdata(bl)->class_) && walking ) ? 0x0 : 0x6; //NPC_EVT_TYPE
return ( pcdb_checkid(status_get_viewdata(bl)->class_) && walking ) ? 0x0 : 0xC; // New walking NPC type
#else
return pcdb_checkid(status_get_viewdata(bl)->class_) ? 0x0 : 0x6; //NPC_EVT_TYPE
#endif