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

@@ -676,7 +676,10 @@
<movevent event="RemoveItem" itemid="3482" script="misc/open_trap.lua" />
<movevent event="StepIn" frommovementid="51191" tomovementid="51198" script="misc/turtles.lua" />
<movevent event="AddItem" itemid="6278" tileitem="1" script="misc/lit_candlestick.lua" />
<movevent event="StepIn" movementid="17705" script="misc/thais_trainers.lua" />
<movevent event="AddItem" movementid="17705" tileitem="1" script="misc/thais_trainers.lua" />
<movevent event="StepIn" movementid="17706" script="misc/thais_trainers_back.lua" />
<movevent event="AddItem" movementid="17706" tileitem="1" script="misc/thais_trainers_back.lua" />
<!--Doors -->
<movevent event="StepOut" itemid="1643" script="misc/doors.lua" />
<movevent event="StepOut" itemid="1647" script="misc/doors.lua" />

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