Jump to content
  • 0

Fonte Heala Vida ao Clikar


Dennyz Dias

Question

Recommended Posts

  • 0
tenta esse

local config = {
min = 10000, -- Mínimo que pode healar
max = 10000, -- Máximo que pode healar
}
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 12821 then -- id do item que vai ter que clika msm id que vai coloca la na tag do action.xml
doCreatureAddMana(cid, config.min, config.max)
doCreatureAddHealth(cid, config.min, config.max)
doCreatureSay(cid, "Glup,Glup...", TALKTYPE_ORANGE_1)
end
return true
end

<action itemid="id da fonte" event="script" value="nome do arquivo.lua"/>

 

Edited by Tiagone
Link to comment
Share on other sites

  • 0

Tenta assim pra mana

 

 

function onUse(cid)

 

doPlayerAddMana(cid,999) -tanto de mana

doCreatureSay(cid, "Healed Mana", TALKTYPE_ORANGE_1)

end

 

 

 

assim pra vida

 

function onUse(cid)

 

doPlayerAddHealth(cid,999) -tanto de vida q ira healar

doCreatureSay(cid, "Healed Life", TALKTYPE_ORANGE_1)

end

 

 

 

<action itemid="IDDAFONTE" script="fontemana"/>

<action itemid="IDDAFONTE" script="fontevida"/>

Edited by Huezin
Link to comment
Share on other sites

  • 0

function onUse(cid, item, fromPosition, toPosition)

local cfg = {

life = 1000,

mana = 2000

}

if item.uid == 12042 then

doPlayerAddHealth(cid, cfg.life)

doPlayerAddMana(cid, cfg.mana)

doCreatureSay(cid, "Healed", TALKTYPE_ORANGE_1)

end

return true

end

 

<action actionid="12042" script="fonte.lua"/>

Edited by alanmtd1
Link to comment
Share on other sites

  • 0

Tenta assim pra mana

 

 

function onUse(cid)

 

doPlayerAddMana(cid,999) -tanto de mana

doCreatureSay(cid, "Healed Mana", TALKTYPE_ORANGE_1)

end

 

 

 

assim pra vida

 

function onUse(cid)

 

doPlayerAddHealth(cid,999) -tanto de vida q ira healar

doCreatureSay(cid, "Healed Life", TALKTYPE_ORANGE_1)

end

 

 

 

<action itemid="IDDAFONTE" script="fontemana"/>

<action itemid="IDDAFONTE" script="fontevida"/>

xe nao deu ainda erro no distro, mais obrigado manoow

function onUse(cid, item, fromPosition, toPosition)

local cfg = {

life = 1000,

mana = 2000

}

if item.uid == 12042 then

doPlayerAddHealth(cid, cfg.life)

doPlayerAddMana(cid, cfg.mana)

doCreatureSay(cid, "Healed", TALKTYPE_ORANGE_1)

end

return true

end

 

<action actionid="12042" script="fonte.lua"/>

nao deu cara porem nao da erro, so nao funfa mais vlww manoow

Link to comment
Share on other sites

  • 0

Qual versão do Server?

Se for 8.60 e aquele não deu teste esse:

 

function onUse(cid, item, fromPosition, toPosition)

local cfg = {

life = 1000,

mana = 2000

}

if isPlayer(cid) then

doPlayerAddHealth(cid, cfg.life)

doPlayerAddMana(cid, cfg.mana)

doCreatureSay(cid, "Healed", TALKTYPE_ORANGE_1)

end

return true

end

 

<action actionid="12042" script="fonte.lua"/>

Edited by alanmtd1
Link to comment
Share on other sites

  • 0

Olha dei uma mudada la

Se tiver whatsapp me add que eu te ajudo em scripts se quizer 27 99868-3573

blz vo te add to precisando alguns pro server que to fasendo

 

alguns basicos

 

mais ai nao funfo deu erro agora no distro!

Link to comment
Share on other sites

  • 0

function onUse(cid, item, frompos, item2, topos)

local cfg = {

life = 1000,

mana = 2000

}

if item.uid == 12042 then

doPlayerAddHealth(cid, cfg.life)

doPlayerAddMana(cid, cfg.mana)

doCreatureSay(cid, "Healed", TALKTYPE_ORANGE_1)

end

return true

end

 

 

 

Lembrando vai da use em 1 certo item e vai curar os 2 sangue e mana.

Tente esse todos que eu mandei funciona

Link to comment
Share on other sites

  • 0

function onUse(cid, item, frompos, item2, topos)

local cfg = {

life = 1000,

mana = 2000

}

if item.uid == 12042 then

doPlayerAddHealth(cid, cfg.life)

doPlayerAddMana(cid, cfg.mana)

doCreatureSay(cid, "Healed", TALKTYPE_ORANGE_1)

end

return true

end

 

 

 

Lembrando vai da use em 1 certo item e vai curar os 2 sangue e mana.

Tente esse todos que eu mandei funciona

nao deu manin, sem erro so quando cliko acontece nada

Link to comment
Share on other sites

×
×
  • Create New...