It would be cool to see this in TFS 0.3...
Is it posible to build functions to check and reduce skills?
Like:
onSkillAdvance()
getPlayerSkill(cid, skill) (returns the amount of the skill)
doPlayerSetSkill(cid,skill,num)
Its important to reduce the skill without any crashes! Example(Fist):
To check if the amount of a skill is allowed:
Another Idea is to add in config:
loseBackpackPercent
loseExpPercent
loseSkillPercent
What do you think about it?
Is it posible to build functions to check and reduce skills?
Like:
onSkillAdvance()
getPlayerSkill(cid, skill) (returns the amount of the skill)
doPlayerSetSkill(cid,skill,num)
Its important to reduce the skill without any crashes! Example(Fist):
To check if the amount of a skill is allowed:
Code:
onSkillAdvance()
maxSkill = getPlayerStorage(cid,num)
fist = getPlayerSkill(cid,0)
if fist > maxSkill then
newfist = fist-1
doPlayerSetSkill(cid,0,newfist)
end
end
Another Idea is to add in config:
loseBackpackPercent
loseExpPercent
loseSkillPercent
What do you think about it?