execute store success score #xrpg_upgrade xrpg_op run scoreboard players add @s[scores={xrpg_class_level=..9}] xrpg_class_level 1
execute if score #xrpg_upgrade xrpg_op matches 1 run scoreboard players remove @s xrpg_skill_points 10