Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local trading = require("component").trading
- local cls = require("term").clear
- local E = require("event")
- local H={4}
- local robot=require("robot")
- local t = trading.getTrades()
- go=1
- temp=1
- while true do
- t= trading.getTrades()
- os.sleep(1)
- flag = 1
- while t[1].isEnabled() do
- go = 1
- t[1].trade()
- end
- while t[4].isEnabled() do
- t[4].trade()
- end
- --print(flag)
- if go == 1 then
- t=trading.getTrades()
- go = 0
- temp=temp+1
- print(t[#t].trade())
- end
- if temp == 10 then
- temp=0
- for j=3,40 do
- robot.select(j)
- robot.dropUp(64)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement