FeatherExpress - a combat script to turn Llama Gongs into feathers

Bale

Minion
[size=+1]FeatherExpress v0.9[/size]

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.
 

Attachments

  • FeatherExpress.ash
    7.9 KB · Views: 362
Last edited:

Raven434

Member
[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.
 
Last edited:

zarqon

Well-known member
Ooh Ooh! I see a place where you could cut a bunch of lines!!

Code:
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().
 
Last edited:

Bale

Minion
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.
 

Raven434

Member
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)
 

philthese

New member
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

Developer
Staff member
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

Developer
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.
 

draven

New member
I'm running build 11256 and this script has stopped working. I have a mood set up to keep birdform active and my Custom Combat Script is correct. I was using this script successfully before the Brushfires event started. Anyone else having similar issues?
 

draven

New member
I've got birdform set up as a continuous mood. FeatherExpress.ash is in my scripts folder.

Here's the output:

Code:
use 1 llama lama gong

[474808] Noob Cave
Encounter: Welcome Back!
Took choice 277/1: finish journey
choice.php?whichchoice=277&option=1&pwd

use 1 llama lama gong
Encounter: The Gong Has Been Bung
Took choice 276/3: 15 adventures
choice.php?whichchoice=276&option=3&pwd
You acquire an effect: Form of...Bird! (duration: 15 Adventures)

[474808] Frat House (Stone Age)
Encounter: caveman frat pledge
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
Round 2: draven1 attacks!
Round 3: caveman frat pledge takes 1671 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "I'm gonna count the stuff on the ground!  1... 2... Have you ever been to Canadia?"
You gain 112 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: chunk of rock salt
You gain 18 Fortitude
You gain 20 Magicalness
You gain 30 Roguishness

[474809] Frat House (Stone Age)
Encounter: caveman frat pledge
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
Round 2: Grofflesby puts on a creepy skeleton mask and jumps out at it, startling it to the tune of 64 damage.
Round 2: caveman frat pledge takes 64 damage.
Round 2: draven1 attacks!
Round 3: caveman frat pledge takes 1679 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "Eskimos don't have a word for 'hello.' Man, it's so cold up here! Do you think this rock looks like a hot dog?"
You gain 120 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: chunk of rock salt
You gain 15 Strengthliness
You gain a Muscle point!
You gain 17 Wizardliness
You gain 38 Cheek

[474810] Frat House (Stone Age)
Encounter: caveman frat pledge
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
You acquire an item: chunk of rock salt
Round 2: Grofflesby tells it a spooky ghost story. It shudders uncontrollably, taking 56 damage.
Round 2: caveman frat pledge takes 56 damage.
Round 2: draven1 attacks!
Round 3: caveman frat pledge takes 1681 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "Did you know bugbears hate humans? I don't get it. I like humans. Humans have souls. Hey, are those new shoes?"
You gain 93 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: ovoid leather thing
You gain 14 Beefiness
You gain 17 Enchantedness
You gain 38 Roguishness

[474811] Frat House (Stone Age)
Encounter: caveman sorority girl
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
You acquire an item: cup of primitive beer
Round 2: draven1 attacks!
Round 3: caveman sorority girl takes 1657 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "Did you know bugbears hate humans? I don't get it. I like humans. Humans have souls. Hey, are those new shoes?"
You gain 125 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: tasty louse
You gain 12 Muscleboundness
You gain 21 Enchantedness
You gain 30 Chutzpah

[474812] Frat House (Stone Age)
Encounter: caveman frat boy
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
You acquire an item: ovoid leather thing
You lose 34 hit points
Round 2: draven1 attacks!
Round 3: caveman frat boy takes 1653 damage.
Round 3: Grofflesby gives it a wet willy, using ice-cold water instead of spit. It takes 70 damage from the cold.
Round 3: caveman frat boy takes 70 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "So, this one time me and Satan were -- do you have any candy?"
You gain 107 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: tasty louse
You gain 17 Strengthliness
You gain 19 Mysteriousness
You gain 27 Roguishness

[474813] Frat House (Stone Age)
Encounter: caveman frat boy
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
You acquire an item: ovoid leather thing
Round 2: draven1 attacks!
Round 3: caveman frat boy takes 1668 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "Did you know that ostriches have no brains? Wait, that's starfish. I like the beach!"
You gain 136 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: chunk of rock salt
You gain 18 Fortitude
You gain 14 Enchantedness
You gain 32 Chutzpah

[474814] Frat House (Stone Age)
Encounter: caveman frat pledge
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
Round 2: draven1 attacks!
Round 3: caveman frat pledge takes 1674 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "Did you know that chili peppers aren't actually peppers? And a coconut isn't a nut, either! Hey, remember that one monster you fought? He was crazy. Do you like music?"
You gain 104 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: ovoid leather thing
You acquire an item: chunk of rock salt
You acquire an item: tasty louse
You gain 18 Strongness
You gain 19 Wizardliness
You gain 33 Roguishness

[474815] Frat House (Stone Age)
Encounter: caveman frat pledge
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
Round 2: draven1 attacks!
Round 3: caveman frat pledge takes 1685 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "Hey! Hey, this one time... hey! This one time, this one time this one time we... um... do you have a watch?"
You gain 107 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: stone baseball cap
You acquire an item: ovoid leather thing
You gain 17 Fortitude
You gain 16 Wizardliness
You gain 35 Chutzpah

[474816] Frat House (Stone Age)
Encounter: caveman frat pledge
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
Round 2: draven1 attacks!
Round 3: caveman frat pledge takes 1667 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "So, this one time me and Satan were -- do you have any candy?"
You gain 125 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: cup of primitive beer
You acquire an item: chunk of rock salt
You acquire an item: tasty louse
You gain 17 Muscleboundness
You gain 21 Mysteriousness
You gain 30 Sarcasm

[474817] Frat House (Stone Age)
Encounter: caveman sorority girl
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
Round 2: Grofflesby rigs up a bucket of ice-cold water, which falls and drenches your opponent. She takes 60 damage, and is now ready to enter a contest popular during Spring Break.
Round 2: caveman sorority girl takes 60 damage.
Round 2: draven1 attacks!
Round 3: caveman sorority girl takes 1683 damage.
Round 3: Grofflesby shines a flashlight under its chin and cackles maniacally. Her teeth start to chatter, causing 50 damage.
Round 3: caveman sorority girl takes 50 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "So, this one time me and Satan were -- do you have any candy?"
You gain 141 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: cup of primitive beer
You gain 19 Fortitude
You gain 14 Enchantedness
You gain 29 Roguishness

[474818] Frat House (Stone Age)
Encounter: caveman frat pledge
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
Round 2: draven1 attacks!
Round 3: caveman frat pledge takes 1669 damage.
Round 3: Grofflesby tells it a spooky ghost story. It shudders uncontrollably, taking 48 damage.
Round 3: caveman frat pledge takes 48 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "Eskimos don't have a word for 'hello.' Man, it's so cold up here! Do you think this rock looks like a hot dog?"
You gain 99 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: ovoid leather thing
You acquire an item: chunk of rock salt
You acquire an item: tasty louse
You gain 13 Strongness
You gain 21 Wizardliness
You gain 33 Chutzpah

[474819] Frat House (Stone Age)
Encounter: caveman frat boy
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
You acquire an item: chunk of rock salt
Round 2: Grofflesby shines a flashlight under its chin and cackles maniacally. Its teeth start to chatter, causing 74 damage.
Round 2: caveman frat boy takes 74 damage.
Round 2: draven1 attacks!
Round 3: caveman frat boy takes 1650 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "Did you know that chili peppers aren't actually peppers? And a coconut isn't a nut, either! Hey, remember that one monster you fought? He was crazy. Do you like music?"
You gain 123 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: stone baseball cap
You acquire an item: ovoid leather thing
You acquire an item: tasty louse
You gain 12 Fortitude
You gain 15 Magicalness
You gain 36 Cheek

[474820] Frat House (Stone Age)
Encounter: caveman sorority girl
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
Round 2: Grofflesby rigs up a bucket of ice-cold water, which falls and drenches your opponent. She takes 78 damage, and is now ready to enter a contest popular during Spring Break.
Round 2: caveman sorority girl takes 78 damage.
Round 2: draven1 attacks!
Round 3: caveman sorority girl takes 1653 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "Do you wanna go ride bikes? Wait, what's a bike? Do you have a bitchin' meat car? Those things are so cool! It's cold up here."
You gain 147 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: cup of primitive beer
You gain 17 Strengthliness
You gain 13 Enchantedness
You gain 33 Sarcasm

[474821] Frat House (Stone Age)
Encounter: caveman sorority girl
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
Round 2: Grofflesby tells her a spooky ghost story. She shudders uncontrollably, taking 50 damage.
Round 2: caveman sorority girl takes 50 damage.
Round 2: draven1 attacks!
Round 3: caveman sorority girl takes 1668 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "I'm gonna count the stuff on the ground!  1... 2... Have you ever been to Canadia?"
You gain 123 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: cup of primitive beer
You gain 14 Strengthliness
You gain 16 Wizardliness
You gain 33 Sarcasm

[474822] Frat House (Stone Age)
Encounter: caveman frat pledge
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
Round 2: draven1 attacks!
Round 3: caveman frat pledge takes 1669 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "How come there are never any trains in the seaside town? There are tracks, you know! Weremoose leave funny tracks. How come the plural of moose isn't meese? Geese are stupid."
You gain 104 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: stone baseball cap
You acquire an item: ovoid leather thing
You acquire an item: chunk of rock salt
You gain 15 Strongness
You gain 16 Magicalness
You gain 37 Cheek

use 1 llama lama gong

[474823] Noob Cave
Encounter: Welcome Back!
Took choice 277/1: finish journey
choice.php?whichchoice=277&option=1&pwd

use 1 llama lama gong
Encounter: The Gong Has Been Bung
Took choice 276/3: 15 adventures
choice.php?whichchoice=276&option=3&pwd
You acquire an effect: Form of...Bird! (duration: 15 Adventures)

[474823] Frat House (Stone Age)
Encounter: caveman frat boy
Round 0: draven1 wins initiative!
Round 1: draven1 tries to steal an item!
You acquire an item: stone baseball cap
Round 2: draven1 attacks!
Round 3: caveman frat boy takes 1660 damage.
Round 3: draven1 wins the fight!
After Battle: Grofflesby bounces around, helping you pick stuff up.  "Did you know that ostriches have no brains? Wait, that's starfish. I like the beach!"
You gain 123 Meat
After Battle: Grofflesby holds out the plastic pumpkin bucket, hoping for extra goodies.
You acquire an item: ovoid leather thing
You acquire an item: chunk of rock salt
You acquire an item: tasty louse
You gain 20 Strongness
You gain 21 Wizardliness
You gain 23 Chutzpah

Here's my CCS:

[ default ]
try to steal an item
attack with weapon
consult featherexpress.ash
note roc feather
attack with weapon
 
Last edited by a moderator:

slyz

Developer
I don't see what is surprising about this. If you kill the monster before FeatherExpress is called, it can't work its magic.

Also, could you add [code][/code] tags around long output next time? It makes the post easier to read.
 

draven

New member
Wow, that was really stupid of me. I looked at that code several times before posting and missed the extra attack. Thanks for pointing that out.
 
Top