View difference between Paste ID: miTcGuW1 and YtYFfPLc
SHOW: | | - or go back to the newest paste.
1
--Iniziatore V2 lego11
2
--VARIABILI
3-
local lbl = "Carta di Identita'"
3+
local lbl = "Iniziatore Badge"
4
local tabr = {}
5-
tabr.t = "ci"
5+
tabr.t = "BA"
6
tabr.e = "NA"
7
tabr.p = "0000"
8
9
term.clear()
10
term.setCursorPos(1,1)
11-
print("Iniziatore CIE")
11+
print("Iniziatore badge")
12
print("")
13-
print("COPYRIGHT LEAGUE OF PLAYERS")
13+
14
print("")
15
print("Inserire il nome")
16
tabr.n = read()
17
print("")
18
print("Inserire il PIN; impostare a 0000 per disattivarlo")
19
tabr.p = read()
20
print("")
21
print("Inserire la carta per terminare")
22
print("")
23
m = peripheral.wrap("left")
24
local ncr = textutils.serialize(tabr)
25
m.setInsertCardLight(true)
26
m.beginWrite(ncr, lbl)
27
os.pullEvent("mag_write_done")
28
m.setInsertCardLight(false)
29
print("")
30
print("Terminato")
31
sleep(2)
32
os.reboot()