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

Solved Snow/ice is bugged, 0.3.7 5969.

ohman

Member
Joined
Oct 24, 2008
Messages
294
Reaction score
8
Location
Sweden
Hi! When a player walks into some squares they change and become like this:

b85535.png


This is my snow.lua in movements.
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


You know how to fix it? Thanks! :)
 
You either need to check the itemid, is "6494->670" working? If no then its your items.otb file that has expierd.
 
how to check that? The footprints works. Its the same with snow/dirt floor. When someone walk on on the "end of snow" it still tries to make footprints and then its changed to snow. Need to unable footprints in the "end of snow" tiles. Or?
 
Are you sure the IDs are correct? Check that the ones in the script are the right ones, as well as in the movements. Make sure you use the default script and the default movements section that deals with snow.
 
<item id="4737-4748" name="snow"/> (It's the snow endings). This is the ones that turns into snow, but they should not. Maybe I can just change there names to "frozen snow" or something?
 
If I we're you id try to download a new otb file, seems like its corrupted. The item ids should be the same. Did you update your file to a new version when you went from 0.4 to 0.3.7?
 
I dont remember if I did, I have a small memory that the items.otb that I used at start didnt work so I change back to the one I had on 0.4. The server is online so I cant just test to change. I'll need to setup a test server.
 
I still have this problem. I have changed the itemb.otb, I have tried many of them, still having the same problem.

The ice does not change often to snow. Idk when or why. Anyone? thanks

EDIT: this only happens when a monster walks on ice to snow and then dies on the snow. Then the ice that he just walked on becomes to snow. So wierd :S
 
Last edited:
Code:
function onStepOut(cid, item, position, fromPosition)
    addEvent(transformBack, 10000, {oldItemID = item.itemid, _position = position})
    if item.itemid == 670 then
        doTransformItem(item.uid, 6594)
    else
        doTransformItem(item.uid, item.itemid + 15)
    end
    return TRUE
end

function transformBack(parameters)
    parameters._position.stackpos = 0
    doTransformItem(getThingfromPos(parameters._position).uid, parameters.oldItemID)
    return TRUE
end
 
Code:
function onStepOut(cid, item, position, fromPosition)
    addEvent(transformBack, 10000, {oldItemID = item.itemid, _position = position})
    if item.itemid == 670 then
        doTransformItem(item.uid, 6594)
    else
        doTransformItem(item.uid, item.itemid + 15)
    end
    return TRUE
end

function transformBack(parameters)
    parameters._position.stackpos = 0
    doTransformItem(getThingfromPos(parameters._position).uid, parameters.oldItemID)
    return TRUE
end


Thanks man!! its working :D
 
Back
Top