Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(cid)
- local vocationConfig = {
- [1] = {manaPerLevel = 5, healthPerLevel = 5},
- [2] = {manaPerLevel = 15, healthPerLevel = 15},
- [3] = {manaPerLevel = 25, healthPerLevel = 25},
- [4] = {manaPerLevel = 45, healthPerLevel = 45},
- }
- local voc = getPlayerVocation(cid)
- local lvl = getPlayerLevel(cid)
- setCreatureMaxHealth(cid, vocationConfig[voc].healthPerLevel * lvl)
- setCreatureMaxMana(cid, vocationConfig[voc].manaPerLevel * lvl)
- end
Advertisement
Add Comment
Please, Sign In to add comment