mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-12-10 04:10:45 +01:00
training monks spawn
This commit is contained in:
@@ -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" />
|
||||
|
||||
15
data/movements/scripts/misc/thais_trainers.lua
Normal file
15
data/movements/scripts/misc/thais_trainers.lua
Normal 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
|
||||
15
data/movements/scripts/misc/thais_trainers_back.lua
Normal file
15
data/movements/scripts/misc/thais_trainers_back.lua
Normal 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
|
||||
Reference in New Issue
Block a user