runa que heala life por por porcentagem

notle2012
em Actions e Talkactions

notle2012

uoʇן£
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 03/01/12Posts: 884Char no Tibia: Segredo

Primeiro vá em / data / actions/ scripts

cria um arquivo.lua

function onUse(cid, item, frompos, item2, topos)
exhaust,lifemax,porce = 1100,math.max((getPlayerLevel(cid)*10)),9 -- 9%
if getPlayerStorageValue(cid, 14725) >= os.time() then return true end						
if getPlayerLevel(cid) > (lifemax/10-1) then
doCreatureAddHealth(item2.uid, math.random(math.floor(getCreatureMaxHealth(cid)/100*porce/1.4),math.ceil(getCreatureMaxHealth(cid)/100*porce)))
doSendMagicEffect(topos, CONST_ME_MAGIC_BLUE)
doCreatureSay(item2.uid, "Aaaah...", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 14725, os.time() + exhaust / 1000)
return true
end
end

actions.xml

<action itemid="iddoitem" script="arquivo.lua"/>

para alterar quantos porcentos quer que heala altera aqui o red

exhaust,lifemax,porce = 1100,math.max((getPlayerLevel(cid)*10)),9 -- 9%

Por Favor quando for fazer pedidos faz o pedido com mais clareza e com os mínimos detalhes
GOSTO DOS MEUS SCRIPT CLICK EM CURTIR :D

 

sistema de fome

TROCA TROCA

sistema coliseum by notle v1

new sistema [KILLER-UP]

 

 

jcLmJPT.png

Queissozik

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 08/03/13Posts: 5

Bem legal ele notle .

 

amanha do rep + pq acabou hoje pra você irei utilizar

BrenoNeto

Art is Bang.
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 05/10/12Posts: 589Gênero: MasculinoChar no Tibia: Esqueci.

Sistema bem legal, vai ajudar muito no meu projeto REP+ vlw :D

marciosoliano

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 17/09/19Posts: 1

teria como fazer esse mesmo pra mana ?! sou bem iniciante. se conseguir me ajuda muito!!!

djteteh

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 05/11/13Posts: 4
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