this scripts for remove items on ground i need add time for remove in 30 seconds
if is possible msg for player Tfs 1.2
events player>onMoveItem
or in movements
if is possible msg for player Tfs 1.2
events player>onMoveItem
Lua:
local cls = Tile(toPosition)
if cls and not cls:getHouse() then
if cls:hasFlag(TILESTATE_PROTECTIONZONE) then
item:remove()
return false
end
or in movements
Lua:
local item_exceptions = {} -- exclude items for not clean
function onAddItem(item, tile, pos)
if not isInArray(item_exceptions, item.itemid) then
item:remove()
end
return true
end
Last edited: