|
|
@ -2904,7 +2904,9 @@ void CCharacter::postLoadTreatment()
|
|
|
|
_PlayerPets[ i ].Slot = INVENTORIES::INVALID_INVENTORY_SLOT;
|
|
|
|
_PlayerPets[ i ].Slot = INVENTORIES::INVALID_INVENTORY_SLOT;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef RYZOM_FORGE_PET_NAME
|
|
|
|
sendPetCustomNameToClient(i);
|
|
|
|
sendPetCustomNameToClient(i);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
uint32 slot = _PlayerPets[ i ].initLinkAnimalToTicket( this, i );
|
|
|
|
uint32 slot = _PlayerPets[ i ].initLinkAnimalToTicket( this, i );
|
|
|
|
if( slot < INVENTORIES::NbPackerSlots )
|
|
|
|
if( slot < INVENTORIES::NbPackerSlots )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -5584,7 +5586,9 @@ bool CCharacter::spawnWaitingCharacterAnimalNear( uint index, const SGameCoordin
|
|
|
|
msg.CharacterMirrorRow = _EntityRowId;
|
|
|
|
msg.CharacterMirrorRow = _EntityRowId;
|
|
|
|
msg.PetSheetId = _PlayerPets[ index ].PetSheetId;
|
|
|
|
msg.PetSheetId = _PlayerPets[ index ].PetSheetId;
|
|
|
|
msg.PetIdx = index;
|
|
|
|
msg.PetIdx = index;
|
|
|
|
|
|
|
|
#ifdef RYZOM_FORGE_PET_NAME
|
|
|
|
msg.CustomName = _PlayerPets[ index ].CustomName;
|
|
|
|
msg.CustomName = _PlayerPets[ index ].CustomName;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
msg.AIInstanceId = (uint16)destAIInstance;
|
|
|
|
msg.AIInstanceId = (uint16)destAIInstance;
|
|
|
|
CWorldInstances::instance().msgToAIInstance( msg.AIInstanceId, msg);
|
|
|
|
CWorldInstances::instance().msgToAIInstance( msg.AIInstanceId, msg);
|
|
|
|
// The row will be received in AnimalSpawned()
|
|
|
|
// The row will be received in AnimalSpawned()
|
|
|
@ -5696,7 +5700,9 @@ bool CCharacter::spawnCharacterAnimal(uint index )
|
|
|
|
msg.CharacterMirrorRow = _EntityRowId;
|
|
|
|
msg.CharacterMirrorRow = _EntityRowId;
|
|
|
|
msg.PetSheetId = _PlayerPets[ index ].PetSheetId;
|
|
|
|
msg.PetSheetId = _PlayerPets[ index ].PetSheetId;
|
|
|
|
msg.PetIdx = index;
|
|
|
|
msg.PetIdx = index;
|
|
|
|
|
|
|
|
#ifdef RYZOM_FORGE_PET_NAME
|
|
|
|
msg.CustomName = _PlayerPets[ index ].CustomName;
|
|
|
|
msg.CustomName = _PlayerPets[ index ].CustomName;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
CVector pos;
|
|
|
|
CVector pos;
|
|
|
|
pos.x = msg.Coordinate_X * 0.001f;
|
|
|
|
pos.x = msg.Coordinate_X * 0.001f;
|
|
|
@ -18716,7 +18722,9 @@ uint32 CPetAnimal::initLinkAnimalToTicket( CCharacter * c, uint8 index )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Slot = ItemPtr->getLocSlot();
|
|
|
|
// Slot = ItemPtr->getLocSlot();
|
|
|
|
ItemPtr->setPetIndex(index);
|
|
|
|
ItemPtr->setPetIndex(index);
|
|
|
|
|
|
|
|
#ifdef RYZOM_FORGE_PET_NAME
|
|
|
|
ItemPtr->setCustomName(CustomName);
|
|
|
|
ItemPtr->setCustomName(CustomName);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
Slot = ItemPtr->getInventorySlot();
|
|
|
|
Slot = ItemPtr->getInventorySlot();
|
|
|
|
return Slot;
|
|
|
|
return Slot;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -18730,7 +18738,9 @@ uint32 CPetAnimal::initLinkAnimalToTicket( CCharacter * c, uint8 index )
|
|
|
|
// Slot = ItemPtr->getLocSlot();
|
|
|
|
// Slot = ItemPtr->getLocSlot();
|
|
|
|
Slot = ItemPtr->getInventorySlot();
|
|
|
|
Slot = ItemPtr->getInventorySlot();
|
|
|
|
ItemPtr->setPetIndex(index);
|
|
|
|
ItemPtr->setPetIndex(index);
|
|
|
|
|
|
|
|
#ifdef RYZOM_FORGE_PET_NAME
|
|
|
|
ItemPtr->setCustomName(CustomName);
|
|
|
|
ItemPtr->setCustomName(CustomName);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
return Slot;
|
|
|
|
return Slot;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|