1. Easy way (not 100% safe):
Edit player in database with SQL queries, but it will work only if player is offline.
2. Right way:
Add new Lua functions in C++, that will allow you to directly modify skill/skill tries/exp/magic level/mana spent variables in player.h
, without calling 'addSkillTries'/'removeSkillTries`/'addExperience'/'removeExperience' and similar functions, which may change value to other value than you planned (ex. you run player:addExperience(1000)
and expects to get +1000 exp, but some Player:onGainExperience
Lua callback may apply +20% exp multiplier and change it to +1200 exp)