Ok so im just wondering how to fix the training statues on right click to get offline training, because the beds on the server works while training offline but not the statues? need any action scripts? btw 0.2.15 
Last edited:
there is nothingneed scripts
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
<action fromid="18488" toid="18492" script="offlinetraining.lua"/>
Seems Magic training, does not work. Any ideas why?Try this:
In actions:
LUA: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
XML:<action fromid="18488" toid="18492" script="offlinetraining.lua"/>