Jump to content

Question

Ola pessoal do xtibia.

Estou hoje a perguntar como poem pras moves dos pokemon do server "pokemon dash" serem pelo level do player não pelo level do pokemon.

E como poem pra subir a vida e o ataque conforme o level do player.

3 answers to this question

Recommended Posts

  • 0

1. Preciso do script para fazer esse.

 

 

Crie um arquivo chamado de health.lua

 

function onThink(cid, interval)

local sum = getCreatureSummons(cid)

local health = getCreatureMaxHealth(sum[1])

if #sum[1]>= 1 then

setCreatureMaxHealth(sum[1], health+getPlayerLevel(cid)*2)

return true

end

return true

end

 

Coloca esta tag em creaturescripts.xml

 

 

<event type="think" name="uphealth" event="script" value="health.lua"/>

Edited by caotic
Guest
This topic is now closed to further replies.
×
×
  • Create New...