Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- I haven't used --[[ ]]-- for comments because pastebin sucks at parsing
- --
- -- LUA Script, http://www.lua.org/
- -- This script has been originally written by sh0z from wohax.com
- -- Works to MVX 4.00+ for Microvolts Online/Surge versions
- -- Feel free for changing/sharing/uploading to anyone or anywhere you want.
- -- Last modified on 2015 March 26.
- -- MVX Internal functions connected to lua:
- -- - MVXPrint(string) ;outputs on DebugView software the string parameter, more informations about DebugView at: https://technet.microsoft.com/en-us/library/bb896647.aspx
- -- - MVXProcessCommand(string) ;sends to MVX a command to be processed. Used to enable/disable MVX internal functions.
- -- - MVXChatPrint(string) ;outputs on the game chat the string parameter.
- ----- CALLBACKS -----
- -- 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
- -- Skype contact: mvsh0z
- -- PS: I'll only help people interested on editing MVX scripts, do not ask me about other shit.
- -----------
- -- WINDOWS MESSAGES CONSTANTS
- WM_ACTIVATEAPP = 0x001C
- WM_KEYDOWN = 0x0100
- WM_KEYUP = 0x0101
- -- VIRTUAL KEYS CONSTANTS
- VK_CTRL = 17
- VK_A = 65
- VK_B = 66
- VK_C = 67
- VK_S = 83
- VK_V = 86
- --
- VK_F1 = 112
- VK_F2 = 113
- VK_F3 = 114
- VK_F4 = 115
- ---------------
- -- global variables
- local isControlPressed = false
- ---------------
- function onKeyDown(key)
- MVXPrint(string.format("key down: %d.", key))
- if key == VK_CTRL then
- isControlPressed = true
- end
- if isControlPressed and key == VK_C then -- turn off esp
- MVXProcessCommand("esp off")
- return 1
- end
- if isControlPressed and key == VK_V then -- turn off aim
- MVXProcessCommand("aim off")
- return 1
- end
- if isControlPressed and key == VK_B then -- toggle unlimited ammo and ammo recharges on/off
- MVXProcessCommand("ua")
- MVXProcessCommand("uar")
- return 1
- end
- if key == VK_F3 then
- MVXProcessCommand("aim default")
- return 1
- elseif key == VK_F2 then
- -- The following settings are usually used by experienced
- -- players. If you can play using those settings rarely
- -- another will call you "aimbotter", lol.
- -- If you are a beginner on playing shooting games you'd suck using those settings.
- MVXProcessCommand("aim default")
- MVXChatPrint("MVX PRO Player settings\n")
- MVXProcessCommand("aim rangetotarget 50")
- -- reduces the aimbot range to 50 pixels, the aim range is shown by a yellow circle during the game.
- MVXProcessCommand("aim aimnext_interval 1000")
- -- after the index target get killed the next will be targeted only after 1 second (1000 milliseconds)
- -- this does avoid "jolt" movements
- MVXProcessCommand("aim sniper on")
- MVXProcessCommand("aim sniper head 40")
- -- 40% of the shots are aimed to the enemy's head,
- -- if you use 100% headshots people will cry a lot calling you "aimbotter".
- -- btw, pro players miss headshots also ;P
- MVXProcessCommand("aim shotgun on")
- MVXProcessCommand("aim rifle off") -- MVX Rifle's aimbot is fuckin' op (overpowered) and people may percept or cry a lot if you use it.
- MVXProcessCommand("aim gatling off") -- MVX the same than rifle.
- MVXChatPrint("\n---")
- return 1
- elseif key == VK_F4 then
- -- The following settings are for players that wants to mess around
- MVXProcessCommand("aim default")
- MVXChatPrint("MVX aggressive player settings\n")
- MVXProcessCommand("aim sniper head 100")
- MVXProcessCommand("aim rifle head")
- MVXProcessCommand("aim aimnext_interval 0")
- MVXProcessCommand("aim rangetotarget 350")
- MVXProcessCommand("ua on")
- MVXProcessCommand("uar on")
- MVXProcessCommand("acs")
- MVXProcessCommand("speed 2")
- MVXProcessCommand("jump 1")
- MVXChatPrint("\n---")
- return 1
- end
- end
- function onKeyUp(key)
- -- disables the isControlPressed flag if any other key goes up
- isControlPressed = false
- end
- function wndProc(message,wParam,hiLParam,loLParam)
- local ret = 0 -- if ret is set MVX does NOT allow the message to be processed by the game.
- if message == WM_KEYUP then
- ret = onKeyUp(wParam)
- elseif message == WM_KEYDOWN then
- ret = onKeyDown(wParam)
- elseif message == WM_ACTIVATEAPP then
- if not wParam then
- isControlPressed = false
- end
- end
- return ret
- end
- MVXPrint("MVX LUA Script 1.1")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement