RONinja Posted October 5, 2020 Share Posted October 5, 2020 ---This script uses program board to read player name who activated it and check to see if they have permission to enter a door while recording the name on the second screen and making sure its not a duplicate before writing to inside screen. If list exceeds screen you can right click screen and copy html and view elsewhere such as notepad Requires: 1 databank 2 screens 1 detector unit 1 door How to Install Paste config and install links in order. Edit Lua Parameter and Put Player name in parenthesis. To add more players go into Lua editor and duplicate the line containing "Enter Name Here" Slots Hook up in this order and rename slots. slot1 --> databank slot2 --> screenIN slot3 --> detection slot4 --> screenOUT slot5 --> fdoor Basic Security Fix 11/30/2020 Json Paste {"slots":{"0":{"name":"databank","type":{"events":[],"methods":[]}},"1":{"name":"screenIN","type":{"events":[],"methods":[]}},"2":{"name":"detection","type":{"events":[],"methods":[]}},"3":{"name":"screenOUT","type":{"events":[],"methods":[]}},"4":{"name":"fdoor","type":{"events":[],"methods":[]}},"5":{"name":"slot6","type":{"events":[],"methods":[]}},"6":{"name":"slot7","type":{"events":[],"methods":[]}},"7":{"name":"slot8","type":{"events":[],"methods":[]}},"8":{"name":"slot9","type":{"events":[],"methods":[]}},"9":{"name":"slot10","type":{"events":[],"methods":[]}},"-1":{"name":"unit","type":{"events":[],"methods":[]}},"-2":{"name":"system","type":{"events":[],"methods":[]}},"-3":{"name":"library","type":{"events":[],"methods":[]}}},"handlers":[{"code":"known_players = {}\ntable.insert(known_players,database.getPlayer(id).name..[[]]..database.getPlayer(id).id)\nlocal Detectedhtml = \"\"\nfor _, name in pairs(known_players) do\n\ndatabank.setStringValue(\"Detected\",\"<div style=font-size:5vh>ID\"..\" \"..database.getPlayer(id).id..\" \".. database.getPlayer(id).name..\"<p>\")\ndatabank.setStringValue(\"ChkDet\",database.getPlayer(id).name)\n\nend \nfdoor.deactivate()\ndoorhtml= ([[<svg class=\"bootstrap\" viewBox=\"0 0 1920 1080\" style=\"width:100%; height:100%\" <svg width=\"1920\" height=\"1080\">\n <g>\n <title>background</title>\n <rect x=\"-1\" y=\"-1\" width=\"1922\" height=\"1082\" id=\"canvas_background\" fill=\"#000000\"/>\n </g>\n\n <g>\n <title>Layer 1</title>\n <text font-weight=\"bold\" font-style=\"italic\" xml:space=\"preserve\" text-anchor=\"start\" font-family=\"'Courier New', Courier, monospace\" font-size=\"100\" id=\"svg_18\" y=\"500\" x=\"668.233333\" stroke-width=\"0\" stroke=\"#000\" fill=]]..OrgColor..[[>]]..OrgName..[[</text>\n <text font-weight=\"bold\" font-style=\"italic\" xml:space=\"preserve\" text-anchor=\"start\" font-family=\"'Courier New', Courier, monospace\" font-size=\"100\" id=\"svg_19\" y=\"600\" x=\"426.333278\" stroke-width=\"0\" stroke=\"#000\" fill=]]..SecondaryTitleColor..[[>]]..SecondaryTitle..[[</text>\n </g>\n</svg>]])\nscreenOUT.setHTML(doorhtml)\n\n\n","filter":{"args":[{"variable":"*"}],"signature":"leave(id)","slotKey":"2"},"key":"0"},{"code":"playerna = unit.getMasterPlayerId()\nplayernamesdoor = system.getPlayerName(playerna)\n---Basic Security Fix(Player Requested)---\nOwner = \"NEWMidgetMAN\" --export:Main Owner\n\n\nPlayersOnList = {Owner,\"PrincessKitty\",\"Enter Name Here\", \"Enter Name Here\"} --Enter Name Here are Examples.\nlocal function contains(table, val)\n for i=1,#table do\n if table[i] == val then \n return true\n end\n end\n return false\nend\n\nif contains(PlayersOnList, playernamesdoor) then\n\tdoorhtml = \"\"\n\tdoorhtml = doorhtml .. \"<div style=font-size:10vh> Access Granted <br> Welcome Back : <br><p><div style=font-size:15vh>\" ..playernamesdoor..\"\\n\"\n\tscreenOUT.setHTML(doorhtml)\n\tfdoor.activate()\nelse\n \t doorhtml = ([[<svg id=\"Layer_1\" data-name=\"Layer 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1024 600\"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:red;}</style></defs><rect class=\"cls-1\" width=\"1024\" height=\"600\"/><rect class=\"cls-2\" width=\"1024\" height=\"281\"/><path class=\"cls-1\" d=\"M164.05,122.19V50.61h36.87q10.25,0,15.67,1.76a16.65,16.65,0,0,1,8.74,6.52,19.78,19.78,0,0,1,3.32,11.59,19.14,19.14,0,0,1-9.53,17.29,26.73,26.73,0,0,1-7.76,2.83,22,22,0,0,1,5.75,2.64A22,22,0,0,1,220.65,97a28.24,28.24,0,0,1,3.1,4.45l10.71,20.74h-25l-11.83-21.87c-1.49-2.83-2.83-4.67-4-5.52a9.24,9.24,0,0,0-5.42-1.66h-1.95v29.05Zm22.22-42.57h9.32a33.44,33.44,0,0,0,5.86-1A5.81,5.81,0,0,0,205,76.39a7.26,7.26,0,0,0-.8-9.47Q202,65.06,196,65.06h-9.71Z\"/><path class=\"cls-1\" d=\"M241.49,50.61h59.28V65.89H263.66V77.27h34.42v14.6H263.66V106h38.18v16.21H241.49Z\"/><path class=\"cls-1\" d=\"M309.9,98.51,331,97.19a16,16,0,0,0,2.78,7.82q3.42,4.33,9.76,4.34,4.74,0,7.3-2.22a6.66,6.66,0,0,0,2.57-5.15,6.58,6.58,0,0,0-2.44-5q-2.44-2.2-11.33-4.15Q325,89.58,318.84,84.16a17.48,17.48,0,0,1-6.25-13.82,18.79,18.79,0,0,1,3.19-10.43,21.25,21.25,0,0,1,9.62-7.71q6.42-2.81,17.61-2.81,13.71,0,20.92,5.1t8.57,16.24L351.65,72c-.56-3.22-1.72-5.57-3.49-7a11.21,11.21,0,0,0-7.35-2.2q-3.85,0-5.81,1.64a5,5,0,0,0-2,4,4,4,0,0,0,1.62,3.07q1.56,1.43,7.42,2.64,14.51,3.12,20.77,6.32A21.84,21.84,0,0,1,372,88.31a20.13,20.13,0,0,1,2.85,10.59A22.72,22.72,0,0,1,371,111.6a23.81,23.81,0,0,1-10.64,8.81q-6.84,3-17.24,3-18.25,0-25.29-7A27.7,27.7,0,0,1,309.9,98.51Z\"/><path class=\"cls-1\" d=\"M381,50.61h67.23V68.29H425.62v53.9H403.5V68.29H381Z\"/><path class=\"cls-1\" d=\"M458.48,122.19V50.61h36.87q10.26,0,15.67,1.76a16.61,16.61,0,0,1,8.74,6.52,19.71,19.71,0,0,1,3.32,11.59,19.16,19.16,0,0,1-9.52,17.29,26.81,26.81,0,0,1-7.77,2.83,22.21,22.21,0,0,1,5.76,2.64A22.46,22.46,0,0,1,515.08,97a28.24,28.24,0,0,1,3.1,4.45l10.71,20.74h-25l-11.82-21.87c-1.5-2.83-2.83-4.67-4-5.52a9.24,9.24,0,0,0-5.42-1.66H480.7v29.05ZM480.7,79.62H490a33.58,33.58,0,0,0,5.86-1,5.84,5.84,0,0,0,3.59-2.25,7.25,7.25,0,0,0-.81-9.47c-1.46-1.24-4.22-1.86-8.25-1.86H480.7Z\"/><path class=\"cls-1\" d=\"M536.85,50.61H559v71.58H536.85Z\"/><path class=\"cls-1\" d=\"M622.55,92.9l19.38,5.86a35.76,35.76,0,0,1-6.15,13.62,26.72,26.72,0,0,1-10.43,8.25q-6.23,2.79-15.84,2.78-11.67,0-19.07-3.39t-12.77-11.93q-5.37-8.53-5.37-21.86,0-17.76,9.45-27.3t26.73-9.54q13.53,0,21.27,5.47t11.5,16.8L621.72,76a16.85,16.85,0,0,0-2.15-4.78A12.68,12.68,0,0,0,615,67.31,14,14,0,0,0,597.5,72q-3,4.49-3,14.09,0,11.91,3.61,16.32t10.16,4.41q6.35,0,9.59-3.56T622.55,92.9Z\"/><path class=\"cls-1\" d=\"M647.64,50.61h67.24V68.29H692.32v53.9H670.2V68.29H647.64Z\"/><path class=\"cls-1\" d=\"M724.84,50.61h59.28V65.89H747V77.27h34.42v14.6H747V106h38.18v16.21H724.84Z\"/><path class=\"cls-1\" d=\"M797.4,50.61h32.86q9.72,0,15.7,2.64a25.56,25.56,0,0,1,9.89,7.57,31.3,31.3,0,0,1,5.66,11.47,53.35,53.35,0,0,1,1.76,13.87q0,11.48-2.61,17.8a29.51,29.51,0,0,1-7.25,10.59,23.69,23.69,0,0,1-10,5.69,51.48,51.48,0,0,1-13.19,2H797.4Zm22.12,16.21v39.11h5.42q6.93,0,9.86-1.53A10.39,10.39,0,0,0,839.39,99q1.67-3.83,1.66-12.42,0-11.38-3.71-15.58T825,66.82Z\"/><path class=\"cls-1\" d=\"M410.55,230.38H385.44L382,242.19H359.36l26.91-71.58h24.12l26.9,71.58H414.13ZM406,214.9l-7.9-25.73-7.82,25.73Z\"/><path class=\"cls-1\" d=\"M444.62,242.19V170.61h36.86q10.26,0,15.68,1.76a16.69,16.69,0,0,1,8.74,6.52,20.21,20.21,0,0,1-6.21,28.88,26.81,26.81,0,0,1-7.77,2.83,21.89,21.89,0,0,1,5.76,2.64,22.82,22.82,0,0,1,3.54,3.76,29,29,0,0,1,3.1,4.45L515,242.19H490l-11.82-21.87q-2.25-4.24-4-5.52a9.26,9.26,0,0,0-5.42-1.66h-2v29.05Zm22.21-42.57h9.33a33.58,33.58,0,0,0,5.86-1,5.84,5.84,0,0,0,3.59-2.25,7.25,7.25,0,0,0-.81-9.47q-2.19-1.86-8.25-1.86h-9.72Z\"/><path class=\"cls-1\" d=\"M522.06,170.61h59.28v15.28H544.23v11.38h34.42v14.6H544.23V226h38.18v16.21H522.06Z\"/><path class=\"cls-1\" d=\"M638.33,230.38H613.22l-3.49,11.81H587.15l26.9-71.58h24.13l26.9,71.58H641.91Zm-4.59-15.48-7.9-25.73L618,214.9Z\"/><path d=\"M77.59,318.57H94.11l21.56,31.68V318.57h16.68v57.27H115.67L94.23,344.4v31.44H77.59Z\"/><path d=\"M141.88,347.25q0-14,7.82-21.84t21.75-7.81q14.3,0,22,7.67t7.74,21.51q0,10-3.38,16.46a24,24,0,0,1-9.77,10q-6.37,3.57-15.91,3.58-9.69,0-16-3.09A24.13,24.13,0,0,1,145.83,364Q141.89,357.29,141.88,347.25Zm17.7.07q0,8.67,3.22,12.46a10.9,10.9,0,0,0,8.77,3.79q5.7,0,8.83-3.71t3.12-13.32q0-8.09-3.26-11.81a11.13,11.13,0,0,0-8.85-3.73,10.76,10.76,0,0,0-8.59,3.78Q159.58,338.58,159.58,347.32Z\"/><path d=\"M274.7,318.57h17.65v34.12a28.82,28.82,0,0,1-1.58,9.58,20.77,20.77,0,0,1-5,7.89,19.8,19.8,0,0,1-7.09,4.74,35.58,35.58,0,0,1-12.38,1.92,78.23,78.23,0,0,1-9.13-.59,23.88,23.88,0,0,1-8.26-2.32,20.74,20.74,0,0,1-6.07-4.94,18.05,18.05,0,0,1-3.77-6.6,34.3,34.3,0,0,1-1.64-9.68V318.57h17.66V353.5a10,10,0,0,0,2.59,7.32,11.18,11.18,0,0,0,14.38,0q2.59-2.6,2.6-7.36Z\"/><path d=\"M304.19,318.57h16.52l21.56,31.68V318.57H359v57.27H342.27L320.83,344.4v31.44H304.19Z\"/><path d=\"M405.14,366.39H385.05l-2.8,9.45H364.19l21.52-57.27H405l21.52,57.27H408ZM401.47,354l-6.33-20.58L388.89,354Z\"/><path d=\"M466.69,318.57h17.65v34.12a28.57,28.57,0,0,1-1.58,9.58,20.65,20.65,0,0,1-5,7.89,19.8,19.8,0,0,1-7.09,4.74,35.54,35.54,0,0,1-12.38,1.92,77.93,77.93,0,0,1-9.12-.59,23.75,23.75,0,0,1-8.26-2.32,20.78,20.78,0,0,1-6.08-4.94,18.2,18.2,0,0,1-3.77-6.6,34.3,34.3,0,0,1-1.64-9.68V318.57h17.66V353.5a10,10,0,0,0,2.59,7.32,11.18,11.18,0,0,0,14.38,0q2.6-2.6,2.6-7.36Z\"/><path d=\"M492,318.57h53.79v14.14H527.78v43.13H510.09V332.71H492Z\"/><path d=\"M553.91,318.57h17.7v20H591v-20h17.77v57.27H591V352.67H571.61v23.17h-17.7Z\"/><path d=\"M618.25,347.25q0-14,7.81-21.84t21.76-7.81q14.29,0,22,7.67t7.74,21.51q0,10-3.38,16.46a24.08,24.08,0,0,1-9.77,10q-6.39,3.57-15.92,3.58-9.69,0-16-3.09A24.13,24.13,0,0,1,622.2,364Q618.24,357.29,618.25,347.25Zm17.7.07q0,8.67,3.22,12.46a10.9,10.9,0,0,0,8.77,3.79q5.7,0,8.83-3.71t3.12-13.32q0-8.09-3.26-11.81a11.16,11.16,0,0,0-8.85-3.73,10.75,10.75,0,0,0-8.59,3.78Q635.95,338.58,636,347.32Z\"/><path d=\"M687.35,375.84V318.57h29.49q8.2,0,12.54,1.41a13.46,13.46,0,0,1,7,5.21,16.18,16.18,0,0,1-5,23.11,21.45,21.45,0,0,1-6.21,2.27,17.31,17.31,0,0,1,4.6,2.11,17.56,17.56,0,0,1,2.83,3,22.32,22.32,0,0,1,2.48,3.56l8.57,16.59h-20l-9.46-17.5a13.35,13.35,0,0,0-3.21-4.42,7.43,7.43,0,0,0-4.33-1.32h-1.56v23.24Zm17.78-34.06h7.46a26.65,26.65,0,0,0,4.68-.78,4.69,4.69,0,0,0,2.87-1.8,5.79,5.79,0,0,0-.64-7.58q-1.75-1.49-6.6-1.48h-7.77Z\"/><path d=\"M750.05,318.57h17.73v57.27H750.05Z\"/><path d=\"M779,318.57h50.08V330L797,363.53h33.32v12.31H776V364l31.8-33.16H779Z\"/><path d=\"M838.21,318.57h47.42V330.8H856v9.1h27.53v11.68H856v11.29h30.54v13H838.21Z\"/><path d=\"M896.26,318.57h26.29q7.77,0,12.56,2.11a20.52,20.52,0,0,1,7.91,6.06,25.15,25.15,0,0,1,4.53,9.18A42.44,42.44,0,0,1,949,347q0,9.18-2.09,14.24a23.5,23.5,0,0,1-5.8,8.48,19,19,0,0,1-8,4.55,41.07,41.07,0,0,1-10.54,1.56H896.26Zm17.69,13v31.29h4.34q5.55,0,7.89-1.23a8.31,8.31,0,0,0,3.67-4.3q1.33-3.06,1.33-9.94,0-9.11-3-12.46t-9.84-3.36Z\"/><path d=\"M244.48,414.57h29.41q9.62,0,14.4,4.57t4.78,13q0,8.67-5.21,13.56t-15.92,4.88h-9.69v21.25H244.48ZM262.25,439h4.34q5.12,0,7.19-1.78a5.72,5.72,0,0,0,2.07-4.55,6.35,6.35,0,0,0-1.8-4.57q-1.8-1.87-6.76-1.88h-5Z\"/><path d=\"M302.29,414.57h47.42V426.8H320v9.1h27.54v11.68H320v11.29h30.54v13H302.29Z\"/><path d=\"M360.34,471.84V414.57h29.49q8.21,0,12.54,1.41a13.4,13.4,0,0,1,7,5.21,16.17,16.17,0,0,1-5,23.11,21.41,21.41,0,0,1-6.22,2.27,17.25,17.25,0,0,1,4.61,2.11,18,18,0,0,1,2.83,3,22.32,22.32,0,0,1,2.48,3.56l8.57,16.59h-20l-9.46-17.5a13.22,13.22,0,0,0-3.2-4.42,7.43,7.43,0,0,0-4.33-1.32h-1.57v23.24Zm17.77-34.06h7.46a26.71,26.71,0,0,0,4.69-.78,4.72,4.72,0,0,0,2.87-1.8,5.79,5.79,0,0,0-.64-7.58q-1.75-1.49-6.6-1.48h-7.78Z\"/><path d=\"M419.25,452.89l16.83-1.05a12.9,12.9,0,0,0,2.23,6.25,9.35,9.35,0,0,0,7.81,3.48,8.67,8.67,0,0,0,5.84-1.78,5.32,5.32,0,0,0,2.05-4.12,5.26,5.26,0,0,0-1.95-4q-1.95-1.76-9.06-3.32-11.64-2.61-16.61-6.95a14,14,0,0,1-5-11.06A15.08,15.08,0,0,1,424,422a17,17,0,0,1,7.7-6.17q5.13-2.23,14.08-2.24,11,0,16.74,4.08t6.85,13l-16.68,1a7.79,7.79,0,0,0-8.67-7.38,7.14,7.14,0,0,0-4.65,1.31,4,4,0,0,0-1.56,3.18,3.16,3.16,0,0,0,1.29,2.46q1.24,1.14,5.94,2.11,11.6,2.51,16.62,5.06a17.42,17.42,0,0,1,7.3,6.35,16,16,0,0,1,2.29,8.48,18.16,18.16,0,0,1-3.05,10.15,19.06,19.06,0,0,1-8.51,7.05,34.47,34.47,0,0,1-13.79,2.41q-14.61,0-20.24-5.63A22.17,22.17,0,0,1,419.25,452.89Z\"/><path d=\"M477.88,443.25q0-14,7.81-21.84t21.76-7.81q14.3,0,22,7.67t7.73,21.51q0,10-3.37,16.46a24.08,24.08,0,0,1-9.77,10q-6.39,3.57-15.92,3.58-9.69,0-16-3.09a24.1,24.1,0,0,1-10.3-9.77Q477.88,453.29,477.88,443.25Zm17.69.07q0,8.67,3.23,12.46a10.9,10.9,0,0,0,8.77,3.79q5.7,0,8.82-3.71t3.13-13.32q0-8.09-3.26-11.81a11.16,11.16,0,0,0-8.85-3.73,10.75,10.75,0,0,0-8.59,3.78Q495.56,434.58,495.57,443.32Z\"/><path d=\"M546.86,414.57h16.53L585,446.25V414.57h16.68v57.27H585L563.5,440.4v31.44H546.86Z\"/><path d=\"M613.5,414.57H630l21.56,31.68V414.57h16.68v57.27H651.59L630.14,440.4v31.44H613.5Z\"/><path d=\"M680,414.57h47.42V426.8H697.72v9.1h27.54v11.68H697.72v11.29h30.55v13H680Z\"/><path d=\"M737.8,414.57h17.7v43.17h27.61v14.1H737.8Z\"/><path d=\"M58.11,510.57H91.24q8.28,0,12.71,4.1a13.28,13.28,0,0,1,4.44,10.16,12.8,12.8,0,0,1-3.17,8.71,14,14,0,0,1-6.17,3.83q6.18,1.49,9.08,5.1a14,14,0,0,1,2.91,9.08,15.62,15.62,0,0,1-2.07,8,15.26,15.26,0,0,1-5.66,5.62,18.73,18.73,0,0,1-6.72,1.88,77.57,77.57,0,0,1-7.93.78H58.11ZM76,533h7.7q4.14,0,5.76-1.42A5.2,5.2,0,0,0,91,527.49a4.91,4.91,0,0,0-1.62-3.91q-1.62-1.41-5.64-1.41H76Zm0,22.5h9c3.05,0,5.19-.54,6.44-1.62a5.46,5.46,0,0,0,1.88-4.35,5,5,0,0,0-1.86-4.08q-1.85-1.54-6.5-1.55H76Z\"/><path d=\"M120.26,510.57h47.42V522.8H138v9.1h27.54v11.68H138v11.29h30.54v13H120.26Z\"/><path d=\"M172.29,510.57H192l11.54,19.32,11.56-19.32H234.6l-22.27,33.28v24H194.6v-24Z\"/><path d=\"M233.27,539.25q0-14,7.81-21.84t21.76-7.81q14.3,0,22,7.67t7.74,21.51q0,10-3.38,16.46a24.08,24.08,0,0,1-9.77,10q-6.39,3.57-15.92,3.58-9.69,0-16-3.09a24.15,24.15,0,0,1-10.3-9.77Q233.27,549.29,233.27,539.25Zm17.69.07q0,8.67,3.23,12.46a10.9,10.9,0,0,0,8.77,3.79q5.7,0,8.83-3.71t3.12-13.32q0-8.09-3.26-11.81A11.16,11.16,0,0,0,262.8,523a10.75,10.75,0,0,0-8.59,3.78Q251,530.57,251,539.32Z\"/><path d=\"M302.25,510.57h16.53l21.56,31.68V510.57H357v57.27H340.34L318.89,536.4v31.44H302.25Z\"/><path d=\"M369,510.57H395.3q7.77,0,12.56,2.11a20.44,20.44,0,0,1,7.91,6.06,25.15,25.15,0,0,1,4.53,9.18A42.44,42.44,0,0,1,421.71,539q0,9.18-2.09,14.24a23.75,23.75,0,0,1-5.8,8.48,19.1,19.1,0,0,1-8,4.55,41.14,41.14,0,0,1-10.55,1.56H369Zm17.7,13v31.29H391q5.55,0,7.89-1.23a8.33,8.33,0,0,0,3.68-4.3q1.32-3.06,1.32-9.94,0-9.11-3-12.46c-2-2.24-5.26-3.36-9.84-3.36Z\"/><path d=\"M453.66,510.57h53.79v14.14H489.4v43.13H471.71V524.71h-18Z\"/><path d=\"M515.54,510.57h17.69v20h19.34v-20h17.77v57.27H552.57V544.67H533.23v23.17H515.54Z\"/><path d=\"M582.8,510.57h17.74v57.27H582.8Z\"/><path d=\"M610.14,548.89l16.84-1a12.8,12.8,0,0,0,2.23,6.25,9.34,9.34,0,0,0,7.81,3.48,8.69,8.69,0,0,0,5.84-1.78,5.32,5.32,0,0,0,2-4.12,5.26,5.26,0,0,0-1.95-4q-2-1.75-9.07-3.32-11.64-2.61-16.6-7a14,14,0,0,1-5-11.06,15.08,15.08,0,0,1,2.56-8.34,17,17,0,0,1,7.7-6.17q5.13-2.23,14.08-2.24,11,0,16.74,4.08t6.85,13l-16.68,1a7.79,7.79,0,0,0-8.67-7.38,7.1,7.1,0,0,0-4.65,1.31,4,4,0,0,0-1.56,3.18,3.16,3.16,0,0,0,1.29,2.46q1.24,1.14,5.94,2.11,11.6,2.5,16.62,5.06a17.48,17.48,0,0,1,7.3,6.35,16,16,0,0,1,2.29,8.48,18.16,18.16,0,0,1-3.05,10.15,19.06,19.06,0,0,1-8.51,7,34.47,34.47,0,0,1-13.79,2.41q-14.61,0-20.24-5.63A22.23,22.23,0,0,1,610.14,548.89Z\"/><path d=\"M697.61,510.57H727q9.62,0,14.39,4.57t4.79,13q0,8.67-5.22,13.56t-15.91,4.88h-9.69v21.25H697.61ZM715.38,535h4.33c3.42,0,5.81-.59,7.19-1.78a5.72,5.72,0,0,0,2.07-4.55,6.38,6.38,0,0,0-1.79-4.57c-1.2-1.25-3.46-1.88-6.76-1.88h-5Z\"/><path d=\"M753.23,539.25q0-14,7.81-21.84t21.76-7.81q14.3,0,22,7.67t7.74,21.51q0,10-3.38,16.46a24.08,24.08,0,0,1-9.77,10q-6.39,3.57-15.92,3.58-9.69,0-16-3.09A24.13,24.13,0,0,1,757.18,556Q753.22,549.29,753.23,539.25Zm17.7.07q0,8.67,3.22,12.46a10.9,10.9,0,0,0,8.77,3.79q5.7,0,8.83-3.71t3.12-13.32q0-8.09-3.26-11.81a11.15,11.15,0,0,0-8.85-3.73,10.75,10.75,0,0,0-8.59,3.78Q770.93,530.57,770.93,539.32Z\"/><path d=\"M822.8,510.57h17.74v57.27H822.8Z\"/><path d=\"M853.35,510.57h16.52l21.56,31.68V510.57h16.68v57.27H891.43L870,536.4v31.44H853.35Z\"/><path d=\"M915.85,510.57h53.79v14.14h-18v43.13H933.9V524.71h-18Z\"/></svg>]])\n screenOUT.setHTML(doorhtml) \n \t fdoor.deactivate()\nend\n","filter":{"args":[],"signature":"start()","slotKey":"2"},"key":"1"},{"code":"data = databank.getStringValue(\"dlist\") \nDetectedhtml = \"\"\nDetectedhtml = Detectedhtml ..data.. \"\\n\"\nscreenIN.setHTML(Detectedhtml)\nfdoor.deactivate()\n","filter":{"args":[],"signature":"stop()","slotKey":"-1"},"key":"2"},{"code":"unit.hide()\nOrgName = \"Team Rocket\"--export:Org name\nOrgColor = \"Purple\" --export:color for Org\nSecondaryTitle = \"Edit Lua Parameters\"--export:Seccondary Title\nSecondaryTitleColor = \"Blue\" --export: color for Secondary Title\nDetectedhtml = \"\"\nplayerna = unit.getMasterPlayerId()\nplayernames = system.getPlayerName(playerna)\ndatabank.setStringValue(\"ProgBnamechk\",\"<div style=font-size:5vh>ID \"..playerna..\" \".. playernames ..\"<p>\")\ndatabank.setStringValue(\"ProgBnamechklist\",playernames)\n\nknown_players = {}\n\nplayercheckstr = databank.getStringValue(\"Detected\")\nplayerlist = databank.getStringValue(\"dlist\")\nchkdet = databank.getStringValue(\"ChkDet\")\n\n\nif string.find(playerlist, chkdet) == nil then\n finalplayerlist = playerlist..playercheckstr\n databank.setStringValue(\"dlist\",playerlist..playercheckstr) \n elseif string.find(playerlist, chkdet) ~= nil then \nend\n\nunit.setTimer(\"DoorChecker\",0.08)\n","filter":{"args":[],"signature":"start()","slotKey":"-1"},"key":"3"},{"code":"playercheckstr = databank.getStringValue(\"Detected\")\nplayerlist = databank.getStringValue(\"dlist\")\nchkdet = databank.getStringValue(\"ChkDet\")\n\n\nif string.find(playerlist, chkdet) == nil then\n finalplayerlist = playerlist..playercheckstr\n databank.setStringValue(\"dlist\",playerlist..playercheckstr) \n elseif string.find(playerlist, chkdet) ~= nil then \nend\n\n\n\n","filter":{"args":[{"value":"DoorrChecker"}],"signature":"tick(timerId)","slotKey":"-1"},"key":"4"},{"code":"databank.clear()","filter":{"args":[{"value":"option1"}],"signature":"actionStart(action)","slotKey":"-2"},"key":"5"}],"methods":[],"events":[]} PrincessKitty, CptLoRes, nivuniconnu and 3 others 6 Link to comment Share on other sites More sharing options...
CptLoRes Posted October 5, 2020 Share Posted October 5, 2020 Thanks! Have you considered making github page for the scripts? It makes it much easier for people to keep track of scripts and updates. Link to comment Share on other sites More sharing options...
PrincessKitty Posted October 5, 2020 Share Posted October 5, 2020 Greviouss, Monk_NL and RONinja 3 Link to comment Share on other sites More sharing options...
FLAMER283 Posted October 6, 2020 Share Posted October 6, 2020 Where can I find the detector unit? It is not in my crafting menu? Edit: Sorry saw it's a detection zone Link to comment Share on other sites More sharing options...
BaconofWar Posted October 6, 2020 Share Posted October 6, 2020 If we had hand weapons we could make a security guard profession. Link to comment Share on other sites More sharing options...
nivuniconnu Posted October 15, 2020 Share Posted October 15, 2020 hey, thanks for sharing this, i would work on a quick update in order to display on the Main screen (history screen) the time of the last try to come inside Would you be interested in ? Nivu Link to comment Share on other sites More sharing options...
Gashwood Posted October 17, 2020 Share Posted October 17, 2020 Hello, I used your script (slightly tuned) on my ship but I've an issue as soon as I'm going "fast" in space. The game is spamming me the following error message : "Control unit is already started" It looks like the programming board is starting and stopping sessions too quickly without any reason. In atmosphere, I've no issue, it only starts a session when a player is in the detection zone. Therefore, I tried to add a telemeter and only trigger the script when I'm under 50m from ground but I didn't succeed. Do you have an idea on how I can fix this issue ? Thanks for sharing !!! Link to comment Share on other sites More sharing options...
PetraRoma Posted October 17, 2020 Share Posted October 17, 2020 Hi, Thanks a lot for you code. Do you it's possible to manage 5 Doors? Cheers Link to comment Share on other sites More sharing options...
Hellraiser1287 Posted October 19, 2020 Share Posted October 19, 2020 (edited) Hello, i want to make this my own and i have succeeded to a point but there is something i would like to know, how to i implemet an approved image from the DU website instead of your Meowth svg Edited October 19, 2020 by Hellraiser1287 worked out some issues but need different info Link to comment Share on other sites More sharing options...
KronzToker Posted October 20, 2020 Share Posted October 20, 2020 the .json is for programming board? Link to comment Share on other sites More sharing options...
Jackblackplays Posted October 20, 2020 Share Posted October 20, 2020 does it print to screen . . Hey "masterid" you not allowed here of player ,. can be added ? Link to comment Share on other sites More sharing options...
TrickyTrixy Posted October 26, 2020 Share Posted October 26, 2020 Hi, I am about to use your script on some of my ships but was wondering, can this be used if you have 2 doors on your ship? If so how would I add the second door? Thanks. Link to comment Share on other sites More sharing options...
chipde Posted October 28, 2020 Share Posted October 28, 2020 This Script have a big security issue by using string.find. Example add the User "NEWMidgetMAN" than all this User can open the door: new, midget, man, mid, get, getma, ewmid ect. Link to comment Share on other sites More sharing options...
Velidar Posted January 1, 2021 Share Posted January 1, 2021 Greetings folks! Very new to LUA scripting. I was hoping someone could assist with where to find the portion of code to adjust making it possible to use a force field, as the script sets the door to active, an active force field essentially "closes" when near, and deactivates (opens) when away. I've tried fiddling with various parts of the code that I found to have activate/deactivate and true/false associated with it to no avail. Thank you kindly for any help. Safe travels! Link to comment Share on other sites More sharing options...
Hirnsausen Posted January 10, 2021 Share Posted January 10, 2021 Is there a way to make it working with 3 doors and 3 detection zones? Bug thanks! Also, while showing the ORG name and Second Title (whatever that is) on the OUT screen, I do not see anything on the IN screen. And I need some more explaining words about the RENAMING instruction. Changing something inside your LUA script? And should there still be a direct link from the detection zone to the door? Slots Hook up in this order and rename slots. slot1 --> databank slot2 --> screenIN slot3 --> detection slot4 --> screenOUT slot5 --> fdoor Thanks. Link to comment Share on other sites More sharing options...
RevengeAngel Posted December 2, 2021 Share Posted December 2, 2021 Hey there, is this script still working with all the game updates ? At my house not. Im just stupid or is it really broken? edit: okay, i add a relais to activate the programming board, now its works =D Link to comment Share on other sites More sharing options...
Indanna Posted November 23, 2022 Share Posted November 23, 2022 Hi there, can someone update the script, my LUA skills are unfortunately too weak for that? Link to comment Share on other sites More sharing options...
Wyndle Posted November 24, 2022 Share Posted November 24, 2022 20 hours ago, Indanna said: Hi there, can someone update the script, my LUA skills are unfortunately too weak for that? The OP has not logged into the forums for a year. It is extremely unlikely that there will be any updates here. There is a chance someone may have a similar script on github. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now