Birdform attack counter script

Public forum for the discussion of strategy.
Post Reply
Antipasta
AFH
Posts: 251
Joined: Fri Sep 21, 2007 5:24 pm

Birdform attack counter script

Post by Antipasta » Wed Jun 18, 2008 7:35 am

I was using my fingers to keep track of how many times I'd attacked using Vicious Talon Slash and/or All You Can Beat Wing Buffet while in bird form, chasing after my glimmering roc feather... but I kept running out of fingers, or trying to type with them at the same time.

So I cobbled up a quick greasemonkey script to keep track for me - give it a try. It's a first alpha test version, but it's working OK for me so far. It may have bugs, but it won't autosell your Wand of Nagamar or anything.

http://userscripts.org/scripts/show/28640

Bug reports would be great, here or by kmail ingame.

User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Post by lostcalpolydude » Wed Jun 18, 2008 11:34 am

Excellent, I've wanted this script for a little while now. By the way, if you're ever on a computer where greasemonkey isn't available, I suggest counting compared to the number of birdform turns you have spent. If you just use talon slash every turn, you would be at +0. You could get to +1, -1, or whatever, depending on what you were doing. This method never failed me, at least.
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

Antipasta
AFH
Posts: 251
Joined: Fri Sep 21, 2007 5:24 pm

Post by Antipasta » Thu Jul 03, 2008 1:44 pm

I updated the birdform script with support for the elemental attacks:
http://userscripts.org/scripts/show/28640

Also updated my fortune cookie script with a bunch of bugfixes:
http://userscripts.org/scripts/show/13180

And while we're at it, this it the slightly customized version of price gun I use for buying and selling in the mall. I added color coding to store inventories, to help wade through clogged inventories and find the cheap stuff (e.g. very cheap = red, somewhat cheap = blue, priced at 999M = grayed out). Also gives you an indicator for is-it-in-my-store when you use it to look at your own stuff, which is nice if your own store inventory is clogged and you can't keep track. Price gun isn't my own script, I just changed a few lines.
http://antimarty.googlepages.com/upupuspricegun-marty.user.js

TeKRunneR
Spy vs. Pie
Posts: 80
Joined: Tue Nov 27, 2007 4:35 pm

Post by TeKRunneR » Thu Jul 10, 2008 5:51 am

Hey, just thought I'd let you know there seems to be a small bug that prevents attacks on a guy with a pitchfork, and his wife to be recognized by the script (maybe a comma issue ?).

EDIT : just had a look at your code, and the comma in the monster's name is indeed what confuses it. I think you'll have to do what you seemingly tried to avoid, which is to write dirty if statements for each of the different attacks.

Antipasta
AFH
Posts: 251
Joined: Fri Sep 21, 2007 5:24 pm

Post by Antipasta » Thu Jul 10, 2008 4:30 pm

TeKRunneR wrote:Hey, just thought I'd let you know there seems to be a small bug that prevents attacks on a guy with a pitchfork, and his wife to be recognized by the script (maybe a comma issue ?).


Good catch, thanks. Fixed now (same link, version 0.0.5). Problem was actually not the comma, but rather that the result text for a "plural" opponent changed - I thought I had caught them all (as of version 0.0.4), but I missed the sneaky difference for Feast on Carrion:

"You start eating bits of your opponent's flesh" vs.
"You start eating bits of your opponents' flesh"

Damn Jick and his careful grammar!

If you were using the 0.0.4 version and saw problems with anything except Feast on Carrion, let me know.

Post Reply