TH

[Arquivado]Pegadas No Gelo 8.0

Por thiago xD, 13 de jul. de 2007 em Noticias - Arquivo

script
18
4.5k
christian123C
18 de setembro de 2007 às 12:26

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

Thunder TigerT
18 de setembro de 2007 às 13:55

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

10 anos depois...
StigalS
25 de abril de 2018 às 16:21
Esta noticia foi arquivada.
Este tópico está fechado e foi movido para Noticia - Arquivo.

+ Caso tenha atualizações você poderá criar outro tópico.