• 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 0.X Tiles in map bugged? changes to ice randomly

mRefaat

Marketing and Coding
Joined
Jan 18, 2014
Messages
854
Solutions
3
Reaction score
141
Location
Egypt
Hello,

I saw a problem with tiles that is changes randomly, idk why. Any help?

TFS 0.3.7 rev5969

Untitled.png
 
That is what I said in my reply that its due to ice under bridge and you need to find ids in movements.xml then remove them instead of removing the whole snow Lua script.
But no one reads carefully.
 
That is what I said in my reply that its due to ice under bridge and you need to find ids in movements.xml then remove them instead of removing the whole snow Lua script.
But no one reads carefully.
But this not a solution, just a temporary thing. Also some tiles not added in movements.xml got this problem don’t ask me how but i saw that. After disabling snow.lua everything became well.
 
It is added like this 1000-2000 means from item id 1000 to item id 2000 "just an example".
Try adding this script in your snow.lua instead of removing it.
Lua:
TILE_SNOW = 670
TILE_FOOTPRINT_I = 6594
TILE_FOOTPRINT_II = 6598

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if(isPlayerGhost(cid)) then
        return true
    end

    if(item.itemid == TILE_SNOW) then
        doTransformItem(item.uid, TILE_FOOTPRINT_I)
        doDecayItem(item.uid)
    elseif(item.itemid == TILE_FOOTPRINT_I) then
        doTransformItem(item.uid, TILE_FOOTPRINT_II)
        doDecayItem(item.uid)
    else
        doTransformItem(item.uid, TILE_FOOTPRINT_I)
    end

    return true
end
 
It is added like this 1000-2000 means from item id 1000 to item id 2000 "just an example".
Try adding this script in your snow.lua instead of removing it.
Lua:
TILE_SNOW = 670
TILE_FOOTPRINT_I = 6594
TILE_FOOTPRINT_II = 6598

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if(isPlayerGhost(cid)) then
        return true
    end

    if(item.itemid == TILE_SNOW) then
        doTransformItem(item.uid, TILE_FOOTPRINT_I)
        doDecayItem(item.uid)
    elseif(item.itemid == TILE_FOOTPRINT_I) then
        doTransformItem(item.uid, TILE_FOOTPRINT_II)
        doDecayItem(item.uid)
    else
        doTransformItem(item.uid, TILE_FOOTPRINT_I)
    end

    return true
end
I know what 1000-2000 means, i am not a stupid guy. As i told you there are tiles not added in xml changes to snow also. That was the strange thing, that’s why i just disabled it.
 
It is added like this 1000-2000 means from item id 1000 to item id 2000 "just an example".
Try adding this script in your snow.lua instead of removing it.
Lua:
TILE_SNOW = 670
TILE_FOOTPRINT_I = 6594
TILE_FOOTPRINT_II = 6598

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if(isPlayerGhost(cid)) then
        return true
    end

    if(item.itemid == TILE_SNOW) then
        doTransformItem(item.uid, TILE_FOOTPRINT_I)
        doDecayItem(item.uid)
    elseif(item.itemid == TILE_FOOTPRINT_I) then
        doTransformItem(item.uid, TILE_FOOTPRINT_II)
        doDecayItem(item.uid)
    else
        doTransformItem(item.uid, TILE_FOOTPRINT_I)
    end

    return true
end
Btw thanks for giving the idea :)
 
Back
Top