Raised This Month: $ Target: $400
 0% 

Save level based on class (XP Mod)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-24-2010 , 17:47   Re: Save level based on class (XP Mod)
Reply With Quote #1

Quote:
Originally Posted by GXLZPGX View Post
PHP Code:
formatex(vaultkey,63,"%s-level-%i-class"AuthIDpub_Class[id]) 
Yes.

Quote:
Originally Posted by GXLZPGX View Post
or:

PHP Code:
public Save_Data(id)  
{  
    new 
AuthID[35
    
get_user_authid(id,AuthID,34
    
    new 
vaultkey[64], vaultdata[11
    
formatex(vaultkey,63,"%s-xp",AuthID
    
num_to_str(pub_Experience[id], vaultdata10
    
nvault_set(g_vault,vaultkeyvaultdata
    
    
formatex(vaultkey,63,"%s-level"AuthID)
    
num_to_str(pub_Level[id], vaultdata10)
    
    
formatex(vaultkey,63,"%s-class"AuthID)
    
num_to_str(pub_Class[id], vaultdata10
    
nvault_set(g_Vaultvaultkeyvaultdata)

No.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-24-2010 , 18:47   Re: Save level based on class (XP Mod)
Reply With Quote #2

Quote:
Originally Posted by GXLZPGX View Post
But the next time the XP is loaded, it would load the XP from the previous class they were on. So the XP would be the same for both classes.
Quote:
Originally Posted by Exolent[jNr] View Post
I told you that it was an example based on the code in your first post.
All you have to do is add the class name to the level key (and the xp key if you have xp per class).
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 11:20.


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