-- Be careful, do not add quest door inside the level door table, this will lock the doors.

-- ID of the keys. (Id 21392 is used only for dawnport quest)
keysID = { 2967, 2968, 2969, 2970, 2971, 2972, 2973, 21392 }

-- The lockedDoor is the doors with the description "It is locked". Use this (with no action) to keep a door permanently isoled.
-- The closedDoor is the doors that are unlocked, when using them open normally.
KeyDoorTable = {
	{ lockedDoor = 1628, closedDoor = 1629, openDoor = 1630 },
	{ lockedDoor = 1631, closedDoor = 1632, openDoor = 1633 },
	{ lockedDoor = 1650, closedDoor = 1651, openDoor = 1652 },
	{ lockedDoor = 1653, closedDoor = 1654, openDoor = 1655 },
	{ lockedDoor = 1668, closedDoor = 1669, openDoor = 1670 },
	{ lockedDoor = 1671, closedDoor = 1672, openDoor = 1673 },
	{ lockedDoor = 1682, closedDoor = 1683, openDoor = 1684 },
	{ lockedDoor = 1691, closedDoor = 1692, openDoor = 1693 },
	{ lockedDoor = 4912, closedDoor = 5007, openDoor = 4911 },
	{ lockedDoor = 4913, closedDoor = 5006, openDoor = 4914 },
	{ lockedDoor = 5097, closedDoor = 5098, openDoor = 5099 },
	{ lockedDoor = 5106, closedDoor = 5107, openDoor = 5108 },
	{ lockedDoor = 5115, closedDoor = 5116, openDoor = 5117 },
	{ lockedDoor = 5124, closedDoor = 5125, openDoor = 5126 },
	{ lockedDoor = 5133, closedDoor = 5134, openDoor = 5135 },
	{ lockedDoor = 5136, closedDoor = 5137, openDoor = 5138 },
	{ lockedDoor = 5139, closedDoor = 5140, openDoor = 5141 },
	{ lockedDoor = 5142, closedDoor = 5143, openDoor = 5144 },
	{ lockedDoor = 5277, closedDoor = 5278, openDoor = 5279 },
	{ lockedDoor = 5280, closedDoor = 5281, openDoor = 5282 },
	{ lockedDoor = 5732, closedDoor = 5733, openDoor = 5734 },
	{ lockedDoor = 5735, closedDoor = 5736, openDoor = 5737 },
	{ lockedDoor = 6191, closedDoor = 6192, openDoor = 6193 },
	{ lockedDoor = 6194, closedDoor = 6195, openDoor = 6196 },
	{ lockedDoor = 6248, closedDoor = 6249, openDoor = 6250 },
	{ lockedDoor = 6251, closedDoor = 6252, openDoor = 6253 },
	{ lockedDoor = 6799, closedDoor = 6795, openDoor = 6796 },
	{ lockedDoor = 6801, closedDoor = 6797, openDoor = 6798 },
	{ lockedDoor = 6891, closedDoor = 6892, openDoor = 6893 },
	{ lockedDoor = 6900, closedDoor = 6901, openDoor = 6902 },
	{ lockedDoor = 7033, closedDoor = 7034, openDoor = 7035 },
	{ lockedDoor = 7042, closedDoor = 7043, openDoor = 7044 },
	{ lockedDoor = 7711, closedDoor = 7712, openDoor = 7713 },
	{ lockedDoor = 7714, closedDoor = 7715, openDoor = 7716 },
	{ lockedDoor = 8249, closedDoor = 8250, openDoor = 8251 },
	{ lockedDoor = 8252, closedDoor = 8253, openDoor = 8254 },
	{ lockedDoor = 8351, closedDoor = 8352, openDoor = 8353 },
	{ lockedDoor = 8354, closedDoor = 8355, openDoor = 8356 },
	{ lockedDoor = 9351, closedDoor = 9352, openDoor = 9353 },
	{ lockedDoor = 9354, closedDoor = 9355, openDoor = 9356 },
	{ lockedDoor = 9551, closedDoor = 9552, openDoor = 9553 },
	{ lockedDoor = 9560, closedDoor = 9561, openDoor = 9562 },
	{ lockedDoor = 9858, closedDoor = 9859, openDoor = 9860 },
	{ lockedDoor = 9867, closedDoor = 9868, openDoor = 9869 },
	{ lockedDoor = 11136, closedDoor = 11137, openDoor = 11138 },
	{ lockedDoor = 11143, closedDoor = 11144, openDoor = 11145 },
	{ lockedDoor = 11232, closedDoor = 11233, openDoor = 11234 },
	{ lockedDoor = 11241, closedDoor = 11242, openDoor = 11243 },
	{ lockedDoor = 13135, closedDoor = 13136, openDoor = 13137 },
	{ lockedDoor = 17560, closedDoor = 17561, openDoor = 17562 },
	{ lockedDoor = 17569, closedDoor = 17570, openDoor = 17571 },
	{ lockedDoor = 17700, closedDoor = 17701, openDoor = 17702 },
	{ lockedDoor = 17709, closedDoor = 17710, openDoor = 17711 },
	{ lockedDoor = 17993, closedDoor = 17994, openDoor = 17995 },
	{ lockedDoor = 18002, closedDoor = 18003, openDoor = 18004 },
	{ lockedDoor = 20444, closedDoor = 20443, openDoor = 20445 },
	{ lockedDoor = 20453, closedDoor = 20452, openDoor = 20454 },
	{ lockedDoor = 23873, closedDoor = 23874, openDoor = 23877 },
	{ lockedDoor = 23875, closedDoor = 23876, openDoor = 23878 },
	{ lockedDoor = 28364, closedDoor = 28365, openDoor = 28368 },
	{ lockedDoor = 28366, closedDoor = 28367, openDoor = 28369 },
	{ lockedDoor = 30772, closedDoor = 30773, openDoor = 30776 },
	{ lockedDoor = 30774, closedDoor = 30775, openDoor = 30777 },
	{ lockedDoor = 37982, closedDoor = 37981, openDoor = 37985 },
	{ lockedDoor = 37984, closedDoor = 37983, openDoor = 37986 },
	{ lockedDoor = 44914, closedDoor = 44913, openDoor = 44917 },
	{ lockedDoor = 44916, closedDoor = 44915, openDoor = 44918 },
}

-- These are the common doors, the ones that just open and close without any special requirements.
CustomDoorTable = {
	{ closedDoor = 1638, openDoor = 1639 },
	{ closedDoor = 1640, openDoor = 1641 },
	{ closedDoor = 1656, openDoor = 1657 },
	{ closedDoor = 1658, openDoor = 1659 },
	{ closedDoor = 1685, openDoor = 1686 },
	{ closedDoor = 1694, openDoor = 1695 },
	{ closedDoor = 2177, openDoor = 2178 },
	{ closedDoor = 2179, openDoor = 2180 },
	{ closedDoor = 5082, openDoor = 5083 },
	{ closedDoor = 5084, openDoor = 5085 },
	{ closedDoor = 5100, openDoor = 5101 },
	{ closedDoor = 5109, openDoor = 5110 },
	{ closedDoor = 5118, openDoor = 5119 },
	{ closedDoor = 5127, openDoor = 5128 },
	{ closedDoor = 5283, openDoor = 5284 },
	{ closedDoor = 5285, openDoor = 5286 },
	{ closedDoor = 5514, openDoor = 5515 },
	{ closedDoor = 5516, openDoor = 5517 },
	{ closedDoor = 6197, openDoor = 6198 },
	{ closedDoor = 6199, openDoor = 6200 },
	{ closedDoor = 6254, openDoor = 6255 },
	{ closedDoor = 6256, openDoor = 6257 },
	{ closedDoor = 6894, openDoor = 6895 },
	{ closedDoor = 6903, openDoor = 6904 },
	{ closedDoor = 7036, openDoor = 7037 },
	{ closedDoor = 7045, openDoor = 7046 },
	{ closedDoor = 7054, openDoor = 7055 },
	{ closedDoor = 7056, openDoor = 7057 },
	{ closedDoor = 7717, openDoor = 7718 },
	{ closedDoor = 7719, openDoor = 7720 },
	{ closedDoor = 8255, openDoor = 8256 },
	{ closedDoor = 8257, openDoor = 8258 },
	{ closedDoor = 8357, openDoor = 8358 },
	{ closedDoor = 8359, openDoor = 8360 },
	{ closedDoor = 9357, openDoor = 9358 },
	{ closedDoor = 9359, openDoor = 9360 },
	{ closedDoor = 9554, openDoor = 9555 },
	{ closedDoor = 9563, openDoor = 9564 },
	{ closedDoor = 11705, openDoor = 11708 },
	{ closedDoor = 11714, openDoor = 11716 },
	{ closedDoor = 12035, openDoor = 12036 },
	{ closedDoor = 12249, openDoor = 12250 },
	{ closedDoor = 15687, openDoor = 15688 },
	{ closedDoor = 17563, openDoor = 17564 },
	{ closedDoor = 17572, openDoor = 17573 },
	{ closedDoor = 17703, openDoor = 17704 },
	{ closedDoor = 17712, openDoor = 17713 },
	{ closedDoor = 17996, openDoor = 17997 },
	{ closedDoor = 18005, openDoor = 18006 },
	{ closedDoor = 18025, openDoor = 18026 },
	{ closedDoor = 20446, openDoor = 20447 },
	{ closedDoor = 20455, openDoor = 20456 },
	{ closedDoor = 24541, openDoor = 24542 },
	{ closedDoor = 24543, openDoor = 24544 },
	{ closedDoor = 24903, openDoor = 28520 },
	--[[ do not have the open door id, if activate this, have a conflict of id (is only a locked door?)
	{ closedDoor = 30049, openDoor = 30035 },
	{ closedDoor = 30050, openDoor = 30036 },
	{ closedDoor = 30051, openDoor = 30039 },
	{ closedDoor = 30052, openDoor = 30040 },
	]]
	{ closedDoor = 30833, openDoor = 30837 },
	{ closedDoor = 30834, openDoor = 30837 },
	{ closedDoor = 30835, openDoor = 30838 },
	{ closedDoor = 30836, openDoor = 30838 },
	{ closedDoor = 30849, openDoor = 30853 },
	{ closedDoor = 30850, openDoor = 30854 },
	{ closedDoor = 30851, openDoor = 30855 },
	{ closedDoor = 30852, openDoor = 30856 },
	{ closedDoor = 31494, openDoor = 31496 },
	{ closedDoor = 31495, openDoor = 31497 },
	{ closedDoor = 31663, openDoor = 31664 },
	{ closedDoor = 31665, openDoor = 31666 },
	{ closedDoor = 33271, openDoor = 33272 },
	{ closedDoor = 33273, openDoor = 33274 },
	--{ closedDoor = 33335}, -- it's probably door of a quest
	--{ closedDoor = 33336}, -- it's probably door of a quest
	--{ closedDoor = 33632}, -- it's probably door of a quest
	--{ closedDoor = 33634}, -- it's probably door of a quest
	{ closedDoor = 33633, openDoor = 33636 },
	{ closedDoor = 33635, openDoor = 33637 },
	{ closedDoor = 34221, openDoor = 34222 },
	{ closedDoor = 34223, openDoor = 34224 },
	{ closedDoor = 15890, openDoor = 15891 },
	{ closedDoor = 15892, openDoor = 15893 },
	{ closedDoor = 22502, openDoor = 22503 },
	{ closedDoor = 22504, openDoor = 22505 },
	{ closedDoor = 39660, openDoor = 39666 },
	{ closedDoor = 39661, openDoor = 39667 },
	{ closedDoor = 48495, openDoor = 48497 },
	{ closedDoor = 48496, openDoor = 48498 },
	{ closedDoor = 48499, openDoor = 48501 },
	{ closedDoor = 48500, openDoor = 48502 },
	{ closedDoor = 48520, openDoor = 48524 },
	{ closedDoor = 48522, openDoor = 48526 },
	{ closedDoor = 48528, openDoor = 48530 },
	{ closedDoor = 48529, openDoor = 48531 },
	{ closedDoor = 49678, openDoor = 49682 },
	{ closedDoor = 49679, openDoor = 49682 },
	{ closedDoor = 49680, openDoor = 49683 },
	{ closedDoor = 49681, openDoor = 49683 },
	{ closedDoor = 49684, openDoor = 49688 },
	{ closedDoor = 49685, openDoor = 49688 },
	{ closedDoor = 49686, openDoor = 49689 },
	{ closedDoor = 49687, openDoor = 49689 },
}

-- These are the doors for missions, they need access from some mission (storage) to be able to enter. Put the storage value in the action id of the door and it will open only to the player who has the storage value.
QuestDoorTable = {
	{ closedDoor = 1642, openDoor = 1643 },
	{ closedDoor = 1644, openDoor = 1645 },
	{ closedDoor = 1660, openDoor = 1661 },
	{ closedDoor = 1662, openDoor = 1663 },
	{ closedDoor = 1674, openDoor = 1675 },
	{ closedDoor = 1676, openDoor = 1677 },
	{ closedDoor = 1689, openDoor = 1690 },
	{ closedDoor = 1698, openDoor = 1699 },
	{ closedDoor = 5104, openDoor = 5105 },
	{ closedDoor = 5113, openDoor = 5114 },
	{ closedDoor = 5122, openDoor = 5123 },
	{ closedDoor = 5131, openDoor = 5132 },
	{ closedDoor = 5287, openDoor = 5288 },
	{ closedDoor = 5289, openDoor = 5290 },
	{ closedDoor = 5749, openDoor = 5748 },
	{ closedDoor = 6201, openDoor = 6202 },
	{ closedDoor = 6203, openDoor = 6204 },
	{ closedDoor = 6258, openDoor = 6259 },
	{ closedDoor = 6260, openDoor = 6261 },
	{ closedDoor = 6898, openDoor = 6899 },
	{ closedDoor = 6907, openDoor = 6908 },
	{ closedDoor = 7040, openDoor = 7041 },
	{ closedDoor = 7049, openDoor = 7050 },
	{ closedDoor = 7721, openDoor = 7722 },
	{ closedDoor = 7723, openDoor = 7724 },
	{ closedDoor = 8259, openDoor = 8260 },
	{ closedDoor = 8261, openDoor = 8262 },
	{ closedDoor = 8361, openDoor = 8362 },
	{ closedDoor = 8363, openDoor = 8364 },
	{ closedDoor = 9361, openDoor = 9362 },
	{ closedDoor = 9363, openDoor = 9364 },
	{ closedDoor = 9558, openDoor = 9559 },
	{ closedDoor = 9567, openDoor = 9568 },
	{ closedDoor = 9865, openDoor = 9866 },
	{ closedDoor = 9874, openDoor = 9875 },
	{ closedDoor = 11148, openDoor = 11149 },
	{ closedDoor = 11239, openDoor = 11240 },
	{ closedDoor = 11248, openDoor = 11249 },
	{ closedDoor = 17567, openDoor = 17568 },
	{ closedDoor = 17576, openDoor = 17577 },
	{ closedDoor = 17707, openDoor = 17708 },
	{ closedDoor = 17716, openDoor = 17717 },
	{ closedDoor = 18000, openDoor = 18001 },
	{ closedDoor = 18009, openDoor = 18010 },
	{ closedDoor = 20450, openDoor = 20451 },
	{ closedDoor = 20459, openDoor = 20460 },
	{ closedDoor = 22506, openDoor = 22507 },
	{ closedDoor = 22508, openDoor = 22509 },
	{ closedDoor = 28658, openDoor = 28885 },
	{ closedDoor = 28659, openDoor = 28886 },
	{ closedDoor = 30041, openDoor = 30042 },
	{ closedDoor = 30043, openDoor = 30044 },
	{ closedDoor = 30045, openDoor = 30046 },
	{ closedDoor = 30047, openDoor = 30048 },
	{ closedDoor = 31568, openDoor = 31569 },
	{ closedDoor = 31570, openDoor = 31571 },
	{ closedDoor = 36547, openDoor = 36548 },
	{ closedDoor = 39351, openDoor = 39353 },
	{ closedDoor = 39352, openDoor = 39354 },
	{ closedDoor = 42744, openDoor = 42745 },
}

-- Level doors.
-- It's simple, just add a 1 followed by the amount of levels the player needs to be able to pass.
-- For example:
-- Level 10 put the action id: 1255 on the door.
-- Level 100 put the action id: 1345 on the door. And so on.
LevelDoorTable = {
	{ closedDoor = 1646, openDoor = 1647 },
	{ closedDoor = 1648, openDoor = 1649 },
	{ closedDoor = 1664, openDoor = 1665 },
	{ closedDoor = 1666, openDoor = 1667 },
	{ closedDoor = 1678, openDoor = 1679 },
	{ closedDoor = 1680, openDoor = 1681 },
	{ closedDoor = 1687, openDoor = 1688 },
	{ closedDoor = 1696, openDoor = 1697 },
	{ closedDoor = 5102, openDoor = 5103 },
	{ closedDoor = 5111, openDoor = 5112 },
	{ closedDoor = 5120, openDoor = 5121 },
	{ closedDoor = 5129, openDoor = 5130 },
	{ closedDoor = 5291, openDoor = 5292 },
	{ closedDoor = 5293, openDoor = 5294 },
	{ closedDoor = 6205, openDoor = 6206 },
	{ closedDoor = 6207, openDoor = 6208 },
	{ closedDoor = 6262, openDoor = 6263 },
	{ closedDoor = 6264, openDoor = 6265 },
	{ closedDoor = 6896, openDoor = 6897 },
	{ closedDoor = 6905, openDoor = 6906 },
	{ closedDoor = 7038, openDoor = 7039 },
	{ closedDoor = 7047, openDoor = 7048 },
	{ closedDoor = 7725, openDoor = 7726 },
	{ closedDoor = 7727, openDoor = 7728 },
	{ closedDoor = 8263, openDoor = 8264 },
	{ closedDoor = 8265, openDoor = 8266 },
	{ closedDoor = 8365, openDoor = 8366 },
	{ closedDoor = 8367, openDoor = 8368 },
	{ closedDoor = 9365, openDoor = 9366 },
	{ closedDoor = 9367, openDoor = 9368 },
	{ closedDoor = 9556, openDoor = 9557 },
	{ closedDoor = 9565, openDoor = 9566 },
	{ closedDoor = 9863, openDoor = 9864 },
	{ closedDoor = 9872, openDoor = 9873 },
	{ closedDoor = 11139, openDoor = 11140 },
	{ closedDoor = 11146, openDoor = 11147 },
	{ closedDoor = 11237, openDoor = 11238 },
	{ closedDoor = 11246, openDoor = 11247 },
	{ closedDoor = 12033, openDoor = 12034 },
	{ closedDoor = 17565, openDoor = 17566 },
	{ closedDoor = 17574, openDoor = 17575 },
	{ closedDoor = 17705, openDoor = 17706 },
	{ closedDoor = 17714, openDoor = 17715 },
	{ closedDoor = 17998, openDoor = 17999 },
	{ closedDoor = 18007, openDoor = 18008 },
	{ closedDoor = 20448, openDoor = 20449 },
	{ closedDoor = 20457, openDoor = 20458 },
	{ closedDoor = 30033, openDoor = 30035 },
	{ closedDoor = 30034, openDoor = 30036 },
	{ closedDoor = 30037, openDoor = 30039 },
	{ closedDoor = 30038, openDoor = 30040 },
}
