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

Walk on snow - no errors in console

Valania

Learning PHP/Lua
Joined
Oct 23, 2009
Messages
315
Reaction score
1
Location
Germany
So whenever I walk on snow, I get debugged & can't log back in. No errors are shown in the console.

Any ideas where the source of this error may be from?
 
In your server data\movements\scripts post snow.lua here in a code not a screenshot.
 
XML:
function onStepOut(creature, item, position, fromPosition)
    local player = creature:getPlayer()
    if player and player:isInGhostMode() then
        return true
    end

    if item.itemid == 670 then
        item:transform(6594)
    else
        item:transform(item.itemid + 15)
    end
    item:decay()
    return true
end
 
Try this one
Lua:
function onStepOut(creature, item, position, fromPosition)
    if creature:isPlayer() and creature:isInGhostMode() then
        return true
    end

    if item:getId() == 670 then
        item:transform(6594)
    else
        item:transform(item.itemid + 15)
    end
    item:decay()
    return true
end
 
Snow id? it only happens on snow? Have you added any custom script related to snow lately? Give more details.
You are testing with GM or normal player? Try with both.
 
My normal & GM debugged on snow. No the data is basically just the raw server master real map data. I just added my vipsystem. Yeah, as far as I can see, it only happens on snow.
 
In your real map data items.xml those ids are snow?6609/670/6594
 
Code:
<item id="6594" name="snow">
        <attribute key="description" value="Someone must have walked here recently." />
        <attribute key="decayTo" value="670" />
        <attribute key="duration" value="10" />

This one I was the one with 670.
 
Also found this on movements.xml:

XML:
<!-- Snow footprint tiles -->
    <movevent event="StepOut" itemid="670" script="snow.lua" />
    <movevent event="StepOut" fromid="6580" toid="6593" script="snow.lua" />
 
No, the snow only puts foot prints after you leave the spot not before. So it's stepOut only. Just like in real life the foot prints wouldnt be there until after you put them there if that makes sense lmfao.
 
Back
Top