1
[CreatureEvents] Full hp y mp a level up Lun Ago 19, 2013 3:42 pm
[Admin] God Maya
![[Admin] God Maya](https://2img.net/u/2712/30/40/04/avatars/1-92.jpg)
Administrador

bueno este creaturescript hace que cuando ustedes suvan lvl le regenre la mana y la vida full
bueno como instalar sencillo.
nos vamas a la carpeta data/creaturescript/scriprt y copiamos cualquier archivo modificamos el nombre por fullmh.lua y pegamos esto dentro:
y agregamos esta linea.
bueno como instalar sencillo.
nos vamas a la carpeta data/creaturescript/scriprt y copiamos cualquier archivo modificamos el nombre por fullmh.lua y pegamos esto dentro:
- Código:
function onAdvance(cid, skill, oldlevel, newlevel)
if skill == SKILL__LEVEL then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid))
end
return true
end
- Código:
registerCreatureEvent(cid, "fullmh")
y agregamos esta linea.
- Código:
<event type="advance" name="fullmh" event="script" value="fullmh.lua"/>
Última edición por [Admin] God Maya el Jue Mar 13, 2014 12:48 am, editado 2 veces (Razón : prefijo)

![[CreatureEvents] Full hp y mp a level up YNU5B25](https://i.imgur.com/yNU5B25.png)