ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
Hi, I use nekiro 1.4 for 8.6 and I have a trouble with the default training offline script. I wonder if this function is implemented on this version since 8.6 is a downgrade and not a native feature of the version.
The code
Regards!!
The code
Code:
local statues = {
[12663] = SKILL_SWORD,
[12664] = SKILL_AXE,
[12665] = SKILL_CLUB,
[12666] = SKILL_DISTANCE,
[12667] = SKILL_MAGLEVEL
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local skill = statues[item:getId()]
if not player:isPremium() then
player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUNEEDPREMIUMACCOUNT))
return true
end
if player:isPzLocked() then
return false
end
player:setOfflineTrainingSkill(skill)
player:remove()
return true
end
Regards!!