training monks spawn

This commit is contained in:
ErikasKontenis
2020-05-11 22:45:01 +03:00
parent 871bdac620
commit 1fca334e0b
7 changed files with 190 additions and 1 deletions

View File

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

View File

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