athenso
Average Coder
- Joined
- May 31, 2011
- Messages
- 155
- Solutions
- 3
- Reaction score
- 23
I am working on a script to change a players exp stage based off a storage value. I am not seeing any Functions that I know I can get it to work with. An example script would be something like:
but the Game.getExperienceStage(level) wouldnt work to my knowledge. Im not looking for someone to give me or write me the script, just point me to the right function to use for this case.
Code:
local player = Player(cid)
local check = player:getStorageValue(928487)
function onThink(interval)
if check >=0 then
Game.getExperienceStage(SetNewStage)
else
Game.getExperienceStage(Original Stage)
end
but the Game.getExperienceStage(level) wouldnt work to my knowledge. Im not looking for someone to give me or write me the script, just point me to the right function to use for this case.