So I'm trying to make a profession system and Instead of doing a variable based level, I actually have skills. I plan to have them level up by doing things with the professions. The main issue I have right now is figuring out how to use arrays to set a "required amount of XP"
//Player Starts at Lv1
setarray $@RequiredExp[0],
250,750,1500,2500,3700,5100,6700,8500,10500;
The way the above exp works is Players are already level 1 in profession; They need 250 experience to hit level 2, 500 to hit level 3 and so on. My issue is is how do I make it so once they hit the required experience, it switches to the next array? Also, How would I run the command "skill" to get the current skill level and +1 kinda like...?
skill 3040,getskilllv(3040)+1,4;
Thanks to Sandbox, I was able to get what I needed.