Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #singleinstance force
- Process, Priority, , High
- Sleep1= 100 ; Random Range Of sleep time
- Sleep2= 150 ; Used after pressing the F-Key to switch to run/prayer tab.
- ;Mouse Positions X/Y Coordinates For Orion, AB For RSclient, change them if needed.
- X1=684 ; melee prayer
- Y1=396 ; mouse position
- X2=643 ; range prayer
- y2=396 ; mouse position
- x3=608 ; mage prayer
- y3=396 ; mouse position
- x4=681 ; steel skin
- y4=359 ; mouse position
- x5=570 ; item protect
- y5=354 ; mouse position
- x6=571 ; mystic might
- y6=430 ; mouse position
- x7=639 ; final Mouse Position
- y7=237 ; after finishing prayer clicks
- x8=641 ; Run icon
- y8=480 ; mouse position
- x9=750 ; clicks Mouse Top right of screen
- y9=197 ; to cancel "cast bind" before activating prayer.
- ;RSClient Coods
- XR1=694
- YR1=369
- XR2=654
- YR2=369
- XR3=618
- YR3=369
- XR4=694
- YR4=332
- XR5=580
- YR5=335
- XR6=582
- YR6=410
- XR7=656
- YR7=208
- XR8=655
- YR8=455
- XR9=763
- YR9=174
- offset=2
- F1Downs := "Melee"
- F2Downs := "Range"
- F3Downs := "Mage"
- F4Downs := "Melees"
- F5Downs := "Rangers"
- F6Downs := "Magers"
- goto ^g
- return
- ^g::
- GUI Destroy
- GoSub GUI
- return
- Gui:
- Gui, Margin, 10, 10
- Gui, Add, Text, center Ym+20 w280 h15, OSRS Prayer: By Samerdl
- Gui, Add, Text, w50 h15 xm ym+60 section, F1 - key
- Gui, Add, Text, w50 h15 yp+30, F2 - Key
- Gui, Add, Text, w50 h15 yp+30, F3 - Key
- Gui, Add, Text, w70 h15 xp+15 yp+30, F4 - Key
- Gui, Add, Text, w70 h15 xp+65, F5 - Key
- Gui, Add, Text, w70 h15 xp+65, F6 - Key
- Gui, Add, Text, xp+55 yp+30 w300 h20, < Overheads Only
- Gui, Add, Text, w50 h15 xs+60 ys, OverHead:
- Gui, Add, Text, w50 h15 yp+30, OverHead:
- Gui, Add, Text, w50 h15 yp+30, OverHead:
- Gui, Add, DropDownList, w60 xs+120 ys-3 vF1Downs choose1, Melee|Range|Mage
- Gui, Add, DropDownList, w60 yp+30 vF2Downs choose2, Melee|Range|Mage
- Gui, Add, DropDownList, w60 yp+30 vF3Downs choose3, Melee|Range|Mage
- Gui, Add, DropDownList, w60 xp-120 yp+60 vF4Downs choose1, Melees|Ranges|Magers
- Gui, Add, DropDownList, w60 xp+70 vF5Downs choose2, Melees|Rangers|Magers
- Gui, Add, DropDownList, w60 xp+70 vF6Downs choose3, Melees|Rangers|Magers
- Gui, Add, Text, w50 ys-25 xs+200, Protections:
- Gui, Add, CheckBox, yp+20 vSteelskins checked, Steel Skin
- Gui, Add, CheckBox, yp+20 vItemProtects checked, Item Protect
- Gui, Add, CheckBox, yp+20 vMysticMight, Mystic Might
- Gui, Add, CheckBox, yp+20 vFRunning checked, ~ toggles run
- Gui, Add, CheckBox, yp+20 vFSleep checked, sleep time
- Gui, Add, CheckBox, yp+20 vFBinds, bind Unclick
- Gui, Add, Text, xm ys+150 w300 h20 section center, Mouse Position When Done:
- Gui, Add, Radio, w100 h15 ys+20 xm+30 vInv, Inventory Icon
- Gui, Add, Radio, w100 h15 ys+20 xm+160 vOrigin checked, Original Position
- Gui, Add, Button, w290 ys+50 xm, Ok
- Gui, Add, Button, Xs YM w10, About
- Gui, Add, Button, Xs YM+30 w10, ResizeClient
- Gui, Show, w305, OSRS Prayer: By Samerdl
- Return
- GuiClose:
- ExitApp
- ButtonOK:
- MsgBox, 0, OSRS Prayer, You can restore and re-edit this interface at anytime by Pressing Control +G.`n`Remember to suspend the script when you have no use for it.`n`n`If you are using Jagex's RSclient Be sure to click the resize button so the clicks can work correctl (or press Control + F12 while your RSclient SCreen is on top).
- Gui, Submit
- return
- ButtonResizeClient:
- MsgBox, 1,OSRS Prayer, If you Click Ok the script will locate the Jagex RS client and resize it so the Hotkeys can work correctly. Orion needs to remain at defaul size - compact mode.`n`n`(Note you can also press Control + F12 To resize the rs client as well without clicking this message).
- IfMsgBox Ok
- IfWinExist Old School RuneScape
- {
- WinActivate
- ResizeWin(793,571)
- }
- return
- return
- ButtonAbout:
- gui, 2:Default
- Gui, 2:Margin, 10, 10
- Gui, 2:Add, Text, center w240 h15, OSRS Prayer: By Samerdl
- Gui, 2:Add, Button, xp+5 yp+20,F-keys_And_Overheads
- Gui, 2:Add, button, default,Resizing_The_Rs_Client
- Gui, 2:Add, Button, default w+120,Run_toggling_feature
- Gui, 2:Add, Button, default w+140,Bind_Unclicking_Feature
- Gui, 2:Add, Button, default w+120,Mouse_Positioning_When_Done_Feature
- Gui, 2:Add, Button, default w+120,Sleep_time_feature
- Gui, 2:Add, Button, default xp+150 yp-100,General_Info
- Gui, 2:Add, Button, W240 xs-5 Close,Close
- Gui, 2:Show, w250, About ~ OSRS Prayer: By Samerdl
- return
- 2ButtonClose:
- gui, 2:submit
- return
- 2ButtonGeneral_Info:
- MsgBox, 0,OSRS Prayer, OSRS-Prayer is an Oldschool RS utility designed to speed up the act of Activating and De-activating Prayer & Run in the game.`n`n`It's is designed for the Orion client & the Rs client - use it at your own risk (against the rules).`n`n`{{ DO NOT USE IT ON BROWSERS!}}.
- return
- 2ButtonF-keys_And_Overheads:
- MsgBox, 0,OSRS Prayer, F1-F3 Keys funciton as full on prayer activator, they will turn on: overhead, item protect, steel skin & Mystic might.`n`n`F4-F6 turns on Overheads only, coordinates for mouse clicks can be changed from within the script.
- return
- 2buttonResizing_The_Rs_Client:
- MsgBox, 0,OSRS Prayer, The Resize feature (From the gui or just press Control + f12) will resize the RSClient to a pre-selected size so all the clicks will register properly and accordingly to the desired positions.`n`n` This feature is only needed for the Rsclient, as the Orion Client doesn't require a resize (yet).
- return
- 2buttonRun_toggling_feature:
- MsgBox, 0,OSRS Prayer, This feature will turn run on and off when you press the backquote key.`n`n`Although the Gui shows the tilde (~) key is required for activation, you dont need to press shift to activate it - as the key bind is set to the backtick key (backquote, the tilde without shift I.E "`",`. Its just too hard to see it.
- return
- 2buttonMouse_Positioning_When_Done_Feature:
- MsgBox, 0,OSRS Prayer, There are two options for the mouse position once the script finishes performing prayer/run toggles, it can eiher be the same position you've had it before, or it will move To X7/Y7 coords - the top of inventory close to the Inventory icon, you can change that within the script to any position you please.
- return
- 2buttonBind_Unclicking_Feature:
- MsgBox, 0,OSRS Prayer, This feature will make sure to click at the top right of the screen before performing run/prayer activation/deactivation.`n`n`This is done to prevent the clicks from unregistering when you have 'cast bind' held (if you're a mager), not recommened to use this feature.
- return
- 2buttonSleep_time_feature:
- msgbox,0,OSRS PRAYER, Sleep Time ads a wait time after & Before F-Keying between tabs, the Wait time is set in Sleep1, Sleep2.`n`n` By default the Sleep time is set to a random range between 100 to 150 MS.`n`Such Feature is needed to prevent bad clicks/failed clicks.
- #If WinActive("Orion") or WinActive("Old School RuneScape") or WinActive("OSBot") or WinActive("Runescape") or WinActive("Tribot")
- F1::
- BlockInput On
- gosub %F1Downs%
- BlockInput off
- return
- F2::
- BlockInput On
- gosub %F2Downs%
- BlockInput off
- return
- F3::
- BlockInput On
- gosub %F3Downs%
- BlockInput off
- return
- F4::
- BlockInput On
- gosub %F4Downs%
- BlockInput off
- return
- F5::
- BlockInput On
- gosub %F5Downs%
- BlockInput off
- return
- F6::
- BlockInput On
- gosub %F6Downs%
- BlockInput off
- return
- ^F12::
- IfWinExist Old School RuneScape
- {
- WinActivate
- ResizeWin(793,571)
- }
- return
- `::
- BlockInput on
- if FRunning
- {
- MouseGetPos, XX, YY
- gosub binding
- send {f10}
- Gosub Sleeping
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X8+ Ran(offset), Y8+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR8, Ran(offset)+ Yr8
- }
- send {esc}
- gosub MouseArea
- }
- BlockInput off
- return
- Melees:
- MouseGetPos, XX, YY
- gosub binding
- send {f5}
- Gosub Sleeping
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X1+ Ran(offset), Y1+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR1, Ran(offset)+ Yr1
- }
- send {esc}
- gosub MouseArea
- return
- Rangers:
- MouseGetPos, XX, YY
- gosub binding
- send {f5}
- Gosub Sleeping
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X2+ Ran(offset), Y2+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR2, Ran(offset)+ Yr2
- }
- send {esc}
- gosub MouseArea
- return
- Magers:
- MouseGetPos, XX, YY
- gosub binding
- send {f5}
- Gosub Sleeping
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X3+ Ran(offset), Y3+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR3, Ran(offset)+ Yr3
- }
- send {esc}
- gosub MouseArea
- return
- Melee:
- MouseGetPos, XX, YY
- gosub binding
- send {f5}
- Gosub Sleeping
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X1+ Ran(offset), Y1+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR1, Ran(offset)+ Yr1
- }
- gosub checkboxes
- Gosub Sleeping
- send {esc}
- gosub MouseArea
- return
- Range:
- MouseGetPos, XX, YY
- gosub binding
- send {f5}
- Gosub Sleeping
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X2+ Ran(offset), Y2+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR2, Ran(offset)+ Yr2
- }
- gosub checkboxes
- Gosub Sleeping
- send {esc}
- gosub MouseArea
- return
- Mage:
- MouseGetPos, XX, YY
- gosub binding
- send {f5}
- Gosub Sleeping
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X3+ Ran(offset), Y3+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR3, Ran(offset)+ Yr3
- }
- gosub checkboxes
- Gosub Sleeping
- send {esc}
- gosub MouseArea
- return
- checkboxes:
- if SteelSkins
- {
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X4+ Ran(offset), Y4+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR4, Ran(offset)+ Yr4
- }
- }
- if ItemProtects
- {
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X5+ Ran(offset), Y5+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR5, Ran(offset)+ Yr5
- }
- }
- if MysticMight
- {
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X6+ Ran(offset), Y6+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR6, Ran(offset)+ Yr6
- }
- }
- return
- Mousearea:
- if Inv
- {
- IfWinNotActive Old School RuneScape
- {
- MouseMove, X7+ Ran(offset), Y7+ Ran(offset), 0
- }
- IfWinActive Old School RuneScape
- {
- MouseMove, Ran(offset)+ XR7, Ran(offset)+ Yr7, 0
- }
- }
- if Origin
- {
- IfWinNotActive Old School RuneScape
- {
- MouseMove, XX+ Ran(offset), YY+ Ran(offset), 0
- }
- IfWinActive Old School RuneScape
- {
- MouseMove, xx+ Ran(offset), yy+ Ran(offset), 0
- }
- }
- return
- Binding:
- if Fbinds
- {
- IfWinNotActive Old School RuneScape
- {
- MouseClick , Left , X9+ Ran(offset), Y9+ Ran(offset)
- }
- IfWinActive Old School RuneScape
- {
- MouseClick , Left , Ran(offset)+ XR9, Ran(offset)+ Yr9
- }
- }
- return
- Sleeping:
- if Fsleep
- {
- Random, Rand, Sleep1, Sleep2
- sleep %rand%
- }
- return
- Ran(Num)
- {
- Random, r, -1*Num, Num
- Return r
- }
- ResizeWin(Width = 0,Height = 0)
- {
- WinGetPos,X,Y,W,H,A
- If %Width% = 0
- Width := W
- If %Height% = 0
- Height := H
- WinMove,A,,%X%,%Y%,%Width%,%Height%
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement