Don't works offline trainers ,all skills up but magic level don't up.. in 0.3 - 10.10
I have this script:
and I see this line bad:
[18492] = SKILL__MAGLEVEL
changed to
[18492] = SKILL_MAGLEVEL
and try but have same error don't up magic level ,i see compat ,see all functions ,lua ,etc i think made by is sources but i am not sure. nobody know why
I have this script:
Code:
local statue = {
[18488] = SKILL_SWORD,
[18489] = SKILL_AXE,
[18490] = SKILL_CLUB,
[18491] = SKILL_DISTANCE,
[18492] = SKILL__MAGLEVEL
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local premiumDays = getPlayerPremiumDays(cid)
if premiumDays > 0 then
doPlayerSetOfflineTrainingSkill(cid, statue[item.itemid])
doPlayerSetOfflineTrainingSkill(cid, SKILL_MAGLEVEL)
doRemoveCreature(cid)
else
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUNEEDPREMIUMACCOUNT)
end
return true
end
[18492] = SKILL__MAGLEVEL
changed to
[18492] = SKILL_MAGLEVEL
and try but have same error don't up magic level ,i see compat ,see all functions ,lua ,etc i think made by is sources but i am not sure. nobody know why