• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Snow

gurden

i need support for my server, good scripter!
Joined
May 19, 2009
Messages
519
Reaction score
5
Location
Sweden
Anyone got a snow movement fix to 0.3.5? because it never disapears on my map like okolnir i get crazy soon
 
PHP:
<!-- Snow footprint tiles -->
	<movevent type="StepIn" itemid="670" event="script" value="snow.lua"/>
	<movevent type="StepIn" fromid="6580" toid="6593" event="script" value="snow.lua"/>

Lua:
local TILE_SNOW = 670
local TILE_FOOTPRINT_I = 6594
local 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
 
Because the thing that make it disappear is decayTo (at items.xml).

Example:

<item id="6594" name="snow">
<attribute key="description" value="Someone must have walked here recently."/>
<attribute key="decayTo" value="670"/>
<attribute key="duration" value="240"/>
</item>

<item id="6598" name="snow">
<attribute key="description" value="Someone must have walked here recently."/>
<attribute key="decayTo" value="6594"/>
<attribute key="duration" value="240"/>
</item>
 
Last edited:
Back
Top