movements.xml
<movevent event="StepIn" itemid="670" script="snowground.lua" /> <movevent event="StepIn" itemid="6580" script="snowground.lua" /> <movevent event="StepIn" itemid="6581" script="snowground.lua" /> <movevent event="StepIn" itemid="6582" script="snowground.lua" /> <movevent event="StepIn" itemid="6583" script="snowground.lua" /> <movevent event="StepIn" itemid="6584" script="snowground.lua" /> <movevent event="StepIn" itemid="6585" script="snowground.lua" /> <movevent event="StepIn" itemid="6586" script="snowground.lua" /> <movevent event="StepIn" itemid="6587" script="snowground.lua" /> <movevent event="StepIn" itemid="6588" script="snowground.lua" /> <movevent event="StepIn" itemid="6589" script="snowground.lua" /> <movevent event="StepIn" itemid="6590" script="snowground.lua" /> <movevent event="StepIn" itemid="6591" script="snowground.lua" /> <movevent event="StepIn" itemid="6592" script="snowground.lua" /> <movevent event="StepIn" itemid="6593" script="snowground.lua" />
snowground.lua
function decayGround(params)
pos = {x=params.pos.x, y=params.pos.y, z=params.pos.z, stackpos = 0}
item = getThingfromPos(pos)
doTransformItem(item.uid, params.itemid)
end
function onStepIn(cid, item, pos)
local delaySeconds = 5 --the delay in seconds before the ground changes back to normal snow
params = {pos = pos, itemid = item.itemid}
addEvent(decayGround, delaySeconds*1000, params)
if item.itemid == 670 then
doTransformItem(item.uid, 6594)
else
doTransformItem(item.uid, item.itemid+15)
end
end
Creditos:
4220niller



info
Grupo: Banidos
Registrado: 09/03/07
Posts: 79
Reputação: 0
Gostei bastante pois estou tentando faser pegadas na areia axo q seria legal pq quando vc pisa na areia ela afunda dai no desertconforme vc anda marca no chão xD