add snow tiles movements

This commit is contained in:
ErikasKontenis
2022-05-29 17:51:15 +03:00
parent 5df86665a5
commit d93c62e3cc
3 changed files with 31 additions and 15 deletions

View File

@@ -394,6 +394,8 @@
<movevent event="StepOut" fromid="5743" toid="5744" script="misc/drowning.lua"/>
<movevent event="StepIn" itemid="5764" script="misc/drowning.lua" />
<movevent event="StepOut" itemid="5764" script="misc/drowning.lua"/>
<movevent event="StepOut" itemid="799" script="misc/snow.lua" />
<movevent event="StepOut" fromid="6580" toid="6593" script="misc/snow.lua" />
<!-- Inquisition Quest -->
<movevent event="StepIn" frommovementid="2150" tomovementid="2180" script="inquisition/teleportMain.lua" />

View File

@@ -0,0 +1,14 @@
function onStepOut(creature, item, position, fromPosition)
local player = creature:getPlayer()
if player and player:isInGhostMode() then
return true
end
if item.itemid == 799 then
item:transform(6594)
else
item:transform(item.itemid + 15)
end
item:decay()
return true
end