Raised This Month: $ Target: $400
 0% 

XP Mod, setting lvls, exp, saving


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-06-2010 , 15:42   Re: XP Mod, setting lvls, exp, saving
Reply With Quote #1

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:
enum Class 

    
None 0//No class
    
Dog
    
Bear
    
Cat 


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) ?

Last edited by t3hNox; 08-06-2010 at 16:10.
t3hNox is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode