Je testerai à l'occaz ^^
-- translation
Ok, first post, way younger, made a huge thing ... go to take a rope
Will try someday ^^
There have been 13 items by Neekow (Search limited from 10-February 22)
Posted by
Neekow
on 27 February 2017 - 02:44 PM
in
Ask a Pro
-- Init -- Color -- Variables -- Program -- Functions -- Program -- Ending
-- Init
-- Color
-- Variables
-- Program
term.clear()
term.setCursorPos(1,1)
term.setCursorBlink(true)
turtle.select(1)
textutiles.slowPrint("Welcome...please enter the WaterBukkit:")
-- Functions
-- Program
-- Ending
while turtle.getItemCount(1) ~= 1 doand delete your if.
if io.read() == "stop" thenworks well
-- Init
-- Colors
-- Variables
-- Program
term.clear()
term.setCursorPos(1,1)
term.setCursorBlink(true)
textutils.slowPrint("Welcome...please enter the WaterBukkit:")
-- Functions
-- Program
while turtle.getItemCount(1) ~= 1 do
textutils.slowPrint("Start in 3 seconds!")
sleep(3)
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Program has startes")
textutils.slowWrite("Type stop to stop the program")
if io.read() == "stop" then
break
end
end
-- Ending
term.write("It works")
Posted by
Neekow
on 27 February 2017 - 01:59 AM
in
Ask a Pro
-----------
shell.setPath("parts/")
shell.run("part_2", arg1, arg2, arg3)
-----------
Laby = {}
Laby[0] = {}
Laby[0][0] = {}
Laby[0][0][carte] = {}
Laby[0][0][pFind] = {}
do: Laby[0][0] = { { carte = {}, pFind = {} } }
works?
-----------
Is there a way to have an event on unloading? Like: if turtle will unload do a last function before shuting down.
-----------
Posted by
Neekow
on 22 February 2017 - 02:01 PM
in
Ask a Pro
function createTable(nb)
if type(Laby[nb]) ~= "table" then
Laby[nb] = {}
end
end
function fillTable()
turtleSens()
if TurtleSens == 0 then
nbx = TurtlePosX
nby = TurtlePosY + 1
elseif TurtleSens == 1 then
nbx = TurtlePosX - 1
nby = TurtlePosY
elseif TurtleSens == 2 then
nbx = TurtlePosX
nby = TurtlePosY - 1
elseif TurtleSens == 3 then
nbx = TurtlePosX + 1
nby = TurtlePosY
end
createTable(nby)
if turtle.detect() == true then
Laby[nby][nbx] = Wall
else
Laby[nby][nbx] = Path
end
end
Posted by
Neekow
on 20 February 2017 - 01:44 AM
in
Ask a Pro
________________________________________________________________________
table = {}
if type(table[x]) ~= "table" then table[x] = {} end
Posted by
Neekow
on 15 February 2017 - 02:08 AM
in
Peripherals and Turtle Upgrades
Posted by
Neekow
on 14 February 2017 - 04:20 AM
in
Peripherals and Turtle Upgrades
SquidDev, on 12 February 2017 - 12:05 AM, said:
Neekow, on 11 February 2017 - 11:14 PM, said:
Posted by
Neekow
on 12 February 2017 - 12:49 AM
in
Peripherals and Turtle Upgrades
Posted by
Neekow
on 11 February 2017 - 11:14 PM
in
General
Posted by
Neekow
on 11 February 2017 - 11:14 PM
in
Peripherals and Turtle Upgrades
Posted by
Neekow
on 11 February 2017 - 12:08 AM
in
General
