Jump to content

Custom XP rate per player?


ensiferum

Recommended Posts

Ok TheLuda now I got a question for you...

If i create a table in the account DB - name lvl_multiplier - the values will be integer

now i found this here little part in player.cpp

[== cpp ==]
uint32 newXP = curXP + xp + rested_bonus_xp;

now i need to make it

[== cpp ==]
uint32 newXP = curXP + xp*VALUE($lvl_multiplier) + rested_bonus_xp;

how can i possibly do that?

i mean i do know some C++ but still this would require i guess some more idea than i have..

Link to comment
Share on other sites

MasterControlProgram, Im sorry to reply here again but i would like to ask you to split this thread and put it into the appropriate forum because i dont want to duplicate my posts.. I see you are an admin so you should be able to do this..

But refering to the main topic:

I know i can change global xp rates.

But what i need is to introduce a per-player xp rates.

I mean someone registers sets his own xp rate and he gets exp ingame slower or faster comparing to others - this may sound as nonsense but i know this is easy to do its just im not too good with the source code..

Link to comment
Share on other sites

  • 1 month later...
×
×
  • 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