Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --## Zanqual API v0.2 COPYRIGHT (c) ##--
- --## by DaloDaloDalo/XxCubegamerxX ##--
- function p(text) return print(text) end
- function scp(x,y) return term.setCursorPos(x,y) end
- function stc(clr) return term.setTextColor(clr) end
- function sbc(clr) return term.setBackgroundColor(clr) end
- function c() return term.clear() end
- function cl() return term.clearLine() end
- function w(text) return write(text) end
- function rednet.checkModem()
- for n,sModem in ipairs(peripheral.getNames()) do
- if peripheral.getType(sModem) == "modem" then
- return sModem
- end
- end
- return false
- end
- local oldTostring = tostring
- tostring = function(numberTable,more)
- if type(numberTable) == "number" then
- return oldTostring(numberTable)
- elseif type(numberTable) == "table" then
- local extractedText = ""
- if not more then
- more = ""
- end
- for _,tableExtract in pairs(numberTable) do
- extractedText = extractedText..tableExtract..more
- end
- return extractedText
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement