PDA

View Full Version : Bounty hacking scripts on gift



Kaldonis
10-10-2016, 12:01 PM
Lately, my main character does gift with only gem and herb tasks. I hoard the gems in my locker, and I hoard the herbs in my shop. I kind of got on this idea because of bounty boosts, but it turns out you can pretty much do this without any boosts at all if you're not in a rush and are likely near your computer (say at work) or want to play an alt. This is also a reason I was really excited about the Confluence, since my main can get bounty points in RR.

A very simple script with only the bare minimum of functionality (and low portability at present) for checking for a new bounty is on the lich repo: ;rrbountyspool

Below is a (pretty shitty) bash script which attempts to notify me when I can get a new bounty. Note that it implicitly assumes that logout has occurred at the same time the bounty timer starts because I'm lazy. Anyway it makes a popup window fifteen minutes after the the timestamp of the logfile of the relevant character. And then I put the bountyspool into autostart when my character is on gift, and I go log in, and either get my herbs / gems or log back out and restart the shell script.

I only go down to fried when I have a bounty ready to turn in, so that in the meantime standing in front of the taskmaster he's saturated and unlikely to go to fried, so that when he does get a bounty, he can then go to fried, turn the new one in, log out, and repeat.

My last gift was 44k experience, so this seems to work well. I stock herbs and gems later in the week.


#!/bin/bash
CHAR="Kaldonis"
LOG_DIR=~/lich/logs/GSIV-$CHAR/
TIMESTAMP=$(ls -altr $LOG_DIR | awk '{printf $8}' | sed 's/.*://' | awk '{gsub ("^0*", "", $0); print}')
echo "Log file last edit at minute: $TIMESTAMP"
let "REFERENCE=TIMESTAMP+15"
if [ $REFERENCE -gt 59 ];then
let "REFERENCE-=60"
fi
echo "Next bounty will be available at minute: $REFERENCE"
while [ 1 ]
do
TIMENOW=$(date | awk '{printf $4}' | sed 's/...$//' | sed 's/.*://' | awk '{gsub ("^0*", "", $0); print}')
let "DELTA=TIMENOW-TIMESTAMP"
if [ $DELTA -lt 0 ];then
let "DELTA+=60"
fi
if [ $DELTA -ge 15 ];then
zenity --info --text "Time to log in $CHAR!"
exit
fi
echo "Waiting 1 more minute..."
sleep 60
done

Anyway, in case anyone finds this information amusing or useful, go crazy!