Is there something I can change or do with the offline training system to make Magic training work? the statues are all correct, Shielding skills still advance on the skill trainer. (You see a skill trainer.
Use this statue to train your magic level and shielding skill offline.) However when you use (During your absence you trained for 5 hours and 49 minutes.) nothing happens at all for ML.
Global
Use this statue to train your magic level and shielding skill offline.) However when you use (During your absence you trained for 5 hours and 49 minutes.) nothing happens at all for ML.
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])
doRemoveCreature(cid)
else
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUNEEDPREMIUMACCOUNT)
end
return true
end
Code:
<action fromid="18488" toid="18492" script="offlinetraining.lua"/>
Global
Code:
SKILL_FIST = 0
SKILL_CLUB = 1
SKILL_SWORD = 2
SKILL_AXE = 3
SKILL_DISTANCE = 4
SKILL_SHIELD = 5
SKILL_FISHING = 6
SKILL_MAGLEVEL = 7
SKILL_LEVEL = 8