-- MY FUNCTIONS --
function getBallHealth(cid) -- pega vida do pokemon
if not isPlayer(cid) then
getCreatureHealth(getCreatureSummons(cid)[1])
end
return true
end
function getBallMaxHealth(cid) -- pega vida maxima do pokemon
if not isPlayer(cid) then
getCreatureMaxHealth(getCreatureSummons(cid)[1])
end
return true
end
function PokeInfo(cid, item)
if getCreatureMaster(cid) > 0 then
getPlayerSlotItem(getBallHealth(cid) .. "|" .. getBallMaxHealth(cid), 7)
getPokemonExperienceByLevel(lvl)
end
return doSendPlayerExtendedOpcode(cid, 135)
end
Discord: ZoR#9373