Skymagnum

Untitled

May 5th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. function(cid)
  2.  
  3. local vocationConfig = {
  4.     [1] = {manaPerLevel = 5, healthPerLevel = 5},
  5.     [2] = {manaPerLevel = 15, healthPerLevel = 15},
  6.     [3] = {manaPerLevel = 25, healthPerLevel = 25},
  7.     [4] = {manaPerLevel = 45, healthPerLevel = 45},
  8. }
  9.  
  10. local voc = getPlayerVocation(cid)
  11. local lvl = getPlayerLevel(cid)
  12.  
  13.     setCreatureMaxHealth(cid, vocationConfig[voc].healthPerLevel * lvl)
  14.     setCreatureMaxMana(cid, vocationConfig[voc].manaPerLevel * lvl)
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment