tmoitoi 26 Posted September 4, 2014 Share Posted September 4, 2014 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 More sharing options...
Denis 1474 Posted September 4, 2014 Share Posted September 4, 2014 pet.summon(mobVnum, horse.get_name(), false) Link to comment Share on other sites More sharing options...
Premium ahynoa 15 Posted September 4, 2014 Premium Share Posted September 4, 2014 if I want to place a level next to the name of the horse you can? Link to comment Share on other sites More sharing options...
Former Staff .InyaProduction 1123 Posted September 4, 2014 Former Staff Share Posted September 4, 2014 local name = horse.get_name().." Level 99" pet.summon(mobVnum, name, false) Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted September 4, 2014 Author Share Posted September 4, 2014 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 Link to comment Share on other sites More sharing options...
Solution safademirel 289 Posted September 4, 2014 Solution Share Posted September 4, 2014 (edited) 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 Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted September 5, 2014 Author Share Posted September 5, 2014 Yeah it works well ! Big thanks to all guys who have answered there. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now