Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = peripheral.wrap("top")
- name1 = "FreestyleBurgers" --Name of one user
- name2 = "thegreekgeek" --Name of second user
- tArgs = {...}
- b = tArgs[1]
- c = tArgs[2]
- d = tArgs[3]
- e = textutils.unserialize(b)
- f = textutils.unserialize(c)
- g = textutils.unserialize(d)
- dir = nil
- if tArgs[4] == "FreestyleBurgers" then
- dir = "west" --Direction of chest for name1
- elseif tArgs[4] == "thegreekgeek" then
- dir = "east" --Direction of chest for name2
- end
- if not a.containsItemType(e, f) then
- a.requestCrafting({id = e, dmg = f, qty = g})
- os.sleep(5*g)
- end
- p = a.extractItem({id = e, dmg = f, qty = g}, dir)
- shell.run("startup").
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement