implement few new 781 items

This commit is contained in:
ErikasKontenis
2019-11-22 18:27:42 +02:00
parent c58e72523a
commit c96b7af52b
9 changed files with 281 additions and 100 deletions

View File

@@ -532,8 +532,12 @@
<movevent event="AddItem" itemid="2196" tileitem="1" script="misc/floorchange.lua" />
<movevent event="StepIn" itemid="2198" script="misc/floorchange.lua" />
<movevent event="AddItem" itemid="2198" tileitem="1" script="misc/floorchange.lua" />
<movevent event="StepIn" itemid="5257" script="misc/floorchange.lua" />
<movevent event="AddItem" itemid="5257" tileitem="1" script="misc/floorchange.lua" />
<movevent event="StepIn" itemid="5258" script="misc/floorchange.lua" />
<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" />
<!-- Damage -->
<movevent event="StepIn" itemid="2145" script="misc/damage.lua" />
@@ -585,6 +589,18 @@
<movevent event="StepOut" itemid="1681" script="misc/doors.lua" />
<movevent event="StepOut" itemid="1688" script="misc/doors.lua" />
<movevent event="StepOut" itemid="1690" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5103" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5105" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5112" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5114" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5121" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5123" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5130" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5132" script="misc/doors.lua" />
<movevent event="StepOut" itemid="5288" script="misc/doors.lua" />
<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" />
<!-- Magic Fields -->
<movevent event="StepIn" itemid="1998" function="onStepInField" />

View File

@@ -7,6 +7,12 @@ local verticalDoors = {
[1679] = 1678,
[1697] = 1696,
[1699] = 1698,
[5112] = 5111,
[5114] = 5113,
[5130] = 5129,
[5132] = 5131,
[5288] = 5287,
[5292] = 5291,
}
local horizontalDoors = {
@@ -18,6 +24,12 @@ local horizontalDoors = {
[1681] = 1680,
[1688] = 1687,
[1690] = 1689,
[5103] = 5102,
[5105] = 5104,
[5121] = 5120,
[5123] = 5122,
[5290] = 5289,
[5294] = 5293,
}
function onStepOut(creature, item, fromPosition, toPosition)

View File

@@ -70,7 +70,9 @@ local list = {
[2194] = {x = 1, y = -1, z = -1},
[2196] = {x = 1, y = 1, z = -1},
[2198] = {x = -1, y = 1, z = -1},
[5257] = {x = -1, y = 0, z = -1},
[5258] = {x = 0, y = -1, z = -1},
[5259] = {x = -1, y = 0, z = -1},
}
function onStepIn(creature, item, position, fromPosition)