PDA

View Full Version : FeatherExpress - a combat script to turn Llama Gongs into feathers



Bale
11-19-2009, 08:54 AM
FeatherExpress v0.9

This will use bird skills at an intelligent rate, trying to space them out based on local combat rate, how much MP you regenerate after a battle and how many delicious shimmering moths you have in inventory, then this will attack the monster until it dies. If the monster's defense is too high to hit with your Beak, then the script will use Talon Slash instead. If you are not in Bird Form this will turn over control to the next line of your CCS. Here's an example CCS using this script:

[ default ]
1: pickpocket
2: consult FeatherExpress.ash
3: note Roc Feather
4: skill entangling noodles
5: skill shieldbutt

That will use noodles/shieldbutt if you are not in Bird Form, otherwise it will use Talon Slash, Wing Buffets and/or Attack with your Beak as it attempts to get a Roc Feather. The note in the consulting script will inform it of which feather to get. Obviously pickpocketing is optional. If you leave it out, the script will work just fine. If you're not in birdform, mafia will simply ignore the command.

There must be a note in the CCS informing the script if it should make Roc Feathers, Buzzard Feathers, Tit Feathers, Penguin Feathers, Phoenix Feathers or Raven Feathers.

Raven434
11-21-2009, 02:15 AM
[433] Knob Goblin Kitchens
Encounter: Knob Goblin Master Chef
Strategy: FeatherExpress.ccs [default]
Round 0: Joe Momma loses initiative!
Missing return value (FeatherExpress.ash, line 198)
Consult script 'FeatherExpress.ash' not found.
You're on your own, partner.

The .ccs is cut and pasted from the example listed in the top of the file. FeatherExpress.ash in is the scripts directory, like it should be.

Bale
11-21-2009, 05:21 AM
Fixed. Re-download and try again.

Raven434
11-21-2009, 08:24 PM
Bueno!

Thanks Bale!

Light Ninja
11-21-2009, 10:40 PM
Fantastic, will play with it tomorrow after rollover.

zarqon
11-26-2009, 06:17 AM
Ooh Ooh! I see a place where you could cut a bunch of lines!!



float adventure_cost() {
if (my_location() == $location[Oasis in the Desert] ||
my_location() == $location[Desert (Ultrahydrated)]) return 1.2;
float remainder = skill_goal - so_far;
return max(1.0,(have_effect($effect[Fishy]) + (remainder - have_effect($effect[Fishy]))* modifier_eval("1+zone(sea)"))/ remainder);
}


Don't know if you need quotes around "sea" or not, haven't fully explored the text functions in modifier_eval().

Bale
11-26-2009, 06:25 AM
Yum. To be honest, the math in that line is making my head spin as I try to evaluate it, but I love the idea.

The quotes are exactly where they need to be.

Rahmuss
12-15-2009, 02:52 AM
I don't suppose you have a script to use Llama lama gongs for other things do you?

Spiny
12-15-2009, 04:23 AM
I don't suppose you have a script to use Llama lama gongs for other things do you?

This thread (http://kolmafia.us/showthread.php?t=2164) has a script to farm digital underground potions. I believe the script can be adapted to retrieve other items from path of the mole.

Weatherboy
12-16-2009, 06:40 AM
I just want to say that I've used this, and it's incredible covered with awesome sauce. Thanks for another great script.

Raven434
01-23-2010, 11:38 PM
Just started getting division by zero errors.

Not sure if it is new Mafia, new zlib, new moon....

;-)

[125] Typical Tavern Quest
Encounter: drunken rat
Round 0: Mikko wins initiative!
Round 1: Mikko tries to steal an item!
Round 1: Jjoe Mmama spits on your opponent. Yech.
You acquire an item: rat whisker
Division by zero (FeatherExpress.ash, line 124)

Raven434
01-23-2010, 11:45 PM
Odd - works just fine not in the tavern.

Weird.

philthese
02-02-2010, 02:47 PM
I am probably just being dumb and am missing something, but does this script have the capability to automatically use more than 1 gong, go birdform and get another feather, or is it a one at a time shot?

lostcalpolydude
02-02-2010, 04:07 PM
I am probably just being dumb and am missing something, but does this script have the capability to automatically use more than 1 gong, go birdform and get another feather, or is it a one at a time shot?

You should set up a mood telling mafia to set up Form of Bird whenever it runs out, probably. It's not necessarily the type of thing someone would want built into the script though, because birdform prevents olfaction.

slyz
02-02-2010, 06:13 PM
I am probably just being dumb and am missing something, but does this script have the capability to automatically use more than 1 gong, go birdform and get another feather, or is it a one at a time shot?

This script is called only during combats (it's a consult script), so it can't use gongs. You could use another script to automate adventuring using gongs, or use the solution lostcalpolydude suggested.