View Single Post
  #12  
Old 09-08-2011, 02:27 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.
__________________
Quote:
Reply With Quote