Level Up Script

I’m trying to get a script to trade tokens for +1 level.

else if(Player->HasItemCount(TOKEN_ID, GET_LEVEL_TOKENS_REQUIRED))
{
Player->DestroyItemCount(TOKEN_ID, GET_LEVEL_TOKENS_REQUIRED, true, false);
Player->SetLevel (80);

Would set the player to level 80, so I tried

else if(Player->HasItemCount(TOKEN_ID, GET_LEVEL_TOKENS_REQUIRED))
{
Player->DestroyItemCount(TOKEN_ID, GET_LEVEL_TOKENS_REQUIRED, true, false);
Player->SetLevel (+1);

And this just sets the player to level 1. Any idea on what I can do here.

Player->SetLevel ( Player->getLevel() + 1 );

You sir are a god to newbie developers. Thanks much for the help you’ve been giving Jamma.

Is that horrible mess how code boxes work now, or did you do something funky with the colors?

that’s the code box.