Posted 30 December 2013 - 12:34 PM
Please help me , Pro's!
I got myself into a problem!
Here's the code:
while true do
while turtle.detectDown() == true do
turtle.attack()
while turtle.attack() == true do
print("Enemy engaged|Initializing alarm!")
rs.setOutput("back", true)
while turtle.attack() == false do
print("Disable alarm:")
local input = read("*")
if input == "yes" then
rs.setOutput("back", false)
shell.run("protect")
else
term.clear()
term.setCursorPos(1,1)
print("Terminal: #923 Password invalid!")
print("Try again the password:")
end
end
end
end
end
The problem is:
Whenever the melee hits anybody , he doesn't do the
Can somebody help me with that?
I got myself into a problem!
Here's the code:
while true do
while turtle.detectDown() == true do
turtle.attack()
while turtle.attack() == true do
print("Enemy engaged|Initializing alarm!")
rs.setOutput("back", true)
while turtle.attack() == false do
print("Disable alarm:")
local input = read("*")
if input == "yes" then
rs.setOutput("back", false)
shell.run("protect")
else
term.clear()
term.setCursorPos(1,1)
print("Terminal: #923 Password invalid!")
print("Try again the password:")
end
end
end
end
end
The problem is:
Whenever the melee hits anybody , he doesn't do the
He just continues the , == true do , one.!while turtle.attack() == false do.
Can somebody help me with that?