Jump to content

Recruit a friend system


Guest Biali

Recommended Posts

Dumb question, sorry.

I tried to use search but it didn't helped me at all. maybe I just used the wrong words, but...

Does mangos actually support that recruit a friend system? that one where they, when leveling together, earn more XP and so?

Or maybe there is a way to simulate that system somehow... can some1 help me with that? any information will be really welcome.

ty in advance.

Link to comment
Share on other sites

I have just compiled the latest version and it seems to penalise the two man team (with different levels) as per usual.

Unless I'm mistaken you can only change what can be edited in the mangos.conf file

These can be adjusted to speed up XP gain but theres nothing group specific.

Rate.XP.Kill = 1

Rate.XP.Quest = 1

Rate.XP.Explore = 1

Looking in the database can't see anything either aside from the XP to level requirement.

So it would have to be a code and DB change if its not locked by the client. Have you seen this on a wow server already?

Link to comment
Share on other sites

You could add a "m_playerXpRate" attribute in the Player class.

Then, in Player::LoadFromDB, just see if the player has recruited a friend (with your own custom table or whatever you want)

If so : m_playerXpRate = 2 (200% xp, for example)

If he didn't recruit someone, m_playerXpRate = 1 (100% xp)

Finally, in Player::GiveXP, just make the right calculations before adding the XP (multiply newXP with m_playerXpRate), and that's all.

This is a VERY hacky way, but it may work :)

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

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. Privacy Policy Terms of Use