mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-29 17:19:20 +02:00
add snow tiles movements
This commit is contained in:
parent
5df86665a5
commit
d93c62e3cc
@ -3508,7 +3508,7 @@ Attributes = {Waypoints=0,FluidSource=WATER}
|
||||
|
||||
TypeID = 799
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 800
|
||||
@ -29878,72 +29878,72 @@ Attributes = {Weight=750}
|
||||
|
||||
TypeID = 6580
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6581
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6582
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6583
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6584
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6585
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6586
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6587
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6588
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6589
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6590
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6591
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6592
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6593
|
||||
Name = "snow"
|
||||
Flags = {Bank,Unmove}
|
||||
Flags = {Bank,Unmove,CollisionEvent}
|
||||
Attributes = {Waypoints=200}
|
||||
|
||||
TypeID = 6594
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user