visitant.lua issues
Posted: Sun Nov 15, 2015 10:42 pm
When a player has visitant status, this script causes an error message to be displayed in the map server's log:
If player is corrected to target, the map server crashes.
This change worked a few weeks back before the recent update. Commenting the setVar line stops the server from crashing.
Code: Select all
[Error] [0m luautils::onEffectTick: scripts/globals/effects/visitant.lua:19: attempt to index global 'player' (a nil value)
Code: Select all
if (target:getVar("Abyssea_Time") >= 3) then
target:setVar("Abyssea_Time",duration); -- This line seems to crash the map server after correction...