• 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
 
It happens when players move on it? Try removing the ice under the bridge.
 
Check tile ids which are getting changed like this then in your data\movements\movements.xml see if they are added as StepIn or StepOut then try removing their ids.
 
if you have just added a new script check if it is the reason. and check items.xml maybe its not clean version that decays from item id X yo item id Y
I already checked the items.xml and found nothing refer to make something like that.
 
send your movements.xml

XML:
    <!-- Snow footprint tiles -->
    <movevent type="StepOut" itemid="670" event="script" value="snow.lua"/>
    <movevent type="StepOut" itemid="6580-6593" event="script" value="snow.lua"/>

maybe this is the reason?
 
XML:
    <!-- Snow footprint tiles -->
    <movevent type="StepOut" itemid="670" event="script" value="snow.lua"/>
    <movevent type="StepOut" itemid="6580-6593" event="script" value="snow.lua"/>

maybe this is the reason?
not sure about this
Code:
itemid="6580-6593"
in tfs 1.x it should be fromid="X" toid="Y" so try to block this comment and test and don't forget to search for snow.lua in your movement.xml maybe it is added one more time with incorrect ID
 
Also there is a xml file with items.xml I made it like that

randomization.xml
XML:
<?xml version="1.0" encoding="UTF-8"?>
<randomization>
    <config defaultChance="0"/>
<!--    <palette itemid="101" randomize="5711;5726" chance="70"/>
    <palette fromid="351" toid="353" randomize="352;354"/>
    <palette fromid="708" toid="711" randomize="709;711"/>
    <palette fromid="3153" toid="3157" randomize="3154;3157"/>
    <palette fromid="7062" toid="7066" randomize="7063;7066"/>
    <palette itemid="670" randomize="6580;6593"/>
    <palette fromid="6580" toid="6593" randomize="6580;6593"/>
    <palette itemid="671" randomize="6683;6686"/>
    <palette fromid="6683" toid="6686" randomize="6683;6686"/>
    <palette itemid="4405" randomize="4406;4421"/>
    <palette itemid="4422" randomize="4423;4438"/>
    <palette fromid="4526" toid="4541" randomize="4527;4541"/>
    <palette itemid="4756" randomize="4527;4541"/>
    <palette fromid="4608" toid="4619" randomize="4608;4619"/>
    <palette fromid="4691" toid="4701" randomize="4692;4701"/>
    <palette fromid="5405" toid="5410" randomize="5406;5410"/>
    <palette fromid="6804" toid="6809" randomize="6805;6809"/> -->
</randomization>
Idk if it makes problem or not, I disabled it like u see
 
not sure about this
Code:
itemid="6580-6593"
in tfs 1.x it should be fromid="X" toid="Y" so try to block this comment and test and don't forget to search for snow.lua in your movement.xml maybe it is added one more time with incorrect ID
Lua:
TILE_SNOW = 670
TILE_FOOTPRINT_I = 6594

function onStepOut(cid, item, position, fromPosition)
    if(isPlayerGhost(cid)) == false then
        if(item.itemid == TILE_SNOW) then
            doDecayItem(doCreateItem(TILE_FOOTPRINT_I, fromPosition))
        else
            doDecayItem(doCreateItem(item.itemid + 15, fromPosition))
        end
    end

    return true
end
snow.lua
 
not sure about this
Code:
itemid="6580-6593"
in tfs 1.x it should be fromid="X" toid="Y" so try to block this comment and test and don't forget to search for snow.lua in your movement.xml maybe it is added one more time with incorrect ID
disable it like that?
Lua:
    <!-- Snow footprint tiles -->
    <movevent type="StepOut" itemid="670" event="script" value="snow.lua"/>
<!--    <movevent type="StepOut" itemid="6580-6593" event="script" value="snow.lua"/> -->
 
Back
Top