tiles.lua
local increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063}
local decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062}
function onStepIn(creature, item, position, fromPosition)
if not increasing[item.itemid] then
return true
end
if not creature:isPlayer() or creature:isInGhostMode() then
return true
end
item:transform(increasing[item.itemid])
if item.actionid >= 1000 then
if creature:getLevel() < item.actionid - 1000 then
creature:teleportTo(fromPosition, false)
position:sendMagicEffect(CONST_ME_MAGIC_BLUE)...
made totaly new char all seems fine, till i open yalahar depot and server gets killed.Have you set town to depot? I am using same TFS and I can open it normally.
Try fresh character and try default tfs data-pack so we know if its server-side or source-side
i use this project:Which floor? Which server are you using?
NO actionid or uniqidIts server side, I tried to do it with Nekiro's downgraded TFS 1.3 and it never happened.
Your tiles has any action/unique ID? Which tiles are you using?
View attachment 49648
its good vps 8x cpu, 8 ram.Not enough memory? Looks like you are running huge server on a low system requirements pc/host? Not sure.
local increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063}
local decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062}
function onStepIn(creature, item, position, fromPosition)
if not increasing[item.itemid] then
return false
end
local player = creature:getPlayer()
if not player or player:isInGhostMode() then
return true
end
item:transform(increasing[item.itemid])
if item.actionid >= 1000 then
if player:getLevel() < item.actionid - 1000 then
player:teleportTo(fromPosition, false)
position:sendMagicEffect(CONST_ME_MAGIC_BLUE)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The tile seems to be protected against unwanted intruders.")
end
return true
end
if position:getTile():hasFlag(TILESTATE_PROTECTIONZONE) then
local lookPosition = player:getPosition()
lookPosition:getNextPosition(player:getDirection())
local depotItem = lookPosition:getTile():getItemByType(ITEM_TYPE_DEPOT)
if depotItem ~= nil then
--local depotItems = player:getDepotChest(getDepotId(depotItem.uid), true):getItemHoldingCount()
local depotItems = 0
for id = 1, configManager.getNumber("depotBoxes") do
depotItems = depotItems + player:getDepotChest(id, true):getItemHoldingCount()
end
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, "Your depot contains " .. depotItems .. " item" .. (depotItems > 1 and "s." or "."))
return true
end
end
if item.actionid ~= 0 and player:getStorageValue(item.actionid) <= 0 then
player:teleportTo(fromPosition, false)
position:sendMagicEffect(CONST_ME_MAGIC_BLUE)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The tile seems to be protected against unwanted intruders.")
return true
end
return true
end
function onStepOut(creature, item, position, fromPosition)
if not decreasing[item.itemid] then
return false
end
if creature:isPlayer() and creature:isInGhostMode() then
return true
end
item:transform(decreasing[item.itemid])
return true
end
herePost yourtiles.lua
In config.lua there are nothing about depotDo you have this in yourconfig.lua
or in your server? This is not a 8.6 thing, Remove it.
Lua:depotBoxes
tiles.lua
local increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063}
local decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062}
function onStepIn(creature, item, position, fromPosition)
if not increasing[item.itemid] then
return true
end
if not creature:isPlayer() or creature:isInGhostMode() then
return true
end
item:transform(increasing[item.itemid])
if item.actionid >= 1000 then
if creature:getLevel() < item.actionid - 1000 then
creature:teleportTo(fromPosition, false)
position:sendMagicEffect(CONST_ME_MAGIC_BLUE)
creature:sendTextMessage(MESSAGE_INFO_DESCR, "The tile seems to be protected against unwanted intruders.")
end
return true
end
if Tile(position):hasFlag(TILESTATE_PROTECTIONZONE) then
local lookPosition = creature:getPosition()
lookPosition:getNextPosition(creature:getDirection())
local depotItem = Tile(lookPosition):getItemByType(ITEM_TYPE_DEPOT)
if depotItem then
local depotItems = creature:getDepotChest(getDepotId(depotItem:getUniqueId()), true):getItemHoldingCount()
creature:sendTextMessage(MESSAGE_STATUS_DEFAULT, "Your depot contains " .. depotItems .. " item" .. (depotItems > 1 and "s." or "."))
return true
end
end
if item.actionid ~= 0 and creature:getStorageValue(item.actionid) <= 0 then
creature:teleportTo(fromPosition, false)
position:sendMagicEffect(CONST_ME_MAGIC_BLUE)
creature:sendTextMessage(MESSAGE_INFO_DESCR, "The tile seems to be protected against unwanted intruders.")
return true
end
return true
end
function onStepOut(creature, item, position, fromPosition)
if not decreasing[item.itemid] then
return true
end
if creature:isPlayer() and creature:isInGhostMode() then
return true
end
item:transform(decreasing[item.itemid])
return true
end
depotBoxes
because it doesn't exist on 8.6 and looks like you took it from higher client server 10.x or 12.xi took it from 8.60 1.3 tfs project :O oke i will replace itAdd this instead of yourtiles.lua
I only removed theLua:local increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063} local decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062} function onStepIn(creature, item, position, fromPosition) if not increasing[item.itemid] then return false end local player = creature:getPlayer() if not player or player:isInGhostMode() then return true end item:transform(increasing[item.itemid]) if item.actionid >= 1000 then if player:getLevel() < item.actionid - 1000 then player:teleportTo(fromPosition, false) position:sendMagicEffect(CONST_ME_MAGIC_BLUE) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The tile seems to be protected against unwanted intruders.") end return true end if position:getTile():hasFlag(TILESTATE_PROTECTIONZONE) then local lookPosition = player:getPosition() lookPosition:getNextPosition(player:getDirection()) local depotItem = lookPosition:getTile():getItemByType(ITEM_TYPE_DEPOT) if depotItem then local depotItems = creature:getDepotChest(getDepotId(depotItem:getUniqueId()), true):getItemHoldingCount() creature:sendTextMessage(MESSAGE_STATUS_DEFAULT, "Your depot contains " .. depotItems .. " item" .. (depotItems > 1 and "s." or ".")) return true end if item.actionid ~= 0 and player:getStorageValue(item.actionid) <= 0 then player:teleportTo(fromPosition, false) position:sendMagicEffect(CONST_ME_MAGIC_BLUE) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The tile seems to be protected against unwanted intruders.") return true end return true end function onStepOut(creature, item, position, fromPosition) if not decreasing[item.itemid] then return false end if creature:isPlayer() and creature:isInGhostMode() then return true end item:transform(decreasing[item.itemid]) return true end end
depotBoxes
because it doesn't exist on 8.6 and looks like you took it from higher client server 10.x or 12.x
Add this instead of yourtiles.lua
I only removed theLua:local increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063} local decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062} function onStepIn(creature, item, position, fromPosition) if not increasing[item.itemid] then return false end local player = creature:getPlayer() if not player or player:isInGhostMode() then return true end item:transform(increasing[item.itemid]) if item.actionid >= 1000 then if player:getLevel() < item.actionid - 1000 then player:teleportTo(fromPosition, false) position:sendMagicEffect(CONST_ME_MAGIC_BLUE) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The tile seems to be protected against unwanted intruders.") end return true end if position:getTile():hasFlag(TILESTATE_PROTECTIONZONE) then local lookPosition = player:getPosition() lookPosition:getNextPosition(player:getDirection()) local depotItem = lookPosition:getTile():getItemByType(ITEM_TYPE_DEPOT) if depotItem then local depotItems = creature:getDepotChest(getDepotId(depotItem:getUniqueId()), true):getItemHoldingCount() creature:sendTextMessage(MESSAGE_STATUS_DEFAULT, "Your depot contains " .. depotItems .. " item" .. (depotItems > 1 and "s." or ".")) return true end if item.actionid ~= 0 and player:getStorageValue(item.actionid) <= 0 then player:teleportTo(fromPosition, false) position:sendMagicEffect(CONST_ME_MAGIC_BLUE) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The tile seems to be protected against unwanted intruders.") return true end return true end function onStepOut(creature, item, position, fromPosition) if not decreasing[item.itemid] then return false end if creature:isPlayer() and creature:isInGhostMode() then return true end item:transform(decreasing[item.itemid]) return true end end
depotBoxes
because it doesn't exist on 8.6 and looks like you took it from higher client server 10.x or 12.x
[Warning - Event::checkScript] Event onStepOut not found. scripts/others/tiles.lua
[Warning - Event::checkScript] Event onStepOut not found. scripts/others/tiles.lua
[Warning - Event::checkScript] Event onStepOut not found. scripts/others/tiles.lua
[Warning - Event::checkScript] Event onStepOut not found. scripts/others/tiles.lua
[Warning - Event::checkScript] Event onStepOut not found. scripts/others/tiles.lua
Thanks alot brother <3Edited it, Now it should work.