Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Macro made by mudbourn.
- { ; These values are Default settings for certain macros; Feel free to change these.
- global DefaultValue = 2285 ; Super Jump Spin Speed.
- global CurrentBow = 0 ; Main Bow/Bow Currently in use. ( Default = 0 / No bow)
- global SleepDelay = 21 ; Amount of time between mouse movements in the Super Throw macro.
- global PixelAmount = 70 ; The size of the outline for the spin in the Super Throw macro.
- }
- ; WARNING: Messing with the content below can break the script.
- ; Scroll down to "Binds" to find the binds for the macros.
- { ; AHK script settings. (DO NOT TOUCH)
- SetWorkingDir %A_ScriptDir%
- SetTitleMatchMode 2
- SetControlDelay -1
- SetWinDelay -1
- SetKeyDelay, 0, -1, Input
- SetMouseDelay -1
- SetBatchLines -1
- SendMode, Event
- #IfWinActive Roblox
- global NirCmdPath = A_ScriptDir "\nircmd.exe"
- global ScriptPath = A_ScriptDir
- global SuperJumpSpinRan = 0
- global loopIndex = 0
- global SuperJumpCooldown = 0
- global GuiUsed = 0
- global SlideAllowed = 0
- global SuperThrowRun = 0
- global ReloadMacrosRun = 0
- global AutoFireToggler = 0
- global InputField = 2285
- global Scaled = 0
- global IsRunning = 0
- global XInt = DefaultValue
- global YInt = 305
- global ScaledX = Round(XInt * 1.375492341)
- global ScaledY = Round(YInt * 4.327868852)
- global ChargeJump = 0
- global ChainsawMode = 0
- SetTimer, ReleaseKeys, -10
- Sleep, 100
- SetTimer, ReleaseKeys, Off
- SetTimer, NirCmdCheck, 1
- }
- { ; Essential script control macros.
- NirCmdCheck()
- {
- If (FileExist(NirCmdPath))
- {
- SetTimer, NirCmdCheck, Off
- }
- Else
- {
- MsgBox, NirCmd was not found; Contact mudbourn for help on Discord.
- MsgBox, %ScriptPath%
- SetTimer, NirCmdCheck, Off
- }
- }
- IsRobloxActive()
- {
- WinGetTitle, title, A
- return InStr(title, "Roblox")
- return
- }
- ~F5::Pause
- ChatCancel()
- {
- While GetKeyState("/", "U")
- {
- if GetKeyState("/", "P")
- {
- Send, {Esc}
- return
- }
- }
- return
- }
- ~*=::
- Suspend, Permit
- if GetKeyState("LAlt", "P")
- {
- Run "C:\Program Files\AutoHotkey\SciTE\SciTE.exe" "%A_ScriptFullPath%"
- return
- }
- SetTimer, ChatCancel, 1
- SoundPlay, beep.mp3
- ReloadMacros()
- return
- ReloadMacros()
- {
- Soundplay, beep.mp3
- Sleep, 100
- if UsingItem1 = 1
- {
- Flourish1()
- }
- SetTimer, ChatCancel, Off
- Reload
- return
- }
- ~*/::
- SusOn:
- Suspend, Permit
- Suspend, On
- Return
- ~*Esc::
- SusTog:
- Suspend, Permit
- Suspend, Toggle
- Send, {Esc}
- Return
- ~*Enter::
- SusOff:
- Suspend, Permit
- Suspend, Off
- Return
- ReleaseKeys:
- SetTimer, ChatCancel, 1
- Send, {w up}{a up}{s up}{d up}{Shift up}{Ctrl up}{Alt up}{Space up}{LButton up}{RButton up}{C Up}{X Up}{O Up}{R Up}
- Send, {Esc}
- Sleep, 50
- Send, {Esc}
- Sleep, 5
- SetTimer, ReleaseKeys, Off
- SetTimer, ChatCancel, Off
- return
- }
- { ; Main macros.
- { ; Bow Auto Fire.
- AutoFireBow()
- {
- If (FileExist(nircmdPath))
- {
- if CurrentBow = 1
- {
- Longbow()
- }
- if CurrentBow = 2
- {
- Crossbow()
- }
- if CurrentBow = 3
- {
- HeavyBow()
- }
- }
- }
- Longbow()
- {
- While GetKeyState("B", "P")
- {
- Send, {LButton Down}
- Sleep, 20
- Send, {F}
- Sleep, 500
- Send, {LButton Up}
- Sleep, 5
- Send, {R}
- Sleep, 825
- }
- Send, {R}
- Sleep, 10
- }
- CrossBow()
- {
- While GetKeyState("B", "P")
- {
- Send,{LButton}
- Sleep, 25
- Send, {R}{F}
- Sleep, 1285
- }
- Send, {R}
- Sleep, 10
- }
- HeavyBow()
- {
- While GetKeyState("B", "P")
- {
- Send, {LButton Down}
- Sleep, 20
- Send, {F}
- Sleep, 850
- Send, {LButton Up}
- Sleep, 5
- Send, {R}
- Sleep, 1450
- }
- Send, {R}
- Sleep, 10
- }
- AutoFireKillSwitch()
- {
- AutoFireToggler = 0
- SetTimer, ReleaseKeys, 1
- SetTimer, HeavyBow, Off
- SetTimer, Crossbow, Off
- SetTimer, Longbow, Off
- SetTimer, AutoFireKillSwitch, Off
- }
- }
- { ; Super Jump.
- SuperJump()
- {
- if (SuperJumpCooldown = 0)
- {
- SuperJumpCooldown = 1
- loopIndex = 0
- If GetKeyState("x", "P")
- {
- ChargeJump = 1
- Send, {C}
- Send, {C Down}
- Sleep, 15
- Send, {Space Down}
- Sleep, 300
- Send, {Space Up}{C Up}
- Sleep, 3
- SetTimer, SuperJumpGlitch, -1
- Return
- }
- ; Otherwise
- SetTimer, SuperJumpGlitch, -1
- Return
- }
- Return
- }
- SuperJumpGlitch()
- {
- SuperJumpSpinRan = 0
- if GetKeyState("W", "P") or GetKeyState("LShift", "P")
- {
- IsRunning = 1
- Sleep, 30
- }
- if IsRunning = 0
- {
- Send, {LShift Down}
- Sleep, 10
- Send, {W Down}
- Sleep, 30
- }
- Send, {Space}
- Loop, 2
- {
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", 1400)
- Sleep, 2
- }
- Send, {E}
- Sleep, 30
- SetTimer, SuperJumpSpin, 1
- SetTimer, SuperJumpSlide, 20
- Sleep, 500
- If IsRunning = 0
- {
- Send, {W Up}{LShift Up}
- }
- Sleep, 10
- SlideAllowed = 1
- Sleep, 1500
- SlideAllowed = 0
- SuperJumpCooldown = 0
- IsRunning = 0
- SetTimer, SuperJumpSlide, Off
- SetTimer, SuperJumpGlitch, Off
- }
- SuperJumpSpin()
- {
- Critical, On
- SuperJumpSpinRan = 1
- loopIndex++
- Send, {Space Down}
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", XInt, "Int", YInt)
- if (loopIndex >= 34)
- {
- ResetCamera = 1
- Send, {Space Up}
- loopIndex = 0
- Sleep, 30
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -ScaledX, "Int", -ScaledY)
- SetTimer, SuperJumpSpin, Off
- }
- Return
- }
- SuperJumpSlide()
- {
- if SlideAllowed = 1
- {
- While GetKeyState("Z", "P") && SlideAllowed = 1
- {
- Sliding = 1
- Sleep, 5
- Send, {LShift Down}
- Sleep, 50
- Send, {W Down}
- Sleep, 50
- Send, {C Down}
- ResetCamera = 0
- }
- if Sliding = 1
- {
- Send, {LShift Up}{W}{C Up}
- SetTimer, SuperJumpSlide, Off
- }
- Return
- }
- }
- }
- { ; Super Throw.
- SuperThrow()
- {
- Critical, Off
- SuperThrowRun = 1
- While SuperThrowRun = 1
- {
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", 1700)
- Sleep, 15
- Send, {Z}
- Sleep, 15
- Send, {C Down}
- Sleep, 15
- Send, {Space Down}{X Down}
- MouseMove, 830, 610, 100
- Sleep, 450
- Send, {Space Up}
- Sleep, 15
- SetTimer, SuperThrowSpin, 2
- Sleep, 5
- Send, {Z Up}{C Up}{Space Up}
- Sleep, 10
- Send, {Z}
- Sleep, 10
- global SuperThrowRun = 0
- SetTimer, SuperThrow, Off
- Return
- }
- }
- SuperThrowSpin()
- {
- Send, {X Up}
- Sleep, 30
- Loop, 5
- {
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -PixelAmount, "Int", 0)
- Sleep, SleepDelay
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -PixelAmount, "Int", 0)
- Sleep, SleepDelay
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", -PixelAmount)
- Sleep, SleepDelay
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", -PixelAmount)
- Sleep, SleepDelay
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", PixelAmount, "Int", 0)
- Sleep, SleepDelay
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", PixelAmount, "Int", 0)
- Sleep, SleepDelay
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", PixelAmount)
- Sleep, SleepDelay
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 0, "Int", PixelAmount)
- Sleep, SleepDelay
- }
- SetTimer, SuperThrowSpin, Off
- Return
- }
- Bail()
- {
- if GetKeyState("LButton", "P")
- {
- Send, {Z}
- Sleep, 15
- ReloadMacros()
- }
- }
- }
- { ; Tricks.
- Scaler()
- {
- if Scaled = 0
- {
- Scaled = 1
- Run, nircmd.exe setdisplay 1600 900 32
- }
- else if Scaled = 1
- {
- Scaled = 0
- Run, nircmd.exe setdisplay 1920 1080 32
- }
- }
- Flourish1()
- {
- Send, {1 Down}
- Sleep, 3
- Send, {X Down}
- Send, {1 Up}{X Up}
- return
- }
- Flourish2()
- {
- Send, {2 down}
- Sleep, 50
- send, {x down}
- Send, {2 up}
- send, {x up}
- return
- }
- Flourish3()
- {
- Send, {3 down}
- Sleep, 50
- send, {x down}
- Send, {3 up}
- send, {x up}
- return
- }
- GKCancel()
- {
- Send, {G}
- Sleep, 300
- Send, {Q}
- Return
- }
- FakeSwing()
- {
- While GetKeyState("XButton2", "P")
- {
- if ChainsawMode = 0
- {
- Send, {LButton}
- Sleep, 142
- Send, {x}
- Sleep, 540
- }
- else if ChainsawMode = 1
- {
- SetTimer, ChainSawGlitchFlick, -1
- }
- }
- Return
- }
- ChainSawGlitchFlick() ; DOES NOT WORK
- {
- Send, {LButton}
- Loop, 1
- {
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 500, "Int", 0)
- Sleep, 33
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -500, "Int", 0)
- Sleep, 33
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", -500, "Int", 0)
- Sleep, 33
- DllCall("user32.dll\mouse_event", "UInt", 0x0001, "Int", 500, "Int", 0)
- Sleep, 33
- }
- }
- }
- }
- { ; Choices and settings menu for certain macros.
- Settings()
- {
- Gui, New, +AlwaysOnTop +OwnDialogs, Choose an Option
- Gui, Add, Text, Center, Settings
- Gui, Add, Button, gChooseA1 w175 Center, Bow Type Selector
- Gui, Add, Button, gChooseC3 w175 Center, Disable AutoFire Hotkey
- Gui, Add, Button, gChooseD4 w175 Center, Super Jump Spin
- Gui, Add, Button, gChooseE5 w175 Center, Chainsaw Glitch
- Gui, Show, w300, Made by mudbourn.
- Return
- }
- BowSelector()
- {
- Gui, New, +AlwaysOnTop +OwnDialogs, Choose an Option
- Gui, Add, Text, Center, Please select your current bow type
- Gui, Add, Button, gChooseA w175 Center, LongBow
- Gui, Add, Button, gChooseB w175 Center, Crossbow
- Gui, Add, Button, gChooseC w175 Center, Heavy Bow
- Gui, Show, w300, Made by mudbourn.
- Return
- }
- SpinSpeedSetting()
- {
- Gui, Add, Text, Center, Enter a spin speed :
- if GuiUsed = 0
- {
- GuiUsed = 1
- Gui, Add, Edit, vInputField 175
- }
- else if GuiUsed = 1
- {
- }
- Gui, Add, Button, gSubmitInput Center, Submit
- Gui, Show, w300, Made by mudbourn.
- return
- }
- ChooseA1:
- {
- Gui, Destroy
- BowSelector()
- Return
- }
- ChooseC3:
- {
- Gui, Destroy
- CurrentBow = -1
- Return
- }
- ChooseD4:
- {
- Gui, Destroy
- SpinSpeedSetting()
- Return
- }
- ChooseE5:
- {
- Gui, Destroy
- if ChainsawMode = 0
- {
- ChainsawMode = 1
- MsgBox Chainsaw Glitch Enabled
- }
- else if ChainsawMode = 1
- {
- ChainsawMode = 0
- MsgBox Chainsaw Glitch Disabled
- }
- return
- }
- SubmitInput:
- {
- Gui, Submit ; Save the GUI's input to variables
- global XInt = InputField ; Assign GUI input to global variablew
- if (Trim(XInt) = "" or Trim(XInt) < 1 or !RegExMatch(XInt, "^\d+$"))
- {
- XInt = %DefaultValue%
- MsgBox, Invalid Speed; Set value to %XInt%.
- Return
- }
- if (Trim(XInt) > 2800)
- {
- MsgBox, (WARNING)`n`nThis value is much higher than the deafult and may cause problems.
- Return
- }
- if (Trim(XInt) < 1800 )
- {
- MsgBox, (WARNING)`n`nThis value is much lower than the default and may cause problems.
- Return
- }
- MsgBox, Your spin speed is now: %XInt%
- return
- }
- ChooseA:
- {
- Gui, Destroy
- GuiClose1:
- GuiEscape1:
- CurrentBow = 1
- if CurrentBow = 1
- {
- MsgBox Your choice has been saved as "1"
- SetTimer, AutoFireKillSwitch, 1
- }
- Return
- }
- ChooseB:
- {
- Gui, Destroy
- GuiClose2:
- GuiEscape2:
- CurrentBow = 2
- if CurrentBow = 2
- {
- MsgBox Your choice has been saved as "2"
- SetTimer, AutoFireKillSwitch, 1
- }
- Return
- }
- ChooseC:
- {
- Gui, Destroy
- GuiClose3:
- GuiEscape3:
- CurrentBow = 3
- if CurrentBow = 3
- {
- MsgBox Your choice has been saved as "3"
- SetTimer, AutoFireKillSwitch, 1
- }
- Return
- }
- Choose1:
- {
- Gui, Destroy
- Send, {1}
- SetTimer, AutoFireKillSwitch, 1
- CurrentBow = 0
- UsingItem1 = 0
- Return
- }
- Choose2:
- {
- Gui, Destroy
- SetTimer, AutoFireKillSwitch, 1
- CurrentBow = 0
- UsingItem1 = 0
- Return
- }
- }
- { ; Binds
- { ; Binds required for certain macros.
- v::z
- z::v
- }
- { ; Optional extra macros.
- *1::Flourish1()
- 2::Flourish2()
- 3::Flourish3()
- }
- { ; Feel free to change these binds at will.
- ; " ~ " stops the macro from cancelling the key's proper output.
- ; " * " allows the macros to run regardless of the modifier keys that are being held.
- ; " + " allows the hotkey to be pressed when the shift button is pressed.
- ~*F8::Scaler()
- ~b::AutoFireBow()
- ~*XButton2::FakeSwing()
- *XButton1::SuperJump()
- +q::GKCancel()
- j::SuperThrow()
- ~*]::Settings() ; Gui for some macro settings
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment