1function onStepIn(creature, item, position, fromPosition)
2 if creature:isPlayer() then
3 if item.actionid == 13052 then
4 if #creature:getSummons() > 0 then
5 local SummPos = creature:getSummons()
6 for X = 01, #creature:getSummons() do
7 if SummPos[X]:teleportTo({x=3737, y=1410, z=8}) then
8 SummPos[X]:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
9 end
10 end
11 end
12
13 creature:teleportTo({x=3737, y=1409, z=8})
14 creature:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
15 return true
16 end
17 if item.actionid == 13053 then
18 if creature:getStorageValue(_QUESTLOG[167].UID_01) == 02 then
19 creature:teleportTo(fromPosition)
20 end
21 end
22 end
23end
24