SHOW:
|
|
- or go back to the newest paste.
1 | textTable={ | |
2 | - | "Welcome to NanoTech!", |
2 | + | "NanoTech custom programs.", |
3 | - | "NanoTech specialzes in Computercraft items.", |
3 | + | |
4 | - | "We also sell hand made computercraft programs", |
4 | + | "NanoTech Offers you programs written specificly for you", |
5 | - | "Besides pre-made programs you can request", |
5 | + | "If you Want a custom program made for you,", |
6 | - | "custom made programs Which will be written", |
6 | + | "please contact our staff when they are ingame" |
7 | - | "specificly for you!", |
7 | + | "Our staff roster can be found on the monitor left of you", |
8 | "Programs cost different ammounts of money depending ", | |
9 | - | "You can see information about custom programs", |
9 | + | "on the file size of the program", |
10 | - | "at the monitor behind you.", |
10 | + | |
11 | "Costs:", | |
12 | "For less than 500 lines costs are $0.50 per line", | |
13 | "For above 500 lines costs are $1.00 per line", | |
14 | "Anything above 1000 lines will have custom costs.", | |
15 | ||
16 | } | |
17 | - | m.setCursorPos(1,1) |
17 | + | |
18 | - | m.clear() |
18 | + | |
19 | s=peripheral.wrap("right") | |
20 | - | nearPlayers=s.getPlayerNames() |
20 | + | |
21 | - | --print(nearPlayers) |
21 | + | m.setCursorPos(1,1) |
22 | - | --print(nearPlayers[1]) |
22 | + | m.clear() |
23 | - | if nearPlayers[1]~=nil then |
23 | + | |
24 | - | print(nearPlayers) |
24 | + | --[[nearPlayers=s.getPlayerNames() |
25 | - | nearPlayers=nearPlayers[1] |
25 | + | --print(nearPlayers) |
26 | - | m.write("Hello ") |
26 | + | --print(nearPlayers[1]) |
27 | - | m.setTextColor(32) |
27 | + | if nearPlayers[1]~=nil then |
28 | - | m.write(nearPlayers) |
28 | + | print(nearPlayers) |
29 | - | m.setTextColor(1) |
29 | + | nearPlayers=nearPlayers[1] |
30 | - | end |
30 | + | m.write("Hello ") |
31 | - | for line,text in ipairs(textTable) do |
31 | + | m.setTextColor(32) |
32 | - | m.setCursorPos(1,line+2) |
32 | + | m.write(nearPlayers) |
33 | - | m.write(text) |
33 | + | m.setTextColor(1) |
34 | - | end |
34 | + | end]] |
35 | for line,text in ipairs(textTable) do | |
36 | m.setCursorPos(1,line) | |
37 | m.write(text) | |
38 | end | |
39 | end | |
40 | ||
41 | while true do | |
42 | writeText() | |
43 | sleep(1) | |
44 | end |