Help with a XP System
I need help with making a xp system to store xp and give it to players as a reward for something. I need to know how to do it though , totaly new to this kind of scripting. I tried looking at the WC3 plugin but I couldn't find it. So if any of you can show me some stuff that might help , thanks. :)
|
Anyone that made an XP system or knows how to , can you help me please? :)
|
To save XP is simple, by just using MySQL to store data in tables.
To actually accrue XP from combat and have levelling is something entirely different. You need to make an algorithm... all the good algorithms are based on logarithmic functions. For example, here is the Runescape XP function to tell how much XP you need for a level: Code:
As for player versus player experience, it becomes more complicated as you need to take into account the other player's level. A long time ago in a galaxy far away, I was fooling around with this and tried to write a stats plugin... I don't remember if it worked, or what the formula is, but the source is here: Click here for bail_stats.sma. Look for "root_xp" which takes level of killer and level of victim and returns how much XP the killer earns. The SIMPLEST solution... is to just do cumulative XP and fool around with little numbers... but I'd rather not think about it :P |
Thank you Bail , your a big help. :)
|
Quote:
|
| All times are GMT -4. The time now is 14:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.