Advertisement
Guest User

startup

a guest
Apr 25th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. -- bts'y
  2. bts = 300
  3. adres = bts
  4. rednet.open("back")
  5. while true do
  6. event, id, txt, dis = os.pullEvent()
  7. if event == "rednet_message" then
  8. if txt:find("mc.start") then
  9. s = txt:find("mc.start")
  10. inf = txt:sub(s)
  11. adres = txt:sub(s)
  12. print("inf")
  13. print(inf)
  14. print(adres)
  15. rednet.send(adres, "Witaj na stronie startowej!" )
  16. rednet.send(adres, "Kliknij R aby ponownie wpisac adres." )
  17. rednet.send(adres, "--------------------------------------------------" )
  18. rednet.send(adres, "Polecane strony:" )
  19. rednet.send(adres, "mc.administracja" )
  20. rednet.send(adres, "mc.domeny" )
  21. rednet.send(adres, "mc.chat (Uwaga: wymaga dodatkowej instalacji!)" )
  22. rednet.send(adres, "mc.poradniki" )
  23. rednet.send(adres, "" )
  24. rednet.send(adres, "" )
  25. rednet.send(adres, "" )
  26. rednet.send(adres, "" )
  27. rednet.send(adres, "" )
  28. rednet.send(adres, "" )
  29. rednet.send(adres, "" )
  30. rednet.send(adres, "" )
  31. end
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement