Ir para conteúdo

Posts Recomendados

Tibia 8.57

nao é tao dificil entao vamos la:

 

Galera preciso de um script q tenha a funçao usar o item q eu escolhi q o caso é o 5886 e ele healar 100k~150k, e dps q eu usa esse item ele ser removido da bp...eu ja tentei fazer pela pasta spells e nao deu certo porque na hora q vai usa nao funfa(nao quer usa o item). Ai dps eu tentei pela actions copiando o seguinte script:

 

local condition = createConditionObject(CONDITION_ATTRIBUTES)

setConditionParam(condition, CONDITION_PARAM_TICKS, 15 * 1000)

setConditionParam(condition, CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT, 190)

setConditionParam(condition, CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT, 145)

 

function onUse(cid, item, fromPosition, itemEx, toPosition)

if exhaustion.check(cid,1988) == true then

time = math.ceil(exhaustion.get(cid,1988))

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can use this again in "..time.." second(s).")

return true

end

if(doAddCondition(cid, condition)) then

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)

doRemoveItem(item.uid)

doCreatureSay(cid, "This could do some good..", TALKTYPE_ORANGE_1)

exhaustion.set(cid,1988,15)

exhaustion.set(cid, 1990, 15)

end

 

return true

end

 

 

Esse script é a funçao pra dar + 90% de life e +45% de mana(esse deu certo) + eu nao sei a funçao pra ele healar 100k~150k

 

ME AJUDEM AE

Link para o comentário
https://xtibia.com/forum/topic/162802-script-para-usar-o-item-q-eu-escolhi-e-ele-heala-100k~150k/
Compartilhar em outros sites

×
×
  • Criar Novo...