what u mean,?
u change in same way?
when they use armor they get 1000 hp more and 200 mana more.
Use functions in movement.
and in lua file:Code:onEquipItem onDeEquipItem
Code:setCreatureMaxHealth(cid, health) setCreatureMaxMana(cid, mana)
function onEquipItem(cid)
for health, mana = 1000, 1000 do
if isCreature(cid) == true then
return setCreatureMaxHealth(cid, health) and setCreatureMaxMana(cid, mana)
end
<attribute key="maxhitpoints" value="1000"/>
<attribute key="maxmanapoints" value="2000"/>
<movevent type="Equip" itemid="[COLOR="Red"]iditem[/COLOR]" slot="armor" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="[COLOR="Red"]iditem[/COLOR]" slot="armor" event="function" value="onDeEquipItem"/>