finish first part of oriental addon

This commit is contained in:
ErikasKontenis
2019-12-21 14:21:10 +02:00
parent bd65b09324
commit ebb40bfba7
8 changed files with 94 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return true
end
doRelocate(item:getPosition(),{x = 31914, y = 32713, z = 6})
item:getPosition():sendMagicEffect(11)
Game.sendMagicEffect({x = 31914, y = 32713, z = 6}, 11)
end
function onAddItem(item, tileitem, position)
doRelocate(item:getPosition(),{x = 31914, y = 32713, z = 6})
item:getPosition():sendMagicEffect(11)
Game.sendMagicEffect({x = 31914, y = 32713, z = 6}, 11)
end