oen432
Legendary OT User
This is for OTServBR.Lua Script Error: [Event Interface]
data/events/scripts/player.lualayer@onMoveItem
data/lib/crafting/upgrade_system_core.lua:840: attempt to index local 'thing' (a nil value)
stack traceback:
[C]: in function '__index'
data/lib/crafting/upgrade_system_core.lua:840: in function 'onItemUpgradeLook'
data/events/scripts/player.lua:332: in function <data/events/scripts/player.lua:330>
otservbr 1.3
Looks likeonMoveItem
is not reaching lastreturn
. Just tried and there are few lines to edit.
AndLua:-- Handle move items to the ground if toPosition.x ~= CONTAINER_POSITION then if item:isContainer() then local container = Container(item.uid) for categoryId = LOOT_START, LOOT_END do if container:hasQuickLootCategory(categoryId) then container:removeQuickLootCategory(categoryId) self:setQuickLootBackpack(categoryId, nil) end end end return true -- HERE end -- Reward System if toPosition.x == CONTAINER_POSITION then local containerId = toPosition.y - 64 local container = self:getContainerById(containerId) if not container then return true -- HERE end
return true
at the end of this function. Change these lines to
Lua:return us_onMoveItem(self, item, fromPosition, toPosition)