
09-08-2011, 02:27 AM
|
team canada
|
 |
Join Date: Jul 2004
Location: Canada
Posts: 5,200
|
|
Alright now in other scripts you just have to call:
player.addEXP(100); or findplayer("Ohk4y").addEXP(100);
To add experience to yourself, expfunctions then internally checks to see if you gained enough EXP to level up. The class is flexible enough so you don't have to reset EXP if you change your EXP Needed formula.
It also initializes the player to level 1 if they haven't logged in before (or if their level is 0).
You can also call:
player.levelUp(); if you just want to directly level yourself. |
|
|