Advertisement
Guest User

MVX Mod

a guest
Mar 26th, 2015
6,458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.48 KB | None | 0 0
  1. -- I haven't used --[[ ]]-- for comments because pastebin sucks at parsing
  2. --
  3.  
  4.  
  5. --  LUA Script, http://www.lua.org/
  6.  
  7. --  This script has been originally written by sh0z from wohax.com
  8. --  Works to MVX 4.00+ for Microvolts Online/Surge versions
  9.  
  10. --  Feel free for changing/sharing/uploading to anyone or anywhere you want.
  11.  
  12. --  Last modified on 2015 March 26.
  13.  
  14. --  MVX Internal functions connected to lua:
  15. --    - MVXPrint(string) ;outputs on DebugView software the string parameter, more informations about DebugView at: https://technet.microsoft.com/en-us/library/bb896647.aspx
  16. --  - MVXProcessCommand(string) ;sends to MVX a command to be processed. Used to enable/disable MVX internal functions.
  17. --  - MVXChatPrint(string) ;outputs on the game chat the string parameter.
  18.    
  19.     ----- CALLBACKS -----
  20. --  wndProc(message,wParam,hiLParam,loLParam) ;always called when the game receives a message from windows, more informations at: https://msdn.microsoft.com/en-us/library/windows/desktop/ms633573%28v=vs.85%29.aspx
  21.  
  22. --  Skype contact: mvsh0z  
  23.  
  24. --  PS: I'll only help people interested on editing MVX scripts, do not ask me about other shit.
  25. -----------
  26.  
  27.  
  28. -- WINDOWS MESSAGES CONSTANTS
  29. WM_ACTIVATEAPP = 0x001C
  30. WM_KEYDOWN     = 0x0100
  31. WM_KEYUP       = 0x0101
  32.  
  33. -- VIRTUAL KEYS CONSTANTS
  34. VK_CTRL   = 17
  35. VK_A      = 65
  36. VK_B      = 66
  37. VK_C      = 67
  38. VK_S      = 83
  39. VK_V      = 86
  40. --
  41. VK_F1     = 112
  42. VK_F2     = 113
  43. VK_F3     = 114
  44. VK_F4     = 115
  45. ---------------
  46.  
  47. -- global variables
  48. local isControlPressed = false
  49. ---------------
  50.  
  51. function onKeyDown(key)
  52.   MVXPrint(string.format("key down: %d.", key))
  53.  
  54.   if key == VK_CTRL then
  55.     isControlPressed = true  
  56.   end
  57.  
  58.   if isControlPressed and key == VK_C then -- turn off esp
  59.     MVXProcessCommand("esp off")
  60.     return 1
  61.   end
  62.  
  63.   if isControlPressed and key == VK_V then -- turn off aim
  64.     MVXProcessCommand("aim off")
  65.     return 1
  66.   end
  67.  
  68.   if isControlPressed and key == VK_B then -- toggle unlimited ammo and ammo recharges on/off
  69.     MVXProcessCommand("ua")
  70.     MVXProcessCommand("uar")
  71.     return 1
  72.   end
  73.  
  74.   if key == VK_F3 then
  75.     MVXProcessCommand("aim default")
  76.     return 1
  77.   elseif key == VK_F2 then
  78.    
  79.     --  The following settings are usually used by experienced
  80.     --  players. If you can play using those settings rarely
  81.     --  another will call you "aimbotter", lol.  
  82.      
  83.     --  If you are a beginner on playing shooting games you'd suck using those settings.
  84.    
  85.     MVXProcessCommand("aim default")
  86.     MVXChatPrint("MVX PRO Player settings\n")
  87.     MVXProcessCommand("aim rangetotarget 50")
  88.     --  reduces the aimbot range to 50 pixels, the aim range is shown by a yellow circle during the game.
  89.  
  90.     MVXProcessCommand("aim aimnext_interval 1000")
  91.     --  after the index target get killed the next will be targeted only after 1 second (1000 milliseconds)
  92.     --  this does avoid "jolt" movements
  93.     MVXProcessCommand("aim sniper on")
  94.     MVXProcessCommand("aim sniper head 40")
  95.     --  40% of the shots are aimed to the enemy's head,
  96.     --  if you use 100% headshots people will cry a lot calling you "aimbotter".
  97.     --  btw, pro players miss headshots also ;P
  98.     MVXProcessCommand("aim shotgun on")
  99.     MVXProcessCommand("aim rifle off")  -- MVX Rifle's aimbot is fuckin' op (overpowered) and people may percept or cry a lot if you use it.
  100.     MVXProcessCommand("aim gatling off") -- MVX the same than rifle.   
  101.     MVXChatPrint("\n---")
  102.     return 1
  103.   elseif key == VK_F4 then
  104.     --  The following settings are for players that wants to mess around
  105.     MVXProcessCommand("aim default")
  106.     MVXChatPrint("MVX aggressive player settings\n")
  107.     MVXProcessCommand("aim sniper head 100")
  108.     MVXProcessCommand("aim rifle head")
  109.     MVXProcessCommand("aim aimnext_interval 0")
  110.     MVXProcessCommand("aim rangetotarget 350")
  111.     MVXProcessCommand("ua on")
  112.     MVXProcessCommand("uar on")
  113.     MVXProcessCommand("acs")
  114.     MVXProcessCommand("speed 2")
  115.     MVXProcessCommand("jump 1")
  116.     MVXChatPrint("\n---")
  117.     return 1
  118.   end
  119. end
  120.  
  121. function onKeyUp(key)
  122.   -- disables the isControlPressed flag if any other key goes up
  123.   isControlPressed = false
  124. end
  125.  
  126. function wndProc(message,wParam,hiLParam,loLParam)
  127.   local ret = 0  -- if ret is set MVX does NOT allow the message to be processed by the game.
  128.   if message == WM_KEYUP then
  129.     ret = onKeyUp(wParam)
  130.   elseif message == WM_KEYDOWN then
  131.     ret = onKeyDown(wParam)
  132.   elseif message == WM_ACTIVATEAPP then
  133.     if not wParam then
  134.       isControlPressed = false   
  135.     end
  136.   end
  137.   return ret
  138. end
  139.  
  140. MVXPrint("MVX LUA Script 1.1")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement