Ir para conteúdo

[Arquivado]Pegadas No Gelo 8.0


thiago xD

Posts Recomendados

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

Link para o comentário
Compartilhar em outros sites

  • 10 years later...
Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...