Boa noite.
Estou para aqui para pedir ajuda de vocês, estou precisando configurar o Magic level dos mages, não esta funcionando o script que peguei aqui no tibiaking, nem um skill esta funcionando no ot
abaixo esta o script
function onLogin(cid)
local playerVoc = getPlayerVocation(cid)
local reqTries = getPlayerRequiredSkillTries
local LevelMin = 80
local Mages = {
ML = 90,
Shield = 20
}
local Paladin = {
Distance = 90,
Shield = 85,
ML = 20
}
local Kina = {
Sword = 90,
Axe = 90,
Club = 90,
Shield = 90,
ML = 9
}
if getPlayerLevel(cid) < LevelMin then
doPlayerAddExperience(cid, (getExperienceForLevel(LevelMin) - getPlayerExperience(cid)))
end
if playerVoc == 1 then
if getPlayerMagLevel(cid) < Mages.ML then
doPlayerAddMagLevel(cid, Mages.ML - getPlayerMagLevel(cid))
end'es.ML then
doPlayerAddMagLevel(cid, Mages.ML - getPlayerMagLevel(cid))
end
if getPlayerSkill(cid, SKILL_SHIELD) < Mages.Shield then
doPlayerAddSkill(cid, SKILL_SHIELD, Mages.Shield - getPlayerSkill(cid, SKILL_SHIELD))
end
elseif playerVoc == 3 then
if getPlayerSkill(cid, SKILL_DISTANCE) < Paladin.Distance then
doPlayerAddSkill(cid, SKILL_DISTANCE, Paladin.Distance - getPlayerSkill(cid, SKILL_DISTANCE))
end
if getPlayerSkill(cid, SKILL_SHIELD) < Paladin.Shield then
doPlayerAddSkill(cid, SKILL_SHIELD, Paladin.Shield - getPlayerSkill(cid, SKILL_SHIELD))
end
if getPlayerMagLevel(cid) < Paladin.ML then
doPlayerAddMagLevel(cid, Paladin.ML - getPlayerMagLevel(cid))
end
elseif playerVoc == 4 then
if getPlayerSkill(cid, SKILL_SWORD) < Kina.Sword then
doPlayerAddSkill(cid, SKILL_SWORD, Kina.Sword - getPlayerSkill(cid, SKILL_SWORD))
end
if getPlayerSkill(cid, SKILL_CLUB) < Kina.Club then
doPlayerAddSkill(cid, SKILL_CLUB, Kina.Club - getPlayerSkill(cid, SKILL_CLUB))
end
if getPlayerSkill(cid, SKILL_AXE) < Kina.Axe then
doPlayerAddSkill(cid, SKILL_AXE, Kina.Axe - getPlayerSkill(cid, SKILL_AXE))
end
if getPlayerSkill(cid, SKILL_SHIELD) < Kina.Shield then
doPlayerAddSkill(cid, SKILL_SHIELD, Kina.Shield - getPlayerSkill(cid, SKILL_SHIELD))
end
if getPlayerMagLevel(cid) < Kina.ML then
doPlayerAddMagLevel(cid, Kina.ML - getPlayerMagLevel(cid))
end
end
return TRUE
end