Disable pet name since it's only accessible through admin and web

ryzomclassic-develop
kaetemi 5 years ago
parent b6dbb65918
commit 8c6677dba6

@ -2476,6 +2476,7 @@ NLMISC_COMMAND(getPetAnimalSatiety,"Get the satiety of pet animal (petIndex in 0
return true;
}
#ifdef RYZOM_FORGE_PET_NAME
NLMISC_COMMAND(setPetAnimalName, "Set the name of a pet animal","<eid> <petIndex (0..3)> [<name>]")
{
if (args.size () < 2) return false;
@ -2493,6 +2494,7 @@ NLMISC_COMMAND(setPetAnimalName, "Set the name of a pet animal","<eid> <petIndex
return true;
}
#endif
NLMISC_COMMAND (addSkillPoints, "add skill points of given type (Fight = 0, Magic = 1,Craft = 2, Harvest = 3)", "<eid> <SP type [0..3]> <nb SP>")
{

@ -6876,6 +6876,7 @@ void CCharacter::sendAnimalCommand( uint8 petIndexCode, uint8 command )
}
}
#ifdef RYZOM_FORGE_PET_NAME
void CCharacter::setAnimalName( uint8 petIndex, ucstring customName )
{
if (petIndex < 0 || petIndex >= MAX_INVENTORY_ANIMAL)
@ -6911,6 +6912,7 @@ void CCharacter::sendPetCustomNameToClient(uint8 petIndex)
}
CBankAccessor_PLR::getPACK_ANIMAL().getBEAST(petIndex).setNAME(_PropertyDatabase, textId);
}
#endif
//-----------------------------------------------

@ -298,7 +298,9 @@ struct CPetAnimal
bool IsMounted;
bool IsTpAllowed;
bool spawnFlag;
#ifdef RYZOM_FORGE_PET_NAME
ucstring CustomName;
#endif
// ctor
CPetAnimal();
@ -1016,10 +1018,12 @@ public:
// return the index of a player pet, or -1 if not found
sint32 getPlayerPet( const TDataSetRow& petRowId ) const;
#ifdef RYZOM_FORGE_PET_NAME
// Set the name of the animal
void setAnimalName( uint8 petIndex, ucstring customName );
void sendPetCustomNameToClient(uint8 petIndex);
#endif
// near character's pets are TP with player (continent tp)
void allowNearPetTp();

Loading…
Cancel
Save