Advertisement
XxQuAnTuMAsT3RxX

tMasterBot

Nov 23rd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. rednet.open("back")
  2.  
  3. function send(cmd)
  4.     rednet.broadcast(cmd, "zach")
  5. end
  6.  
  7. while true do
  8.     e, key = os.pullEvent("key")
  9.  
  10.     if key == keys.w then
  11.         send("f")
  12.     elseif key == keys.s then
  13.         send("b")
  14.     elseif key == keys.a then
  15.         send("l")
  16.     elseif key == keys.d then
  17.         send("r")
  18.     elseif key == keys.q then
  19.         send("d")
  20.     elseif key == keys.e then
  21.         send("u")
  22.     elseif key == keys.f then
  23.         send("x")
  24.     elseif key == keys.r then
  25.         send("du")
  26.     elseif key == keys.c then
  27.         send("dd")
  28.     elseif key == keys.g then
  29.         send("p")
  30.     elseif key == keys.t then
  31.         send("pd")
  32.     elseif key == keys.v then
  33.         send("pu")
  34.     elseif key == keys.escape then
  35.         send("exit")
  36.         return
  37.     end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement