Bom Pessoal Xtibiano,Aqui estou eu dinovo,vim Postar Uma Quest(action) Que adiciona Health ao Player,por exemplo ele tem 4000 de vida fazendo a quest ficará com 5000 de vida!.
Primeiro passo vá em actions/Scripts/ crie um arquivo 1452.lua e cole isso dentro:
function onUse(cid, item, frompos, item2, topos) if item.uid == 1452 then queststatus = getPlayerStorageValue(cid,1452) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"Você ganhou 1k de health!.") local health = 1000 setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + health) setPlayerStorageValue(cid,1452,1) else doPlayerSendTextMessage(cid,22,"Você pegou sua hp!") end else return 0 end return 1 end
Agora cole está tag em actions.xml:
<action actionid="1452" script="1452.lua" />
Pra Quem procurava por algo parecido está ae espero que gostem!
REP+ por favor.