Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --IMPLEMENTAZIONE DEL DRAWFILLEDBOX
- local function drawPixelInternal( xPos, yPos )
- term.setCursorPos( xPos, yPos )
- term.write(" ")
- end
- local tColourLookup = {}
- for n=1,16 do
- tColourLookup[ string.byte( "0123456789abcdef",n,n ) ] = 2^(n-1)
- end
- function drawFilledBox( startX, startY, endX, endY, nColour )
- if type( startX ) ~= "number" or type( startX ) ~= "number" or
- type( endX ) ~= "number" or type( endY ) ~= "number" or
- (nColour ~= nil and type( nColour ) ~= "number") then
- error( "Expected startX, startY, endX, endY, colour", 2 )
- end
- startX = math.floor(startX)
- startY = math.floor(startY)
- endX = math.floor(endX)
- endY = math.floor(endY)
- if nColour then
- term.setBackgroundColor( nColour )
- end
- if startX == endX and startY == endY then
- drawPixelInternal( startX, startY )
- return
- end
- local minX = math.min( startX, endX )
- if minX == startX then
- minY = startY
- maxX = endX
- maxY = endY
- else
- minY = endY
- maxX = startX
- maxY = startY
- end
- for x=minX,maxX do
- for y=minY,maxY do
- drawPixelInternal( x, y )
- end
- end
- end
- function clear()
- term.clear()
- term.setCursorPos(1, 1)
- end
- function colore(sfumatura)
- term.setTextColour(sfumatura)
- end
- function fineColore()
- term.setTextColour(colours.white)
- end
- function sfondo(sfumaturaSfondo)
- term.setBackgroundColour(sfumaturaSfondo)
- end
- function fineSfondo()
- term.setBackgroundColour(colours.black)
- end
- function disconnetti()
- sfondo(colors.lightBlue)
- clear()
- print("Arrivederci")
- print("Tra poco sarà possibile eseguire una nuova operazione")
- colore(colors.lightBlue)
- shell.run("rm startup")
- shell.run("pastebin get y1AP0iNY startup")
- os.reboot()
- end
- mag = peripheral.wrap("bottom")
- bl = "BN Credit"
- sfondo(colors.lightBlue)
- clear()
- colore(colours.white)
- print(" ___ ")
- print(" _ __ / _ \\__ _ _ _ ")
- print(" | '_ \\ / /_)/ _ | | | |")
- print(" | | | / ___/ (_| | |_| |")
- print(" |_| |_\\/ \\__,_|\\__, |")
- print(" |___/ ")
- fineColore()
- drawFilledBox(14, 10, 37, 12, colors.white)
- term.setCursorPos(20, 11)
- colore(colours.black)
- term.write("Nuovo utente")
- drawFilledBox(14, 15, 37, 17, colors.white)
- term.setCursorPos(16, 16)
- colore(colours.black)
- term.write("Utente già registrato")
- while true do
- event, key, x, y = os.pullEvent("mouse_click")
- if event == "mouse_click" and x > 14 and x < 37 and y > 10 and y < 13 then
- --Registrazione nuovo utente
- clear()
- sfondo(colours.lightBlue)
- term.clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Registrazione a nPay ")
- sfondo(colours.lightBlue)
- print("\nInserire un nome utente e una password sicura. Premere Enter per confermare i dati inseriti. \nSe i dati sono corretti, il campo diventerà verde. Se sono errati, il programma chiederà di reinserirli nuovamente.")
- --nomeutente
- term.setCursorPos(1,9)
- term.write("Nome utente:")
- term.setCursorPos(14, 9)
- fineColore()
- utenteAccettato = false
- conteggioErrori = 0
- while utenteAccettato == false do
- utente = read()
- checkuser = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?auth=no&richiesta=verifica&utente="..utente).readAll()
- tabcheckuser = textutils.unserialize(checkuser)
- if tabcheckuser.stato == "NO" then
- term.setCursorPos(14, 9)
- colore(colours.green)
- term.write(utente)
- fineColore()
- utenteAccettato=true
- else
- term.setCursorPos(14, 9)
- colore(colours.red)
- term.write("Utente già esistente!")
- sleep(2)
- term.setCursorPos(14, 9)
- fineColore()
- term.write(" ")
- term.setCursorPos(14, 9)
- conteggioErrori = conteggioErrori + 1
- if conteggioErrori > 2 then
- term.setCursorPos(14, 9)
- colore(colours.red)
- term.write("Troppi tentativi di immissione errati ")
- sleep(2)
- term.setCursorPos(14, 9)
- fineColore()
- term.write(" ")
- term.setCursorPos(14, 9)
- clear()
- os.reboot()
- end
- end
- end
- --password
- colore(colours.black)
- term.setCursorPos(1,11)
- term.write("Password:")
- term.setCursorPos(14, 11)
- fineColore()
- passAccettata = false
- conteggioErrori = 0
- while passAccettata == false do
- password1 = read("#")
- colore(colours.black)
- term.setCursorPos(1,13)
- term.write("Verifica:")
- term.setCursorPos(14, 13)
- fineColore()
- local password2 = read("#")
- if password1 == password2 then
- term.setCursorPos(14, 11)
- colore(colours.green)
- term.write("###############")
- term.setCursorPos(14, 13)
- term.write("###############")
- fineColore()
- passAccettata=true
- else
- term.setCursorPos(14, 11)
- colore(colours.red)
- term.write("La password non coincide! ")
- term.setCursorPos(14, 13)
- fineColore()
- term.write(" ")
- sleep(2)
- term.setCursorPos(14, 11)
- term.write(" ")
- term.setCursorPos(14, 11)
- conteggioErrori = conteggioErrori + 1
- if conteggioErrori > 2 then
- term.setCursorPos(14, 11)
- colore(colours.red)
- term.write("Troppi tentativi di immissione errati ")
- sleep(2)
- term.setCursorPos(14, 11)
- fineColore()
- term.write(" ")
- term.setCursorPos(14, 11)
- clear()
- os.reboot()
- end
- end
- end
- --crea l'account
- term.setCursorPos(1, 17)
- creaAccount = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?auth="..password1.."&utente="..utente.."&richiesta=crea&valore=0").readAll()
- tabCreaAccount = textutils.unserialize(creaAccount)
- if tabCreaAccount.stato == "OA" then
- colore(colors.black)
- print("Conto creato con successo.")
- sleep(3)
- clear()
- os.reboot()
- else
- colore(colors.red)
- print("Errore durante la creazione del conto.")
- sleep(3)
- clear()
- os.reboot()
- end
- elseif event == "mouse_click" and x > 14 and x < 37 and y > 15 and y < 17 then
- clear()
- --Autentica l'utente e mostra il menu principale
- sfondo(colours.lightBlue)
- term.clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Autenticazione su nPay ")
- sfondo(colours.lightBlue)
- print("\nInserire i propri dati. Premere Enter per confermare i dati inseriti. \nSe i dati sono corretti, il campo diventerà verde. Se sono errati, il programma chiederà di reinserirli nuovamente.")
- --nomeutente
- term.setCursorPos(1,9)
- term.write("Nome utente:")
- term.setCursorPos(15, 9)
- fineColore()
- utenteAccettato = false
- conteggioErrori = 0
- while utenteAccettato == false do
- utente = read()
- checkuser = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?auth=no&richiesta=verifica&utente="..utente).readAll()
- tabcheckuser = textutils.unserialize(checkuser)
- if tabcheckuser.stato == "OK" then
- term.setCursorPos(15, 9)
- colore(colours.green)
- term.write(utente)
- fineColore()
- utenteAccettato=true
- else
- term.setCursorPos(15, 9)
- colore(colours.red)
- term.write("Utente errato! ")
- sleep(2)
- term.setCursorPos(15, 9)
- fineColore()
- term.write(" ")
- term.setCursorPos(15, 9)
- conteggioErrori = conteggioErrori + 1
- if conteggioErrori > 2 then
- term.setCursorPos(15, 9)
- colore(colours.red)
- term.write("Troppi tentativi di immissione errati ")
- sleep(2)
- term.setCursorPos(15, 9)
- fineColore()
- term.write(" ")
- term.setCursorPos(15, 9)
- clear()
- os.reboot()
- end
- end
- end
- --password
- colore(colours.black)
- term.setCursorPos(1,11)
- term.write("Password:")
- term.setCursorPos(15, 11)
- conteggioErrori = 0
- passAccettata = false
- while passAccettata == false do
- fineColore()
- password = read("#")
- colore(colours.black)
- checkuser = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?auth="..password.."&richiesta=addebito&valore=0&utente="..utente).readAll()
- risposta = textutils.unserialize(checkuser)
- if risposta.stato == "OK" then
- term.setCursorPos(15, 11)
- colore(colours.green)
- term.write("############## ")
- fineColore()
- passAccettata=true
- else
- term.setCursorPos(15, 11)
- colore(colours.red)
- term.write("Password errata! ")
- conteggioErrori = conteggioErrori + 1
- sleep(2)
- term.setCursorPos(15, 11)
- term.write(" ")
- term.setCursorPos(15, 11)
- if conteggioErrori > 2 then
- term.setCursorPos(15, 11)
- colore(colours.red)
- term.write("Troppi tentativi di immissione errati")
- sleep(2)
- term.setCursorPos(15, 11)
- term.write(" ")
- term.setCursorPos(15, 11)
- clear()
- os.reboot()
- end
- end
- end
- conteggioErrori = 0
- -- Pagina in cui scegli le operazioni da fare
- while true do
- --Ricontrolla il saldo per gestire l'aggiornamento di più operazioni
- checkuser = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?auth="..password.."&richiesta=addebito&valore=0&utente="..utente).readAll()
- risposta = textutils.unserialize(checkuser)
- saldo = tonumber(risposta.saldo)
- --Disegna la finestra del pannello utente
- clear()
- sfondo(colours.lightBlue)
- term.clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Pannello utente nPay ")
- sfondo(colours.lightBlue)
- print("\nBenvenuto "..utente.."! Saldo: "..saldo.." IC")
- print("\n\nOperazioni disponibili:\n")
- sfondo(colours.white)
- print("Carica denaro su nPay \n")
- print("Preleva denaro da nPay \n")
- print("Trasferisci denaro \n")
- print("Estratto conto \n")
- print("Disconnettiti da nPay \n")
- antitonto = os.startTimer(120)
- event, key, x, y = os.pullEvent()
- if event == "mouse_click" and y == 8 then --Pulsante carica denaro su nPay
- sfondo(colours.lightBlue)
- clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Caricamento denaro su nPay ")
- sfondo(colours.lightBlue)
- drawFilledBox(6,6,25,14,colors.blue)
- drawFilledBox(6,7,25,8,colors.black)
- colore(colors.black)
- sfondo(colours.lightBlue)
- term.setCursorPos(30, 9)
- print("Inserire la carta")
- term.setCursorPos(30, 10)
- print("nel lettore in basso")
- mag.setInsertCardLight(true)
- za, rawcarta = os.pullEvent("mag_swipe")
- mag.setInsertCardLight(false)
- tabel = textutils.unserialize(rawcarta)
- clear()
- if tabel == "" or tabel == nil then
- print("Carta smagnetizzata!")
- os.sleep(5)
- elseif tabel.t ~= "cc" then
- print("Carta non valida!")
- os.sleep(5)
- elseif tabel.e ~= "BN" then
- print("Carta non valida!")
- os.sleep(5)
- os.reboot()
- else
- sfondo(colours.yellow)
- print(" Caricamento denaro su nPay ")
- sfondo(colours.lightBlue)
- colore(colors.red)
- print("\nATTENZIONE:\n")
- colore(colors.black)
- print("Per le operazioni inferiori a 50 000 IC, si applica una commissione del 3%\nOltre 50 000 IC la commissione è dell'1%")
- colore(colors.gray)
- print("\nDisponibilità su carta: "..tabel.v.." IC\n")
- colore(colors.black)
- term.write("Importo da caricare: ")
- credito = tonumber(tabel.v)
- credit = read()
- if tonumber(credit) == "" or tonumber(credit) == nil or tonumber(credit) <= 0 then
- print("\n\nImporto errato! ")
- sleep(5)
- else
- if tonumber(credit) >= 50000 then
- clolz = tonumber(credit) * 0.01
- else
- clolz = tonumber(credit) * 0.03
- end
- crediton = tonumber(credit) + clolz
- if tonumber(tabel.v) >= crediton then
- tab4 = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?utente=Lolz&auth=lorenzo06&richiesta=accredito&valore="..clolz).readAll()
- tab6 = textutils.unserialize(tab4)
- tab = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?utente="..utente.."&auth="..password.."&richiesta=accredito&valore="..credit).readAll()
- tabella = textutils.unserialize(tab)
- tabr = {}
- tabr.t = tabel.t
- tabr.e = tabel.e
- tabr.p = tabel.p
- tabr.v = tonumber(tabel.v) - crediton
- ncr = textutils.serialize(tabr)
- sfondo(colours.lightBlue)
- clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Caricamento denaro su nPay ")
- sfondo(colours.lightBlue)
- drawFilledBox(6,6,25,14,colors.blue)
- drawFilledBox(6,7,25,8,colors.black)
- colore(colors.black)
- sfondo(colours.lightBlue)
- term.setCursorPos(30, 9)
- print("Inserire la carta")
- term.setCursorPos(30, 10)
- print("per confermare")
- mag.setInsertCardLight(true)
- mag.beginWrite(ncr, bl)
- za2, carta = os.pullEvent("mag_write_done")
- mag.setInsertCardLight(false)
- sfondo(colours.lightBlue)
- clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Caricamento denaro su nPay ")
- sfondo(colours.lightBlue)
- print("\nOperazione completata!\n\n")
- print("Denaro accreditato : "..credit.." IC")
- print("Commissioni: "..clolz.." IC\n")
- print("Nuovo saldo su conto: "..tabella.credito.." IC")
- print("Saldo su carta: "..tabr.v.." IC\n\n\n")
- sfondo(colors.white)
- print("Torna alla pagina principale")
- sfondo(colors.lightBlue)
- antiTonto2 = os.startTimer(15)
- event = os.pullEvent()
- clear()
- else
- colore(colors.red)
- print("\nDisponibilità carta insufficente")
- colore(colors.black)
- sleep(2)
- clear()
- end
- end
- end
- elseif event == "mouse_click" and y == 10 then --Pulsante preleva denaro da nPay
- sfondo(colours.lightBlue)
- clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Prelievo denaro da nPay ")
- sfondo(colours.lightBlue)
- drawFilledBox(6,6,25,14,colors.blue)
- drawFilledBox(6,7,25,8,colors.black)
- colore(colors.black)
- sfondo(colours.lightBlue)
- term.setCursorPos(30, 9)
- print("Inserire la carta")
- term.setCursorPos(30, 10)
- print("nel lettore in basso")
- mag.setInsertCardLight(true)
- za, rawcarta = os.pullEvent("mag_swipe")
- mag.setInsertCardLight(false)
- tabel = textutils.unserialize(rawcarta)
- clear()
- if tabel == "" or tabel == nil then
- print("Carta smagnetizzata!")
- os.sleep(5)
- elseif tabel.t ~= "cc" then
- print("Carta non valida!")
- os.sleep(5)
- elseif tabel.e ~= "BN" then
- print("Carta non valida!")
- os.sleep(5)
- else
- tabr = {}
- tabr.e = tabel.e
- tabr.p = tabel.p
- tabr.t = tabel.t
- tab1 = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?utente="..utente.."&auth="..password.."&richiesta=accredito&valore=0").readAll()
- tab3 = textutils.unserialize(Iarrtab1)
- sfondo(colours.yellow)
- print(" Prelievo denaro da nPay ")
- sfondo(colours.lightBlue)
- colore(colors.gray)
- print("\n\nDisponibilità su conto: "..saldo.." IC\n")
- colore(colors.black)
- term.write("Importo da ritirare: ")
- credito = tonumber(tabel.v)
- credit = read()
- if tonumber(credit) == "" or tonumber(credit) == nil or tonumber(credit) <= 0 then
- print("\n\nImporto errato! ")
- sleep(5)
- else
- tab = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?utente="..utente.."&auth="..password.."&richiesta=addebito&valore="..credit).readAll()
- tabella = textutils.unserialize(tab)
- if tabella.stato == "DI" then
- colore(colors.red)
- print("\nDisponibilità conto insufficente")
- colore(colors.black)
- os.sleep(5)
- clear()
- else
- tabr.v = tonumber(tabel.v) + tonumber(credit)
- ncr = textutils.serialize(tabr)
- mag.setInsertCardLight(true)
- mag.beginWrite(ncr, bl)
- sfondo(colours.lightBlue)
- clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Prelievo denaro da nPay ")
- sfondo(colours.lightBlue)
- drawFilledBox(6,6,25,14,colors.blue)
- drawFilledBox(6,7,25,8,colors.black)
- colore(colors.black)
- sfondo(colours.lightBlue)
- term.setCursorPos(30, 9)
- print("Inserire la carta")
- term.setCursorPos(30, 10)
- print("per confermare")
- mag.setInsertCardLight(true)
- za2, carta = os.pullEvent("mag_write_done")
- mag.setInsertCardLight(false)
- sfondo(colours.lightBlue)
- clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Prelievo denaro da nPay ")
- sfondo(colours.lightBlue)
- print("\nOperazione completata!\n\n")
- print("Denaro prelevato : "..credit.." IC")
- print("Saldo su conto: "..tabella.credito.." IC")
- print("Saldo su carta: "..tabr.v.." IC\n\n\n")
- sfondo(colors.white)
- print("Torna alla pagina principale")
- sfondo(colors.lightBlue)
- antiTonto3 = os.startTimer(15)
- event = os.pullEvent()
- clear()
- os.sleep(3.5)
- term.clear()
- term.setCursorPos(1,1)
- end
- end
- end
- elseif event == "mouse_click" and y == 12 then --Pulsante trasferisci denaro
- --Trasferisci denaro
- --inizio pagina
- clear()
- sfondo(colours.lightBlue)
- term.clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Trasferimento di denaro ")
- sfondo(colours.lightBlue)
- print("\nInserire i propri dati. Premere Enter per confermare i dati inseriti. \nSe i dati sono corretti, il campo diventerà verde. Se sono errati, il programma chiederà di reinserirli nuovamente.")
- --Mostra saldo
- term.setCursorPos(1, 9)
- colore(colors.gray)
- print("Saldo disponibile: "..saldo.." IC")
- colore(colors.black)
- --Verifica Beneficiario
- term.setCursorPos(1,13)
- term.write("Beneficiario:")
- term.setCursorPos(15, 13)
- fineColore()
- destAccettato = false
- conteggioErrori = 0
- while destAccettato == false do
- beneficiario = read()
- checkuser = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?auth=no&richiesta=verifica&utente="..beneficiario).readAll()
- tabcheckuser = textutils.unserialize(checkuser)
- if tabcheckuser.stato == "OK" and beneficiario ~= utente then
- term.setCursorPos(15, 13)
- colore(colours.green)
- term.write(beneficiario)
- fineColore()
- destAccettato=true
- else
- conteggioErrori = conteggioErrori + 1
- term.setCursorPos(15, 13)
- colore(colours.red)
- term.write("Beneficiario inesistente! ")
- sleep(2)
- term.setCursorPos(15, 13)
- fineColore()
- term.write(" ")
- term.setCursorPos(15, 13)
- if conteggioErrori > 2 then
- term.setCursorPos(15, 13)
- colore(colours.red)
- term.write("Troppi tentativi di immissione errati")
- sleep(2)
- term.setCursorPos(15, 13)
- fineColore()
- term.write(" ")
- term.setCursorPos(15, 13)
- clear()
- os.reboot()
- end
- end
- end
- colore(colors.black)
- --Verifica valore dell'invio
- term.setCursorPos(1,15)
- term.write("Importo:")
- term.setCursorPos(15, 15)
- fineColore()
- importoAccettato = false
- conteggioErrori = 0
- while importoAccettato == false do
- importo = tonumber(read())
- if importo == "" or importo == nil or importo <= 0 then
- conteggioErrori = conteggioErrori + 1
- term.setCursorPos(15, 15)
- colore(colours.red)
- term.write("Importo errato! ")
- sleep(2)
- term.setCursorPos(15, 15)
- fineColore()
- term.write(" ")
- term.setCursorPos(15, 15)
- elseif importo <= saldo and importo > 0 then
- term.setCursorPos(15, 15)
- colore(colours.green)
- term.write(importo.." IC")
- fineColore()
- importoAccettato=true
- else
- conteggioErrori = conteggioErrori + 1
- term.setCursorPos(15, 15)
- colore(colours.red)
- term.write("Disponibilità insufficiente! ")
- sleep(2)
- term.setCursorPos(15, 15)
- fineColore()
- term.write(" ")
- term.setCursorPos(15, 15)
- if conteggioErrori > 2 then
- term.setCursorPos(15, 15)
- colore(colours.red)
- term.write("Troppi tentativi di immissione errati")
- sleep(2)
- term.setCursorPos(15, 15)
- fineColore()
- term.write(" ")
- term.setCursorPos(15, 15)
- clear()
- os.reboot()
- end
- end
- end
- sleep(0.5)
- sfondo(colours.lightBlue)
- term.setCursorPos(1, 1)
- term.clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Riepilogo dell'operazione di trasferimento ")
- sfondo(colours.lightBlue)
- colore(colors.black)
- term.setCursorPos(1, 3)
- term.write("Invio di ")
- colore(colors.gray)
- term.write(importo)
- colore(colors.black)
- term.write(" IC a favore di ")
- colore(colors.gray)
- term.write(beneficiario)
- colore(colors.black)
- print("\n\nConfermare l'operazione?")
- colore(colours.yellow)
- print("\n\n\nInvia il denaro Annulla e torna a nPay")
- inviare = false
- while true do
- event, key, x, y = os.pullEvent()
- if event == "mouse_click" and x < 16 and y == 9 then
- inviaDenaro = http.get("http://172.16.20.220/luanet/servlets/nebraskapay.php?auth="..password.."&utente="..utente.."&richiesta=trasferimento&valore="..importo.."&beneficiario="..beneficiario).readAll()
- risultatoInvio = textutils.unserialize(inviaDenaro)
- if risultatoInvio.stato == "OK" then
- colore(colors.black)
- print("\n\n\n\nInvio del denaro riuscito.\nNuovo saldo: "..risultatoInvio.credito.." IC")
- sleep(3)
- clear()
- break
- else
- colore(colors.red)
- print("\n\n\n\nErrore durante l'invio del denaro.\n"..risultatoInvio.errore)
- sleep(3)
- clear()
- break
- end
- elseif event == "mouse_click" and x > 18 and y == 9 then
- colore(colors.red)
- print("\n\n\n\nInvio annullato.")
- sleep(3)
- clear()
- break
- end
- end
- elseif event == "mouse_click" and y == 14 then --Pulsante estratto conto
- --Estratto Conto (inizio pagina)
- clear()
- sfondo(colours.lightBlue)
- term.clear()
- colore(colours.black)
- sfondo(colours.yellow)
- print(" Estratto conto ")
- sfondo(colours.lightBlue)
- print("Entrate:")
- colore(colours.green)
- print("+ 50 IC")
- print("+ 50 IC")
- print("+ 50 IC")
- print("+ 50 IC")
- colore(colours.black)
- print("Uscite:")
- colore(colours.red)
- print("- 50 IC")
- print("- 50 IC")
- print("- 50 IC")
- print("- 50 IC")
- print()
- elseif event == "mouse_click" and y == 16 then --Pulsante disconnetti da nPay
- disconnetti()
- elseif event == "timer" and x == antitonto then --Butta fuori l'utente se non fa niente
- disconnetti()
- end
- end
- elseif event == "mouse_click" and x == 51 and y == 19 then -- Auto aggiornamento su magic corner
- shell.run("rm startup")
- shell.run("pastebin get y1AP0iNY startup")
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement