Please repair this script, c + + for TSF 0.3.5pl1. 1 skill = 1% less the cost of the spell. example: the cost of the spell is 1000MP. I have a skill like 10 is the cost of this spell is no longer 1000MP but 900mp
Code:
player->changeMana(-(int32_t)manaCost - (manaCost*player->getSkill(SKILL_FISH, SKILL_LEVEL)/100));
Last edited: