fix all new doors

This commit is contained in:
ErikasKontenis 2022-04-24 13:59:47 +03:00
parent 1f3ef18271
commit fb25a5a14f
7 changed files with 171 additions and 42 deletions

View File

@ -5400,3 +5400,29 @@ Login to 127.0.0.1:7172
Login to 127.0.0.1:7172 Login to 127.0.0.1:7172
Login to 127.0.0.1:7172 Login to 127.0.0.1:7172
Login to 127.0.0.1:7172 Login to 127.0.0.1:7172
GPU Radeon RX 580 Series (ATI Technologies Inc.)
OpenGL 4.6.13596 Compatibility Profile Context 20.10.35.02 27.20.1034.6
[Atlas] Texture size is: 4096x4096 (max: 16384x16384)
Found work dir at 'C:/Users/erika/source/repos/Sabrehaven/800OTClient/'
== application started at Apr 23 2022 19:23:11
OTCv8 3.1 rev 163 (dev) made by otclient.net built on Mar 31 2022 for arch x86
Connecting to: 127.0.0.1:7171
Login to 127.0.0.1:7172
WARNING: HTTP error for http://otclient.ovh/api/status.php: timeout
Login to 127.0.0.1:7172
Login to 127.0.0.1:7172
Login to 127.0.0.1:7172
Login to 127.0.0.1:7172
Login to 127.0.0.1:7172
Login to 127.0.0.1:7172
Login to 127.0.0.1:7172
Exiting application..
GPU Radeon RX 580 Series (ATI Technologies Inc.)
OpenGL 4.6.13596 Compatibility Profile Context 20.10.35.02 27.20.1034.6
[Atlas] Texture size is: 4096x4096 (max: 16384x16384)
Found work dir at 'C:/Users/erika/source/repos/Sabrehaven/800OTClient/'
== application started at Apr 24 2022 12:52:14
OTCv8 3.1 rev 163 (dev) made by otclient.net built on Mar 31 2022 for arch x86
Connecting to: 127.0.0.1:7171
Login to 127.0.0.1:7172
Exiting application..

View File

@ -391,6 +391,10 @@
<action itemid="6194" script="misc/doors.lua" /> <action itemid="6194" script="misc/doors.lua" />
<action itemid="6248" script="misc/doors.lua" /> <action itemid="6248" script="misc/doors.lua" />
<action itemid="6251" script="misc/doors.lua" /> <action itemid="6251" script="misc/doors.lua" />
<action itemid="6891" script="misc/doors.lua" />
<action itemid="6900" script="misc/doors.lua" />
<action itemid="7033" script="misc/doors.lua" />
<action itemid="7042" script="misc/doors.lua" />
<!-- Level Doors --> <!-- Level Doors -->
<action itemid="1646" script="misc/doors.lua" /> <action itemid="1646" script="misc/doors.lua" />
@ -411,6 +415,10 @@
<action itemid="6207" script="misc/doors.lua" /> <action itemid="6207" script="misc/doors.lua" />
<action itemid="6262" script="misc/doors.lua" /> <action itemid="6262" script="misc/doors.lua" />
<action itemid="6264" script="misc/doors.lua" /> <action itemid="6264" script="misc/doors.lua" />
<action itemid="6896" script="misc/doors.lua" />
<action itemid="6905" script="misc/doors.lua" />
<action itemid="7038" script="misc/doors.lua" />
<action itemid="7047" script="misc/doors.lua" />
<!-- Quest Doors --> <!-- Quest Doors -->
<action itemid="1642" script="misc/doors.lua" /> <action itemid="1642" script="misc/doors.lua" />
@ -433,6 +441,10 @@
<action itemid="6203" script="misc/doors.lua" /> <action itemid="6203" script="misc/doors.lua" />
<action itemid="6258" script="misc/doors.lua" /> <action itemid="6258" script="misc/doors.lua" />
<action itemid="6260" script="misc/doors.lua" /> <action itemid="6260" script="misc/doors.lua" />
<action itemid="6898" script="misc/doors.lua" />
<action itemid="6907" script="misc/doors.lua" />
<action itemid="7040" script="misc/doors.lua" />
<action itemid="7049" script="misc/doors.lua" />
<!-- Closed Normal Doors --> <!-- Closed Normal Doors -->
<action itemid="2177" script="misc/doors.lua" /> <action itemid="2177" script="misc/doors.lua" />
@ -482,6 +494,16 @@
<action itemid="6252" script="misc/doors.lua" /> <action itemid="6252" script="misc/doors.lua" />
<action itemid="6254" script="misc/doors.lua" /> <action itemid="6254" script="misc/doors.lua" />
<action itemid="6256" script="misc/doors.lua" /> <action itemid="6256" script="misc/doors.lua" />
<action itemid="6892" script="misc/doors.lua" />
<action itemid="6894" script="misc/doors.lua" />
<action itemid="6901" script="misc/doors.lua" />
<action itemid="6903" script="misc/doors.lua" />
<action itemid="7034" script="misc/doors.lua" />
<action itemid="7036" script="misc/doors.lua" />
<action itemid="7043" script="misc/doors.lua" />
<action itemid="7045" script="misc/doors.lua" />
<action itemid="7054" script="misc/doors.lua" />
<action itemid="7056" script="misc/doors.lua" />
<!-- Open Vertical Doors --> <!-- Open Vertical Doors -->
<action itemid="1630" script="misc/doors.lua" /> <action itemid="1630" script="misc/doors.lua" />
@ -527,6 +549,15 @@
<action itemid="6255" script="misc/doors.lua" /> <action itemid="6255" script="misc/doors.lua" />
<action itemid="6259" script="misc/doors.lua" /> <action itemid="6259" script="misc/doors.lua" />
<action itemid="6263" script="misc/doors.lua" /> <action itemid="6263" script="misc/doors.lua" />
<action itemid="6902" script="misc/doors.lua" />
<action itemid="6904" script="misc/doors.lua" />
<action itemid="6906" script="misc/doors.lua" />
<action itemid="6908" script="misc/doors.lua" />
<action itemid="7044" script="misc/doors.lua" />
<action itemid="7046" script="misc/doors.lua" />
<action itemid="7048" script="misc/doors.lua" />
<action itemid="7050" script="misc/doors.lua" />
<action itemid="7055" script="misc/doors.lua" />
<!-- Open Horizontal Doors --> <!-- Open Horizontal Doors -->
<action itemid="1633" script="misc/doors.lua" /> <action itemid="1633" script="misc/doors.lua" />
@ -572,4 +603,13 @@
<action itemid="6257" script="misc/doors.lua" /> <action itemid="6257" script="misc/doors.lua" />
<action itemid="6261" script="misc/doors.lua" /> <action itemid="6261" script="misc/doors.lua" />
<action itemid="6265" script="misc/doors.lua" /> <action itemid="6265" script="misc/doors.lua" />
<action itemid="6893" script="misc/doors.lua" />
<action itemid="6895" script="misc/doors.lua" />
<action itemid="6897" script="misc/doors.lua" />
<action itemid="6899" script="misc/doors.lua" />
<action itemid="7035" script="misc/doors.lua" />
<action itemid="7037" script="misc/doors.lua" />
<action itemid="7039" script="misc/doors.lua" />
<action itemid="7041" script="misc/doors.lua" />
<action itemid="7057" script="misc/doors.lua" />
</actions> </actions>

View File

@ -1,5 +1,5 @@
local lockedDoors = { local lockedDoors = {
1628, 1631, 1650, 1653, 1668, 1671, 1682, 1691, 5006, 5007, 5097, 5106, 5115, 5124, 5133, 5136, 5139, 5142, 5277, 5280, 5732, 5735, 6191, 6194, 6248, 6251 1628, 1631, 1650, 1653, 1668, 1671, 1682, 1691, 5006, 5007, 5097, 5106, 5115, 5124, 5133, 5136, 5139, 5142, 5277, 5280, 5732, 5735, 6191, 6194, 6248, 6251, 6891, 6900, 7033, 7042
} }
local closedNormalDoors = { local closedNormalDoors = {
@ -51,6 +51,16 @@ local closedNormalDoors = {
[6252] = 6253, [6252] = 6253,
[6254] = 6255, [6254] = 6255,
[6256] = 6257, [6256] = 6257,
[6892] = 6893,
[6894] = 6895,
[6901] = 6902,
[6903] = 6904,
[7034] = 7035,
[7036] = 7037,
[7043] = 7044,
[7045] = 7046,
[7054] = 7055,
[7056] = 7057,
} }
local openVerticalDoors = { local openVerticalDoors = {
@ -97,6 +107,15 @@ local openVerticalDoors = {
[6255] = 6254, [6255] = 6254,
[6259] = 6258, [6259] = 6258,
[6263] = 6262, [6263] = 6262,
[6902] = 6901,
[6904] = 6903,
[6906] = 6905,
[6908] = 6907,
[7044] = 7043,
[7046] = 7045,
[7048] = 7047,
[7050] = 7049,
[7055] = 7054,
} }
local openHorizontalDoors = { local openHorizontalDoors = {
@ -143,6 +162,15 @@ local openHorizontalDoors = {
[6257] = 6256, [6257] = 6256,
[6261] = 6260, [6261] = 6260,
[6265] = 6264, [6265] = 6264,
[6893] = 6892,
[6895] = 6894,
[6897] = 6896,
[6899] = 6898,
[7035] = 7034,
[7037] = 7036,
[7039] = 7038,
[7041] = 7040,
[7057] = 7056,
} }
local levelDoors = { local levelDoors = {
@ -164,6 +192,10 @@ local levelDoors = {
[6207] = 6208, [6207] = 6208,
[6262] = 6263, [6262] = 6263,
[6264] = 6265, [6264] = 6265,
[6896] = 6897,
[6905] = 6906,
[7038] = 7039,
[7047] = 7048,
} }
local questDoors = { local questDoors = {
@ -187,6 +219,10 @@ local questDoors = {
[6203] = 6204, [6203] = 6204,
[6258] = 6259, [6258] = 6259,
[6260] = 6261, [6260] = 6261,
[6898] = 6899,
[6907] = 6908,
[7040] = 7041,
[7049] = 7050,
} }
local passthrough = { local passthrough = {

View File

@ -31195,76 +31195,80 @@ Flags = {Unpass,Unmove}
TypeID = 6891 TypeID = 6891
Name = "a closed door" Name = "a closed door"
Description = "It is locked" Description = "It is locked"
Flags = {Unpass,Unmove} Flags = {UseEvent,Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 6892 TypeID = 6892
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 6893 TypeID = 6893
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,Door,Unmove}
TypeID = 6894 TypeID = 6894
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 6895 TypeID = 6895
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,Door,Unmove}
TypeID = 6896 TypeID = 6896
Name = "a gate of expertise" Name = "a gate of expertise"
Flags = {Unpass,Unmove} Description = "Only the worthy may pass"
Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 6897 TypeID = 6897
Name = "a gate of expertise" Name = "a gate of expertise"
Flags = {Top,Unmove} Flags = {Door,Top,SeparationEvent,Unmove}
TypeID = 6898 TypeID = 6898
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Description = "The door seems to be sealed against unwanted intruders"
Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 6899 TypeID = 6899
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,SeparationEvent,Door,Unmove}
TypeID = 6900 TypeID = 6900
Name = "a closed door" Name = "a closed door"
Description = "It is locked" Description = "It is locked"
Flags = {Unpass,Unmove} Flags = {UseEvent,Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 6901 TypeID = 6901
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 6902 TypeID = 6902
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,Door,Unmove}
TypeID = 6903 TypeID = 6903
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 6904 TypeID = 6904
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,Door,Unmove}
TypeID = 6905 TypeID = 6905
Name = "a gate of expertise" Name = "a gate of expertise"
Flags = {Unpass,Unmove} Description = "Only the worthy may pass"
Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 6906 TypeID = 6906
Name = "a gate of expertise" Name = "a gate of expertise"
Flags = {Top,Unmove} Flags = {Door,Top,SeparationEvent,Unmove}
TypeID = 6907 TypeID = 6907
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Description = "The door seems to be sealed against unwanted intruders"
Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 6908 TypeID = 6908
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,SeparationEvent,Door,Unmove}
TypeID = 6909 TypeID = 6909
Name = "a ramp" Name = "a ramp"
@ -31774,76 +31778,80 @@ Flags = {Top,Unmove}
TypeID = 7033 TypeID = 7033
Name = "a closed door" Name = "a closed door"
Description = "It is locked" Description = "It is locked"
Flags = {Unpass,Unmove} Flags = {UseEvent,Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7034 TypeID = 7034
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7035 TypeID = 7035
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,Door,Unmove}
TypeID = 7036 TypeID = 7036
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7037 TypeID = 7037
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,Door,Unmove}
TypeID = 7038 TypeID = 7038
Name = "a gate of expertise" Name = "a gate of expertise"
Flags = {Unpass,Unmove} Description = "Only the worthy may pass"
Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7039 TypeID = 7039
Name = "a gate of expertise" Name = "a gate of expertise"
Flags = {Top,Unmove} Flags = {Door,Top,SeparationEvent,Unmove}
TypeID = 7040 TypeID = 7040
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Description = "The door seems to be sealed against unwanted intruders"
Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7041 TypeID = 7041
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,SeparationEvent,Door,Unmove}
TypeID = 7042 TypeID = 7042
Name = "a closed door" Name = "a closed door"
Description = "It is locked" Description = "It is locked"
Flags = {Unpass,Unmove} Flags = {UseEvent,Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7043 TypeID = 7043
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7044 TypeID = 7044
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,Door,Unmove}
TypeID = 7045 TypeID = 7045
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7046 TypeID = 7046
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,Door,Unmove}
TypeID = 7047 TypeID = 7047
Name = "a gate of expertise" Name = "a gate of expertise"
Flags = {Unpass,Unmove} Description = "Only the worthy may pass"
Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7048 TypeID = 7048
Name = "a gate of expertise" Name = "a gate of expertise"
Flags = {Top,Unmove} Flags = {Door,Top,SeparationEvent,Unmove}
TypeID = 7049 TypeID = 7049
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Description = "The door seems to be sealed against unwanted intruders"
Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7050 TypeID = 7050
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,SeparationEvent,Door,Unmove}
TypeID = 7051 TypeID = 7051
Name = "an ice wall window" Name = "an ice wall window"
@ -31855,24 +31863,24 @@ Flags = {Bottom,Unpass,Unmove}
TypeID = 7053 TypeID = 7053
Name = "a trapdoor" Name = "a trapdoor"
Flags = {Bank,Unmove} Flags = {Bank,CollisionEvent,Unmove,Avoid}
Attributes = {Waypoints=100} Attributes = {Waypoints=100}
TypeID = 7054 TypeID = 7054
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7055 TypeID = 7055
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,Door,Unmove}
TypeID = 7056 TypeID = 7056
Name = "a closed door" Name = "a closed door"
Flags = {Unpass,Unmove} Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
TypeID = 7057 TypeID = 7057
Name = "an open door" Name = "an open door"
Flags = {Top,Unmove} Flags = {Top,Door,Unmove}
TypeID = 7058 TypeID = 7058
Name = "a skull pillar" Name = "a skull pillar"

View File

@ -663,6 +663,8 @@
<movevent event="AddItem" itemid="6129" tileitem="1" script="misc/floorchange.lua" /> <movevent event="AddItem" itemid="6129" tileitem="1" script="misc/floorchange.lua" />
<movevent event="StepIn" itemid="6130" script="misc/floorchange.lua" /> <movevent event="StepIn" itemid="6130" script="misc/floorchange.lua" />
<movevent event="AddItem" itemid="6130" tileitem="1" script="misc/floorchange.lua" /> <movevent event="AddItem" itemid="6130" tileitem="1" script="misc/floorchange.lua" />
<movevent event="StepIn" itemid="7053" script="misc/floorchange.lua" />
<movevent event="AddItem" itemid="7053" tileitem="1" script="misc/floorchange.lua" />
<!-- Damage --> <!-- Damage -->
<movevent event="StepIn" itemid="2145" script="misc/damage.lua" /> <movevent event="StepIn" itemid="2145" script="misc/damage.lua" />
@ -738,6 +740,14 @@
<movevent event="StepOut" itemid="6261" script="misc/doors.lua" /> <movevent event="StepOut" itemid="6261" script="misc/doors.lua" />
<movevent event="StepOut" itemid="6263" script="misc/doors.lua" /> <movevent event="StepOut" itemid="6263" script="misc/doors.lua" />
<movevent event="StepOut" itemid="6265" script="misc/doors.lua" /> <movevent event="StepOut" itemid="6265" script="misc/doors.lua" />
<movevent event="StepOut" itemid="6897" script="misc/doors.lua" />
<movevent event="StepOut" itemid="6899" script="misc/doors.lua" />
<movevent event="StepOut" itemid="6906" script="misc/doors.lua" />
<movevent event="StepOut" itemid="6908" script="misc/doors.lua" />
<movevent event="StepOut" itemid="7039" script="misc/doors.lua" />
<movevent event="StepOut" itemid="7041" script="misc/doors.lua" />
<movevent event="StepOut" itemid="7048" script="misc/doors.lua" />
<movevent event="StepOut" itemid="7050" script="misc/doors.lua" />
<!-- Magic Fields --> <!-- Magic Fields -->
<movevent event="StepIn" itemid="1998" function="onStepInField" /> <movevent event="StepIn" itemid="1998" function="onStepInField" />

View File

@ -18,6 +18,10 @@ local verticalDoors = {
[6206] = 6205, [6206] = 6205,
[6259] = 6258, [6259] = 6258,
[6263] = 6262, [6263] = 6262,
[6906] = 6905,
[6908] = 6907,
[7048] = 7047,
[7050] = 7049,
} }
local horizontalDoors = { local horizontalDoors = {
@ -40,6 +44,10 @@ local horizontalDoors = {
[6208] = 6207, [6208] = 6207,
[6261] = 6260, [6261] = 6260,
[6265] = 6264, [6265] = 6264,
[6897] = 6896,
[6899] = 6898,
[7039] = 7038,
[7041] = 7040,
} }
function onStepOut(creature, item, fromPosition, toPosition) function onStepOut(creature, item, fromPosition, toPosition)

View File

@ -83,6 +83,7 @@ local list = {
[6130] = {x = 0, y = 1, z = 1}, [6130] = {x = 0, y = 1, z = 1},
[6172] = {x = 0, y = 0, z = 1}, [6172] = {x = 0, y = 0, z = 1},
[6173] = {x = 0, y = 0, z = 1}, [6173] = {x = 0, y = 0, z = 1},
[7053] = {x = 0, y = 0, z = 1},
} }
function onStepIn(creature, item, position, fromPosition) function onStepIn(creature, item, position, fromPosition)