![]() |
Leveling System
PHP Code:
It explains how to add experience to the player and also return how much EXP is needed for a certain level type. To create your own level types, just edit the 'this.levelTypes' array. |
I do mine differently. I use clientr.mud(job type) = {currentexp, exp for that level to pass, current level};
Only need 1 function now ^-^. Also i use a exp table instead of making the new exp needed. |
Weird algorithm :o
At level 5, 10000 exp needed, level 6: 12000, level 7: 14000, level 8: 16000, hmm? could of just had done like, + 2000 :p Level 1, 2000 exp needed, hmm if you had a better algorithm it would been better :D btw, nice script :D edit: That script looks like it would been good on a medevil server or something, magic and stuff :) It gave me an idea :p |
Hi , im Trying to get it to work :P but is it an thing Important i need to get it to work ? or only that it Join the player on login and its a class called expsystem ?
it wont work ... and btw , whats the Flags i use for it ? like clientr.level=60 or clientr.exp_cur and clientr.exp_max ? or is it even any flags i uyse for this to work :P |
This script is pretty outdated, and the use of a single log is ultimately useless, but you just call the function (assuming you joined the class to the player on login) that it provides to you like so:
PHP Code:
|
ok shoud i use that in an weapon to the playerr for testing the Script ? and when i level upp ,will it show ? or player say's "LEVEL UP , Curnt levle in" SPC Level "
? may you Post all the Command i will hawe use for in this Levling System plz |
i did added
Quote:
|
The code I provided will not work in a weapon script like that and was just an example of the proper usage, you need to specify the player object.
PHP Code:
|
Dos it work ?
|
Quote:
|
| All times are GMT +2. The time now is 11:25 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.