Is there a function to downgrade magic level?
doPlayerAddExp(cid, -100)
something along the lines of
DoPlayerAddMlvl(cid, -5)
or perhaps a way to do it?
getPlayerSpentMana(cid)
doPlayerAddSpentMana(cid, amount)
getPlayerRequiredMana(cid, magicLevel)
-----
Failing that, I would have the script kick the player and then execute some sql to change the magic level, however I have a feeling that this would screw up because as soon as the player is kicked the script wont be able to get the player name, right? Or will the script retain the player name?
Worded badly, apologies.
Thanks for any insight!
doPlayerAddExp(cid, -100)
something along the lines of
DoPlayerAddMlvl(cid, -5)
or perhaps a way to do it?
getPlayerSpentMana(cid)
doPlayerAddSpentMana(cid, amount)
getPlayerRequiredMana(cid, magicLevel)
-----
Failing that, I would have the script kick the player and then execute some sql to change the magic level, however I have a feeling that this would screw up because as soon as the player is kicked the script wont be able to get the player name, right? Or will the script retain the player name?
Worded badly, apologies.
Thanks for any insight!