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

TFS 1.X+ Items limit ground

Sardinha

New Member
Joined
Feb 19, 2011
Messages
22
Reaction score
2
I'm using Nekiro's TFS 1.3 version 8.6 and I'm looking to limit items on the same floor.
I searched the forum and didn't find any results that could help me.

I saw a post that the guy did this:
local tile = Tile(toPosition)
if tile and tile:getItemCount() > 20 then
self:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
return false
end
Saying to put in player.lua in the onMoveItem function but it didn't work


Brasil:
Estou usando o TFS 1.3 versão 8.6 do Nekiro e estou querendo por limite de itens na mesmo piso.
Procurei pelo fórum e não encontrei nenhum resultado que possa me ajudar.

Eu vi um post que o rapaz fez isso:
local tile = Tile(toPosition)
if tile and tile:getItemCount() > 20 then
self:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
return false
end
Dizendo pra colocar em player.lua na função onMoveItem mas não funcionou
 
 
Mine is TFS 1.3 this 1.5 does not work with an error.

max_tile.lua:7: attempt to index local 'ec' (a nil value)
stack traceback:
[C]: in function '__newindex'
...Pictures\Baiak-Fonticak\data\scripts\custom\max_tile.lua:7: in main chunk
max_tile.lua [error]
 
Back
Top