Mariuskens
Sword Art Online 2D-MMORPG
Code:
Lua Script Error: [Event Interface]
data/events/scripts/player.lua:Player@onWrapItem
data/events/scripts/player.lua:392: attempt to call method 'getWrapId' (a nil value)
stack traceback:
[C]: in function 'getWrapId'
data/events/scripts/player.lua:392: in function <data/events/scripts/player.lua:383>
on this lines:
Code:
function Player:onWrapItem(item)
local pos = item:getPosition()
local house = Tile(pos):getHouse()
if house then
return true
end
self:sendTextMessage(MESSAGE_STATUS_SMALL, "You can only wrap and unwrap this item inside a
house.")
return false
end
What can i do to solve it? thnx