mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
fix liberty bay citizenship
This commit is contained in:
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
|
Reference in New Issue
Block a user