Poste o código das seguintes funções:
onPokeHealthChange(cid) doPlayerChangeModeIcon(cid)
local usando = pokeballs[btype].use
local usando = pokeballs[btype]
if not usando then
doPlayerSendTextMessage(cid, 27, "Error in your pokeball.")
print(getCreatureName(cid).."'s pokeball presented error. Pokeball type: "..btype.." - NOT IN pokeballs TABLE (lib)")
return true
end
usando = usando.use
function doRegenerateWithY(cid, sid)
if not isPlayer(cid) or not isCreature(sid) then return true end
local ball = getPlayerSlotItem(cid, 8) or getPlayerSlotItem(getCreatureMaster(cid), 8)
local Tiers = {
[1] = {bonus = Regen1},
[2] = {bonus = Regen2},
[3] = {bonus = Regen3},
[4] = {bonus = Regen4},
[5] = {bonus = Regen5},
[6] = {bonus = Regen6},
[7] = {bonus = Regen7},
}
if #getCreatureSummons(cid) > 0 then
local Tier = getItemAttribute(ball.uid, "heldy") or 0
if Tier > 0 and Tier < 8 and Tiers[Tier] then
if not getCreatureCondition(cid, CONDITION_INFIGHT) then
if getCreatureHealth(sid) < getCreatureMaxHealth(sid) then
addEvent(function() doCreatureAddHealth(sid, Tiers[Tier].bonus) doSendAnimatedText(getThingPos(sid), "+ "..Tiers[Tier].bonus, 30) end, 0)
end
addEvent(doRegenerateWithY, 1000, cid, sid)
else
addEvent(doRegenerateWithY, 1000, cid, sid)
end
end
end
end
function doCureWithY(cid, sid)
if not isPlayer(cid) or not isCreature(sid) then return true end
local ball = getPlayerSlotItem(cid, 8) or getPlayerSlotItem(getCreatureMaster(cid), 8)
local Tiers = {
[8] = {chance = Cure1},
[9] = {chance = Cure2},
[10] = {chance = Cure3},
[11] = {chance = Cure4},
[12] = {chance = Cure5},
[13] = {chance = Cure6},
[14] = {chance = Cure7},
}
local Tier = getItemAttribute(ball.uid, "heldy") or 0
if #getCreatureSummons(cid) > 0 and Tiers[Tier] then
if Tier > 7 and Tier < 15 then
if math.random(1, 100) <= Tiers[Tier].chance then
doCureStatus(sid, "all")
doSendMagicEffect(getThingPosWithDebug(sid), 14)
end
addEvent(doCureWithY, 1000, cid, sid)
end
end
end




info
Grupo: Marquês
Registrado: 23/09/12
Posts: 1k
Reputação: +87
Gênero: Masculino
Bom minha net caiu e nao postou --'
irei escreber denovo porem + resumido
gente, tenho 1 PDA on a 9 meses... fiz tantas mudanças q é impossivel lembrar de tudo
mas nada daba error nao... ultimamente o servidor msm estando en host fica dando MUIIIIITO erro no log e por isto o jogo fica muito lag...
tanto lag assim q nem eu to querendo logar no jogo...
enfim quem tiver como me ajudar eu agradesceria muito irei postar alguns dos MUITOS erros aki
mais erros
Editado Fevereiro 12 por josegvb