Do anyone know how to add this lua function? A function that changes the creatures max hp/mana
or
Another function that would be really helpful is something that changes the player skill totaly. We have 2 functions such as:
But what if we have a function like this:
And if you have 100 in fist fighting, for an example, then you do:
And you will get 60 in fist fighting.
I kinda need those functions and would be really helpful if someone could add those
Would be really good for me
Thank you!
Code:
doCreatureAddMaxHealth(cid, maxhp)
doCreatureAddMaxMana(cid, maxmana)
or
Code:
doCreatureChangeMaxHealth(cid, maxhp)
doCreatureChangeMaxMana(cid, maxmana)
Another function that would be really helpful is something that changes the player skill totaly. We have 2 functions such as:
Code:
getPlayerSkill(cid, skillid)
doPlayerAddSkillTry(cid, skillid, n)
But what if we have a function like this:
Code:
setPlayerNewSkill(cid, skillid, newskill)
And if you have 100 in fist fighting, for an example, then you do:
Code:
setPlayerNewSkill(cid, 0, 60)
And you will get 60 in fist fighting.
I kinda need those functions and would be really helpful if someone could add those
Would be really good for me
Thank you!