• 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!

Lua Error isItem please

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,209
Solutions
2
Reaction score
154
Hello, some erros from tfs 1.2, Otserver 10.80

8xM7IMW.png


I see the script and found nothing on there, the error is on source code?

Doors.lua
http://pastebin.com/VhvvYceV

Libs/Actions.lua
http://pastebin.com/82GebZYZ


Other/Destroy.lua
http://pastebin.com/7iNp4yje
 
before the function isItem()
ask does the item exist, because you cant ask is the thing item if thing doesn't exist
this happens when item doenst exist on item.xml or otbm ?
but i do not know how to edit it, thanks for reply
 
Replace the first if statement inside the function onDestroyItem.
Code:
if not target or type(target) ~= 'userdata' then
    return false
end
 
Back
Top