mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-01 01:59:21 +02:00
fix liberty bay citizenship
This commit is contained in:
parent
45dfaea180
commit
6e7987746b
@ -1 +1 @@
|
|||||||
next: 17583
|
next: 17584
|
@ -446,6 +446,8 @@
|
|||||||
<!-- Liberty Bay -->
|
<!-- Liberty Bay -->
|
||||||
<movevent event="StepIn" movementid="33217" script="liberty_bay/back_cult_piano.lua" />
|
<movevent event="StepIn" movementid="33217" script="liberty_bay/back_cult_piano.lua" />
|
||||||
<movevent event="AddItem" movementid="33217" tileitem="1" script="liberty_bay/back_cult_piano.lua" />
|
<movevent event="AddItem" movementid="33217" tileitem="1" script="liberty_bay/back_cult_piano.lua" />
|
||||||
|
<movevent event="StepIn" movementid="17583" script="liberty_bay/citizenship.lua" />
|
||||||
|
<movevent event="AddItem" movementid="17583" tileitem="1" script="liberty_bay/citizenship.lua" />
|
||||||
|
|
||||||
<!-- Floorchange -->
|
<!-- Floorchange -->
|
||||||
<movevent event="StepIn" itemid="293" script="misc/floorchange.lua" />
|
<movevent event="StepIn" itemid="293" script="misc/floorchange.lua" />
|
||||||
|
12
data/movements/scripts/liberty_bay/citizenship.lua
Normal file
12
data/movements/scripts/liberty_bay/citizenship.lua
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
function onStepIn(creature, item, position, fromPosition)
|
||||||
|
if creature:isPlayer() then
|
||||||
|
doRelocate(item:getPosition(),{x = 32317, y = 32826, z = 07})
|
||||||
|
creature:getPlayer():setTown(Town("Liberty Bay"))
|
||||||
|
Game.sendMagicEffect({x = 32317, y = 32826, z = 07}, 13)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function onAddItem(item, tileitem, position)
|
||||||
|
doRelocate(item:getPosition(),{x = 32313, y = 32819, z = 07})
|
||||||
|
Game.sendMagicEffect({x = 32313, y = 32819, z = 07}, 14)
|
||||||
|
end
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user