Is there any incompatibility with older servertypes in using object_type constants? Cause if not, we should really use them instead of the current actor detection method.Revision: 8558
Author: marcelofoxes
Date: domingo, 12 de maio de 2013 02:13:27
Message:
* fixed a REALLY old bug where kore identifies pets as monsters. this caused a lot of bugs, including kore trying to attack pets and adding pet names to monsters.txt
----
Modified : /openkore/trunk/src/Network/Receive.pm
Revision: 8559
Author: marcelofoxes
Date: domingo, 12 de maio de 2013 02:28:58
Message:
* oops, wrong constant
----
Modified : /openkore/trunk/src/Network/Receive.pm
Like:
Code: Select all
if ($args->{hair_style} == 0x64) {
Changed to this:
Code: Select all
if ($args->{hair_style} == 0x64 || $args->{object_type} == NPC_PET_TYPE) {
Code: Select all
use constant {
PC_TYPE => 0x0,
NPC_TYPE => 0x1,
ITEM_TYPE => 0x2,
SKILL_TYPE => 0x3,
UNKNOWN_TYPE => 0x4,
NPC_MOB_TYPE => 0x5,
NPC_EVT_TYPE => 0x6,
NPC_PET_TYPE => 0x7,
NPC_HO_TYPE => 0x8,
NPC_MERSOL_TYPE => 0x9,
NPC_ELEMENTAL_TYPE => 0xa
};