mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-12-12 12:59:47 +01:00
add snow tiles movements
This commit is contained in:
@@ -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" />
|
||||
|
||||
14
data/movements/scripts/misc/snow.lua
Normal file
14
data/movements/scripts/misc/snow.lua
Normal 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
|
||||
Reference in New Issue
Block a user