Bem legal ele notle .
amanha do rep + pq acabou hoje pra você irei utilizar
By notle2012, 10 de mar. de 2013 in Actions e Talkactions
info
Group: Campones
Joined: 08/03/13
Posts: 5
Reputation: 0

Bem legal ele notle .
amanha do rep + pq acabou hoje pra você irei utilizar
Edited Março 12 by Queissozik
info
Group: Conde
Joined: 05/10/12
Posts: 589
Reputation: +170
Gender: Masculino
Tibia Character: Esqueci.

Sistema bem legal, vai ajudar muito no meu projeto REP+ vlw ![]()
info
Group: Campones
Joined: 17/09/19
Posts: 1
Reputation: 0

teria como fazer esse mesmo pra mana ?! sou bem iniciante. se conseguir me ajuda muito!!!
Em 26/02/2020 em 14:57, marciosoliano disse:teria como fazer esse mesmo pra mana ?! sou bem iniciante. se conseguir me ajuda muito!!!
function onUse(cid, item, frompos, item2, topos)
exhaust,manamax,porce = 1100,math.max((getPlayerLevel(cid)*10)),5 -- 9%
if getPlayerStorageValue(cid, 14725) >= os.time() then return true end
if getPlayerLevel(cid) > (manamax/10-1) then
doCreatureAddMana(item2.uid, math.random(math.floor(getCreatureMaxMana(cid)/100*porce/1.4),math.ceil(getCreatureMaxMana(cid)/100*porce)))
doSendMagicEffect(topos, CONST_ME_MAGIC_BLUE)
doCreatureSay(item2.uid, "Mana Ha...", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 14725, os.time() + exhaust / 1000)
return true
end
end
info
Group: Conde
Joined: 03/01/12
Posts: 884
Reputation: +233
Tibia Character: Segredo
Primeiro vá em / data / actions/ scripts
cria um arquivo.lua
actions.xml
para alterar quantos porcentos quer que heala altera aqui o red
exhaust,lifemax,porce = 1100,math.max((getPlayerLevel(cid)*10)),9 -- 9%
Edited Março 10 by notle2012