XP Mod, setting lvls, exp, saving
Hi,
I had already posted for help in XP Mod tutorial topic but I didn't succeed to get enough help. So I want to modify the code from XP Mod (original code here) so that every class would have individual levels and experience. wrecked_ gave me code for starting: PHP Code:
Storing player's level and experience in a variable for saving in nvault would look like this ? PHP Code:
I'm trying this: PHP Code:
|
Re: XP Mod, setting lvls, exp, saving
the way you made it is that every id has this
PHP Code:
you should do this PHP Code:
PHP Code:
|
Re: XP Mod, setting lvls, exp, saving
Thank you.
I want to make when a player connects to the server he has no class and then through a menu he choses his class. It means that I need to have enum Class something like a default value. Will this do the trick ? PHP Code:
And how can I set player exp and level value to his current class in Death event (when he is the killer - read_data(1)) ? :/ How can I get his class from enum ? If I do pInfo[id][Exp] += 10 will it add 10 to the class that is already defined in pInfo[id][Classes] = Class: xx (if yes, that it would be ok, as adding any exp or level in death event will happen only if any class, other than None, is set) ? |
Re: XP Mod, setting lvls, exp, saving
PHP Code:
PHP Code:
PHP Code:
|
Re: XP Mod, setting lvls, exp, saving
Thanks. I'll will try things out and post if I will have any problems (but hopefully not :)).
|
Re: XP Mod, setting lvls, exp, saving
Quote:
PHP Code:
|
Re: XP Mod, setting lvls, exp, saving
Thanks, I'll note that.
Unfortunately for me it seems that creating such class system will not be possible for me with my current pawn skills. When I began writing what ablilities a player will have according to his level after respawn I realised that only method I know to do that is making a switch(). There would be one switch for class and one for player's level - basically switch in switch. Saving and loading data from nVault with pInfo[33][Data] array is still mysterious for me. :) |
| All times are GMT -4. The time now is 00:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.