Caro membro, caso não tenha visto está implícito nas regras:
Servirá até para um melhor atendimento sobre seu pedido, informe as seguintes informações:
Tipo do script:
Protocolo (versão do Tibia):
Servidor utilizado:
Nível de experiência:
Adicionais/Informações:
Não sei se vai funcionar mas tente usar:
local vida = getCreatureMaxHealth(cid)
doCreatureAddHealth(cid, vida/2)
function onUse(cid, item, frompos, item2, topos)local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local exhausted_seconds = 1
local exhausted_storagevalue = 7480
local mana_minimum = 50000
local mana_maximum =50000
local vida = getCreatureMaxHealth(cid)
local mana_add = math.random(mana_minimum, mana_maximum)
if(item.type >= 1) then
if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
if(isPlayer(cid) == 1) then
doSendMagicEffect(topos,12)
doPlayerAddMana(cid, mana_add)
doCreatureAddHealth(cid, vida/2)
doPlayerSay(cid,"I feel the best",1)
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
doChangeTypeItem(item.uid, item.type - 1)
else
doSendMagicEffect(frompos, CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exchausted.")
end
else
doSendMagicEffect(frompos, CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exhausted.")
end
else
if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then
doSendMagicEffect(frompos, CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exhausted.")
else
if(isPlayer(cid) == 1) then
doSendMagicEffect(topos,12)
doPlayerAddMana(cid, mana_add)
doCreatureAddHealth(cid, vida/2)
doPlayerSay(cid,"I feel the best",1)
setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
doRemoveItem(item.uid, 1)
else
doSendMagicEffect(frompos, CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exchausted.")
end
end
end
return 1
end




info
Grupo: Campones
Registrado: 17/08/11
Posts: 35
Reputação: +2
Ae galera queria saber, como eu faço pra runa encher 50% da minha vida.. exemplo eu tenho 10mil devida.. se eu usar ela enche 5 mil.. msm se eu tiver com 100 de life e usar ela.. ela encher 5mil..
quero q ela encha 50% do meu life inteiro..
ai o script \/
se alguem puder me ajuda agradeço desde já =)