-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdean.lua
More file actions
33 lines (26 loc) · 721 Bytes
/
Copy pathdean.lua
File metadata and controls
33 lines (26 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
-- dean.lua v1.0 - Dean Winchester - He's been to hell and back. Litterally.
-- Quick and Dirty Turtle Task System - Client
local tArgs = { ... }
-- Turtle name
local myName = "Dean"
-- Task name
local taskName = tArgs[1]
if taskName == nil then
print("You must specify a task")
print("Usage: "..myName.." <task file>")
return
end
-- Load the qTurtle object
dofile("qturtle.lua")
-- Instantiate the qTurtle object
local dean = qTurtle(myName, "turtle", "right")
-- Turn on debug messages on the console
dean.debugEnabled = true
-- Register with the server
dean.register()
-- Load the task object
dofile(taskName .. ".lua")
-- Instantiate the task object
local st = task(dean)
-- Run the task
st.run()