Hey, I had problem with snow tiles - server was starting up with a lot of footprint and solution is here:
I had:
and changed it to:
Now server starts with normal tiles
But I have next problem - with movements. Only when I stand on item ID 670 then snow tile is transformed to footprint.
Normal snow tiles are from 6580 to 6593. I want to change that if player stand on tile from 6580-6593 and 670 then this tile is transformed to footprint.
movements.xml
snow.lua
Does anyone know how to change it?
I had:
Code:
<movevent type="StepIn" fromid="6580" toid="6594" event="script" value="snow.lua"/>
Code:
<movevent type="StepIn" itemid="6594" event="script" value="snow.lua"/>
Now server starts with normal tiles

But I have next problem - with movements. Only when I stand on item ID 670 then snow tile is transformed to footprint.
Normal snow tiles are from 6580 to 6593. I want to change that if player stand on tile from 6580-6593 and 670 then this tile is transformed to footprint.
movements.xml
Code:
<movevent type="StepIn" itemid="670" event="script" value="snow.lua"/>
<movevent type="StepIn" itemid="6594" event="script" value="snow.lua"/>
snow.lua
Code:
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
Does anyone know how to change it?
Last edited: