Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- print("")
- write("KevSG > ")
- local e = io.read()
- local s = peripheral.wrap("back")
- if e == "jan" then
- print("KevSG > Disconnecte...")
- s.disconnect()
- os.sleep(4)
- ok, r = pcall(s.dial, "ZFRNXDKXB")
- if ok then
- print("KevSG > Verbinde zu Jan...")
- print("Kosten: ", s.energyToDial("ZFRNXDKXB"))
- print("Verfuegbar: ",s.energyAvailable())
- else
- print("KevSG > Fehler: ", r)
- end
- end
- if e == "kev" then
- print("KevSG > Disconnecte...")
- s.disconnect()
- os.sleep(4)
- print("KevSG > Warnung! Kann nicht sich selbst connecten")
- end
- if e == "jonas" then
- print("KevSG > Disconnecte...")
- s.disconnect()
- os.sleep(4)
- ok,r = pcall(s.dial, "3FFYEQG89")
- if ok then
- print("KevSG > Verbinde zu Jonas...")
- print("Kosten: ", s.energyToDial("3FFYEQG89"))
- print("Verfuegbar: ", s.energyAvailable())
- else
- print("KevSG > Fehler: ", r)
- end
- end
- if e == "irison" then
- s.closeIris()
- print("KevIris > Closing Iris...")
- end
- if e == "irisoff" then
- s.openIris()
- print("KevIris > Opening Iris...")
- end
- if e == "aus" then
- s.disconnect()
- print("KevSG > Disconnecte...")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement