implement few new 781 items

This commit is contained in:
ErikasKontenis
2019-11-24 14:00:44 +02:00
parent 2911739928
commit 2a432da341
12 changed files with 128 additions and 19 deletions

View File

@@ -538,6 +538,14 @@
<movevent event="AddItem" itemid="5258" tileitem="1" script="misc/floorchange.lua" />
<movevent event="StepIn" itemid="5259" script="misc/floorchange.lua" />
<movevent event="AddItem" itemid="5259" tileitem="1" script="misc/floorchange.lua" />
<movevent event="StepIn" itemid="5544" script="misc/floorchange.lua" />
<movevent event="AddItem" itemid="5544" tileitem="1" script="misc/floorchange.lua" />
<movevent event="StepIn" itemid="5691" script="misc/floorchange.lua" />
<movevent event="AddItem" itemid="5691" tileitem="1" script="misc/floorchange.lua" />
<movevent event="StepIn" itemid="5731" script="misc/floorchange.lua" />
<movevent event="AddItem" itemid="5731" tileitem="1" script="misc/floorchange.lua" />
<movevent event="StepIn" itemid="5763" script="misc/floorchange.lua" />
<movevent event="AddItem" itemid="5763" tileitem="1" script="misc/floorchange.lua" />
<!-- Damage -->
<movevent event="StepIn" itemid="2145" script="misc/damage.lua" />
@@ -601,6 +609,8 @@
<movevent event="StepOut" itemid="5290" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5292" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5294" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5746" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5748" script="misc/doors.lua" />
<!-- Magic Fields -->
<movevent event="StepIn" itemid="1998" function="onStepInField" />

View File

@@ -13,6 +13,7 @@ local verticalDoors = {
[5132] = 5131,
[5288] = 5287,
[5292] = 5291,
[5748] = 5749,
}
local horizontalDoors = {
@@ -30,6 +31,7 @@ local horizontalDoors = {
[5123] = 5122,
[5290] = 5289,
[5294] = 5293,
[5746] = 5745,
}
function onStepOut(creature, item, fromPosition, toPosition)

View File

@@ -3,7 +3,6 @@ local list = {
[294] = {x = 0, y = 0, z = 1},
[369] = {x = 0, y = 0, z = 1},
[370] = {x = 0, y = 0, z = 1},
[385] = {x = 0, y = 0, z = 1},
[394] = {x = 0, y = 0, z = 1},
[411] = {x = 0, y = 0, z = 1},
[412] = {x = 0, y = 0, z = 1},
@@ -73,6 +72,10 @@ local list = {
[5257] = {x = -1, y = 0, z = -1},
[5258] = {x = 0, y = -1, z = -1},
[5259] = {x = -1, y = 0, z = -1},
[5544] = {x = 0, y = 0, z = 1},
[5691] = {x = 0, y = 0, z = 1},
[5731] = {x = 0, y = 0, z = 1},
[5763] = {x = 0, y = 0, z = 1},
}
function onStepIn(creature, item, position, fromPosition)