--Auto Open Door
--Persistent based on Persistent Anti Furniture Dehan
--For example:
-- CheckDoor(30) == 30 seconds ... CheckDoor() == 0 seconds
init start
function CheckDoor(standtime)
local standtime = standtime or 0
if $standtime > standtime*1000 then
for x,y,z in screentiles() do
local closeddoorsids = {1628, 1629, 1631, 1632, 1638, 1640, 1642, 1644, 1646, 1648, 1650, 1651, 1653, 1654, 1656, 1658, 1660, 1662, 1664, 1666, 1668, 1669, 1671, 1672, 1674, 1676, 1678, 1680, 1682, 1683, 1685, 1687, 1689, 1691, 1692, 1694, 1696, 1698, 4912, 4913, 5006, 5007, 5082, 5084, 5097, 5098, 5100, 5102, 5104, 5106, 5107, 5109, 5111, 5113, 5115, 5116, 5118, 5120, 5122, 5124, 5125, 5127, 5129, 5131, 5133, 5134, 5136, 5137, 5139, 5140, 5142, 5143, 5277, 5278, 5280, 5281, 5282, 5285, 5287, 5289, 5291, 5293, 5302, 5303, 5514, 5516, 5732, 5735, 5745, 5749, 6191, 6192, 6194, 6195, 6197, 6199, 6201, 6203, 6205, 6207, 6248, 6249, 6251, 6252, 6254, 6258, 6260, 6262, 6264, 6435, 6436, 6439, 6440, 6443, 6444, 6449, 6450, 6453, 6454, 6457, 6458, 6461, 6462, 6465, 6466, 6469, 6470, 6788, 6789, 6891, 6892, 6894, 6896, 6898, 6900, 6901, 6903, 6905, 6907, 7027, 7028, 7033, 7034, 7036, 7038, 7040, 7042, 7043, 7045, 7047, 7049, 7051, 7052, 7711, 7712, 7714, 7715, 7717, 7719, 7721, 7723, 7725, 7727, 7868, 7941, 8249, 8250, 8252, 8253, 8255, 8257, 8258, 8261, 8263, 8265, 8351, 8352, 8354, 8355, 8357, 8359, 8361, 8363, 8365, 8367, 9347, 9348, 9351, 9352, 9354, 9355, 9357, 9359, 9361, 9363, 9365, 9367, 9551, 9552, 9554, 9556, 9558, 9560, 9561, 9563, 9565, 9567, 9571, 9572, 9858, 9859, 9863, 9865, 9867, 9868, 9872, 9874, 10147, 10149, 10151, 10153, 10155, 10157, 10520, 10521, 11232, 11233, 11237, 11239, 11241, 11242, 11246, 11248, 11705, 17560, 17561, 17563, 17565, 17567, 17569, 17570, 17572, 17574, 17576, 17700, 17701, 17703, 17705, 17707, 17709, 17710, 17712, 17714, 17716, 20443, 20444, 20446, 20448, 20450, 20452, 20453, 20455, 20457, 20459}
if not tilewalkable(x,y,z) and tilereachable(x,y,z) and table.find(closeddoorsids,topitem(x,y,z).id) then
pausewalking(30000)
reachlocation(x,y,z)
usedoor(x,y,z,'open')
wait(500)
pausewalking(0)
end
end
end
end
init end
auto(1000)
if $connected then
CheckDoor(30)
end
@Dehan
--The objective of this persistent is not to replace your actions opendoors() of the hunt (unless you have a stand, node, walk behind the door), but rather have the goal if you get stuck and you have to go through the door, but Stuck or lost the persistent will open the door and continue the script.
For example video:
--Enjoy and test dehan anti furniture which is very good. ==> Anti Furniture Dehan