Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • [Linux] NMZ Rapid heal Prayer flick .sh Script


    DefCon

    Recommended Posts

    Here's a simple little script to flick your prayer and stay at 1 hp in NMZ

    Library needed: xdotool

    :
     

    #!/bin/bash
    x=60
    
    xdotool mousemove 367 165
    
    while [ $x -gt 0 ]; do
      r=$(( 1 + RANDOM % 2))
      if [ $r -eq 1 ]
      then 
      xdotool click 1 & sleep 2.4
      else
       xdotool click 1 & sleep 3
      fi
      r2=$(( 20 + RANDOM % 40))
      xdotool click 1 & sleep $r2
      x=`expr $x - 1`
      echo $x
    
    
    done
    

    The x value on line 2 determines how many times it flicks the prayer. Change that to suit your needs.

    Change the values on line 4 to the Co-ordinates of your quick-prayer button

     

    Also, I had trouble making the timing more random since shell scripts dont support decimal division.

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.