Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.65 KB | None | 0 0
  1. function weaponPane()
  2.     mf.send("{shift:down}1{shift:up}")
  3. end
  4.  
  5. function disablingBlow()
  6.     mf.send("{control:down}123{control:up}")
  7. end
  8.  
  9. function swordAndBoard()
  10.     weaponPane()
  11.     mf.send("{alt:down}1{alt:up}")
  12.     mf.delay(750)
  13.     mf.send("{alt:down}2{alt:up}")
  14. end
  15.  
  16. function twoHander()
  17.     weaponPane()
  18.     mf.send("{alt:down}3{alt:up}")
  19. end
  20.  
  21. function archer()
  22.     weaponPane()
  23.     mf.send("{alt:down}4{alt:up}")
  24. end
  25.  
  26. function mage1()
  27.     mf.send("{alt:down}5{alt:up}{shift:down}2{shift:up}")
  28. end
  29.  
  30. function mage2()
  31.     mf.send("{alt:down}5{alt:up}{shift:down}3{shift:up}")
  32. end
  33.  
  34. function mage3()
  35.     mf.send("{alt:down}5{alt:up}{shift:down}4{shift:up}")
  36. end
  37.  
  38. function mage4()
  39.     mf.send("{alt:down}5{alt:up}{shift:down}5{shift:up}")
  40. end
  41.  
  42. do
  43.     local clickOn = false
  44.     function clicker()
  45.         while clickOn do
  46.             mf.send("{leftbutton}")
  47.             mf.delay(100)
  48.         end
  49.     end
  50.     function clickToggle()
  51.         clickOn = not clickOn
  52.         if clickOn then
  53.             clicker()
  54.         end
  55.     end
  56. end
  57.  
  58. function darkfallCheck()
  59.     if mf.foregroundwindow() == "Darkfall Online" and not mf.cursorvisible() then
  60.         return true
  61.     end
  62.     return false
  63. end
  64.  
  65. mf.register("{numpad1}", swordAndBoard)
  66. mf.register("{numpad2}", twoHander)
  67. mf.register("{numpad3}", archer)
  68. mf.register("{numpad4}", mage1)
  69. --mf.register("{numpad5}", rayCycle)
  70. --mf.register("{numpad6}", pungentMist)
  71. mf.register("{numpad7}", mage2)
  72. mf.register("{numpad8}", mage3)
  73. mf.register("{numpad9}", mage4)
  74. mf.register("{shift}v", disablingBlow)
  75. mf.register("{shift}|", clickToggle)
  76. mf.registercbcheck(darkfallCheck)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement