• 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+ depots bug

Lbtg

Intermediate OT User
Joined
Nov 22, 2008
Messages
2,306
Reaction score
129
Hello i use 8.60 based tfs 1.3 when i open any DEPOT, server gets KILLED(says on putty).

Any ideas why its crashing the server if i open depot ?
 
Solution
Add this instead of your tiles.lua
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)...
The script above should work properly for TFS 1.3 without any errors, Which TFS are you using? Create your own thread and post your errors/script there and I will try to help you, Just mention me so I can see it.
 
Back
Top