Advertisement
testhk

testhkth

Jan 21st, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. Minecraft Code Fly Speed: made by.testhk
  2. 01 00 01 01 00 00 01 00 00 00 00 00 01 00 01 00
  3.  
  4. 01 00 01 01
  5.  
  6.  
  7. speed = 1.0
  8.  
  9. function IncSpeed(hotkey)
  10. speed = speed + 1
  11. speedhack_setSpeed(speed)
  12. end
  13.  
  14. function DecSpeed(hotkey)
  15. speed = speed - 1
  16. speedhack_setSpeed(speed)
  17. end
  18.  
  19. function ResetSpeed(hotkey)
  20. speed = 1.0
  21. speedhack_setSpeed(1.0)
  22. end
  23.  
  24.  
  25. function SetHotKey(func, hotkey)
  26. local objectHotKey = createHotkey(func, hotkey)
  27. generichotkey_setKeys(objectHotKey, hotkey)
  28. generichotkey_onHotkey(objectHotKey, func)
  29. end
  30.  
  31.  
  32. function onOpenProcess(processid)
  33. SetHotKey(IncSpeed, VK_F2)
  34. SetHotKey(DecSpeed, VK_F3)
  35. SetHotKey(ResetSpeed, VK_F4)
  36. end
  37.  
  38. local aalist = getAutoAttachList()
  39. stringlist_add(aalist, "javaw.exe")
  40.  
  41. lastSpeed=1;
  42.  
  43. function checkKeys(timer)
  44. if (isKeyPressed(VK_Shift)) then
  45. if lastspeed ~= 10 then
  46. speedhack_setSpeed(10)
  47. lastSpeed=10
  48. end
  49. else
  50. if lastspeed ~= 1 then
  51. speedhack_setSpeed(1)
  52. lastSpeed=1
  53. end
  54. end
  55.  
  56. end
  57.  
  58. t=createTimer(nil)
  59. timer_setInterval(t, 100)
  60. timer_onTimer(t, checkKeys)
  61. timer_setEnabled(t, true)
  62.  
  63. SpeedHackAmount=5;
  64. KeyForSpeedhack = VK_Q;
  65. lastSpeed=0;
  66.  
  67. function checkKeys(timer)
  68. if (isKeyPressed(KeyForSpeedhack)) then
  69. if lastspeed ~= 1 then
  70. speedhack_setSpeed(SpeedHackAmount)
  71. lastSpeed=1
  72. end
  73. else
  74. if lastspeed ~= 0 then
  75. speedhack_setSpeed(1)
  76. lastSpeed=0
  77. end
  78. end
  79. end
  80.  
  81. t=createTimer(nil)
  82. timer_setInterval(t, 900)
  83. timer_onTimer(t, checkKeys)
  84. timer_setEnabled(t, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement