Posted 08 June 2012 - 12:53 AM
Wireless Turtles
Server:
print("JG1 Turtle Software 2011-2012")
rednet.open("right")
while true do
sleep(0.5)
command = read()
rednet.broadcast(command)
term.clear
if comannd == "end" then
term.clear()
shell.clear()
shell.run()
end
Client:
rednet.open("right")
while true do
sleep(0.5)
id, msg = rednet.receive()
if msg=="forward" then
turtle.forward()
end
if msg=="right" then
turtle.turnRight()
end
if msg=="left" then
turtle.turnLeft()
end
if msg=="up" then
turtle.up()
end
if msg=="down" then
turtle.down()
end
if msg=="back" then
turtle.back()
end
if msg=="dig" then
turtle.dig()
end
if msg=="User Control" then
shell.run()
end
end
Tested Works 100% Dig Command Is Comming Soon.
Server:
print("JG1 Turtle Software 2011-2012")
rednet.open("right")
while true do
sleep(0.5)
command = read()
rednet.broadcast(command)
term.clear
if comannd == "end" then
term.clear()
shell.clear()
shell.run()
end
Client:
rednet.open("right")
while true do
sleep(0.5)
id, msg = rednet.receive()
if msg=="forward" then
turtle.forward()
end
if msg=="right" then
turtle.turnRight()
end
if msg=="left" then
turtle.turnLeft()
end
if msg=="up" then
turtle.up()
end
if msg=="down" then
turtle.down()
end
if msg=="back" then
turtle.back()
end
if msg=="dig" then
turtle.dig()
end
if msg=="User Control" then
shell.run()
end
end
Tested Works 100% Dig Command Is Comming Soon.