• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

upgrade system

jel

Member
Joined
Mar 22, 2014
Messages
302
Reaction score
12
hello, I'm trying to use this upgrade system, but when trying to use it, an error occurs in the console

distro canary

line 432:
Code:
local function isElemental(item)
    return item:getType():getAbilities().elementDamage > 0   --- getAbilities();
end


Lua:
scriptId: [/home/canary-main/data-otservbr-global/scripts/testes/upgrade_action.lua:callback]
timerEvent: []
 callbackId:[]
function: []
error [...n/data-otservbr-global/scripts/testes/upgrade_action.lua:432: attempt to call method 'getAbilities' (a nil value)
stack traceback:
        [C]: in function 'getAbilities'
        ...n/data-otservbr-global/scripts/testes/upgrade_action.lua:432: in function 'isElemental'
        ...n/data-otservbr-global/scripts/testes/upgrade_action.lua:465: in function 'doUpgradeItem'
        ...n/data-otservbr-global/scripts/testes/upgrade_action.lua:617: in function <...n/data-otservbr-global/scripts/testes/upgrade_action.lua:557>]
 
Back
Top