Jump to content

PetName like the horse how-to ?


Go to solution Solved by safademirel,

Recommended Posts

Hi, I want to do the petname system like the horse system, if we use the thing to rename the horse, I want that the pet has the same name and if we don't have rename the horse then the default name of the pet is like "Pet's Name" like in my 2089m game

 

Someone can help me ? I don't find how-to :(

 

 

Link to comment
Share on other sites

  • Solution

 

pet.summon(mobVnum, horse.get_name(), false)

The problem is the one that there's the name of the carachter before the horse name like

 

PlayerNamePETName and not PetName

 

 

You should edit source

 

PetSystem.cpp

	std::string petName = m_pkOwner->GetName();

to

	std::string petName = "";

It works

 

846724bcb8.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.