Ir para conteúdo
  • 0

Pokemove dando lag erro no log


Josegvb

Pergunta

essa spell ta dando bug no meu server PDA alguem tem como me ajudar? ela funfa direito mas da lag

 

 

[04/02/2016 22:57:38] [Error - TalkAction Interface]
[04/02/2016 22:57:38] In a timer event called from:
[04/02/2016 22:57:38] data/talkactions/scripts/move1.lua:onSay
[04/02/2016 22:57:38] Description:
[04/02/2016 22:57:38] (luaGetCreatureHealth) Creature not found
[04/02/2016 22:57:38] [Error - TalkAction Interface]
[04/02/2016 22:57:38] In a timer event called from:
[04/02/2016 22:57:38] data/talkactions/scripts/move1.lua:onSay
[04/02/2016 22:57:38] Description:
[04/02/2016 22:57:38] data/lib/pokemon moves.lua:2330: attempt to perform arithmetic on a boolean value
[04/02/2016 22:57:38] stack traceback:
[04/02/2016 22:57:38] data/lib/pokemon moves.lua:2330: in function <data/lib/pokemon moves.lua:2328>

 

 

 

elseif spell == "Aqua Ring" then
local min = (getCreatureMaxHealth(cid) * 5) / 100
local max = (getCreatureMaxHealth(cid) * 7) / 100
local function doHealOverTime(cid, min, max)
local amount = math.random(min, max)
if (getCreatureHealth(cid) + amount) >= getCreatureMaxHealth(cid) then
amount = -(getCreatureHealth(cid)-getCreatureMaxHealth(cid))
return false
end
if getCreatureHealth(cid) < getCreatureMaxHealth(cid) then
doCreatureAddHealth(cid, amount)
doSendAnimatedText(getThingPosWithDebug(cid), "+"..amount.."", 65)
doSendMagicEffect(getThingPosWithDebug(cid), 132)
end
end
for a = 0, 24 do
addEvent(doHealOverTime, 500*a, cid, min, max)
end

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

  • 0

bom eu uso essa

 

 

 

elseif spell == "Aqua Ring" then
local min = (getCreatureMaxHealth(cid)) / 100
local max = (getCreatureMaxHealth(cid)) / 100
local function doHealArea(cid, min, max)
if not isCreature(cid) then return false end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return false end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
local amount = isSummon(cid) and getMasterLevel(cid)+getPokemonBoost(cid)+500 or getPokemonLevel(cid)+500
if (getCreatureHealth(cid) + amount) >= getCreatureMaxHealth(cid) then
amount = -(getCreatureHealth(cid)-getCreatureMaxHealth(cid))
end
if getCreatureHealth(cid) ~= getCreatureMaxHealth(cid) then
doCreatureAddHealth(cid, amount)
doSendAnimatedText(getThingPosWithDebug(cid), "+"..amount.."", 65)
end
end
doSendMagicEffect(getThingPosWithDebug(cid), 132)
doHealArea(cid, min, max)
times = {0, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000}
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 10000, cid, 3644587, -1)
for i = 1, #times do--alterado v1.4
addEvent(doHealArea, times, cid)
end

e nunca deu error mano
Link para o comentário
Compartilhar em outros sites

  • 0

 

bom eu uso essa

 

 

 

elseif spell == "Aqua Ring" then
local min = (getCreatureMaxHealth(cid)) / 100
local max = (getCreatureMaxHealth(cid)) / 100
local function doHealArea(cid, min, max)
if not isCreature(cid) then return false end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return false end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
local amount = isSummon(cid) and getMasterLevel(cid)+getPokemonBoost(cid)+500 or getPokemonLevel(cid)+500
if (getCreatureHealth(cid) + amount) >= getCreatureMaxHealth(cid) then
amount = -(getCreatureHealth(cid)-getCreatureMaxHealth(cid))
end
if getCreatureHealth(cid) ~= getCreatureMaxHealth(cid) then
doCreatureAddHealth(cid, amount)
doSendAnimatedText(getThingPosWithDebug(cid), "+"..amount.."", 65)
end
end
doSendMagicEffect(getThingPosWithDebug(cid), 132)
doHealArea(cid, min, max)
times = {0, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000}
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 10000, cid, 3644587, -1)
for i = 1, #times do--alterado v1.4
addEvent(doHealArea, times, cid)
end

e nunca deu error mano

 

 

bom, nem é oque eu queria mas serve ne, agora só preciso configurar pra ficar igual a que eu queria ^^ valeu rp+

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...