Jump to content
  • 0
hewasanhero

mangos zero Change cost of unlearning pet skills

Question

Just as said in the title, I've managed to change respec cost for players to 0 using the mangosd.conf file, but I can't find a similar option for unlearning pet skills. Another thing too is that you can select the 'untrain pet' option and have it take your gold even if your pet doesn't have any trained skills. I'm using v13 of brotalnia's Light's Hope repack.

EDIT: Found the source of my issue. Turns out pet re-training costs are hard-coded in the core, specifically in the resetTalentsCost() function of Pet.cpp. Going to make a change in PetHandler.cpp so it always sets the cost to 0 rather than calling the resetTalentsCost() function.

// PetHandler.cpp
-- uint32 cost = pet->resetTalentsCost();
++ uint32 cost = 0;

 

Edited by hewasanhero

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
10 hours ago, Talendrys said:

That hack. xD

Haha, yeah. I won't deny that my solution is a bit hacky, but the fact that these values were hard-coded in the core is hacky in the first place. Oh well, should work just fine for my purposes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×