Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not fs.exists("message.nfp") then
- shell.run("pastebin get iV71pG62 message.nfp")
- shell.run("pastebin get w5R5g5H1 box")
- end
- term.setBackgroundColor(colors.black)
- term.clear()
- msg = paintutils.loadImage("message")
- --paintutils.drawImage(msg,4,3)
- box = paintutils.loadImage("box")
- ins = paintutils.loadImage("inscribe")
- paintutils.drawImage(msg,2,3)
- paintutils.drawImage(ins,12,2)
- paintutils.drawImage(box,19,1)
- paintutils.drawImage(box,1,8)
- paintutils.drawImage(box,10,8)
- paintutils.drawImage(box,19,8)
- paintutils.drawImage(box,1,15)
- paintutils.drawImage(box,10,15)
- paintutils.drawImage(box,19,15)
- function appcheck(x,y,x2,y2)
- if (select[3] > x and select[3] < x2) and
- (select[4] > y and select[4] < y2) then
- print("recieved"..tostring(x).." "..tostring(y))
- end
- end
- while true do
- select = {os.pullEvent("mouse_click")}
- if (select[3] > 4 and select[3] < 11) and
- (select[4] > 3 and select[4] < 6) then
- break
- end
- appcheck(10,1,17,6)
- appcheck(19,1,26,6)
- appcheck(1,8,8,13)
- appcheck(10,8,17,13)
- appcheck(19,8,26,13)
- appcheck(1,15,8,20)
- appcheck(10,15,17,20)
- appcheck(19,15,26,20)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement