Crie um arquivo lua chamado de life em moveevents:
lock = 12 --- Id do outfit heal = 200 -- Quanto de vida ele ira ganhar function onEquip(cid, item, slot) local outfit = getCreatureOutfit(cid) if outfit.lookType == lock then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+heal) setPlayerStorageValue(cid, 2212, 1) end return true end function onDeEquip(cid, item, slot) if getPlayerStorageValue(cid, 2212) == 1 then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)-heal) setPlayerStorageValue(cid, 2212, 0) end return true end
Agora vá em moveevents.xml e coloque esta tag:
<movevent type="Equip" itemid="2461" slot="head" event="script" value="life.lua"/>
<movevent type="DeEquip" itemid="2461" slot="head" event="script" value="life.lua"/>


info
Grupo: Campones
Registrado: 13/12/12
Posts: 45
Reputação: +1
Char no Tibia: Tauros Br
Ae Pessoal!
Eu queria 1 scripting que adicionava life ao player quando usa tal outfit! (iten) e quando tirava o iten a life do player voltasse ao normal!
ex: o player coloca na head o iten! e ele se trasnforma no type mostro id 113 e adicionava 20k de hp nele! e quando ele tirasse da head a vida do playeer voltasse ao normal!