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
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
<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" />
<!-- Snow footprint tiles -->
<movevent event="StepOut" itemid="670" script="snow.lua" />
<movevent event="StepOut" fromid="6580" toid="6593" script="snow.lua" />