zarqon
Well-known member
[size=+1]First Things First 4.0[/size]
First, an IMPORTANT NOTICE: This script is no longer being developed or supported. All of its functions have been absorbed into the new SmartStasis as of SS 3.0 (link in my sig below). The new SS is highly superior to this old thing, and I highly recommend you give it a try! ~Z~
What does it do?
FTF is a consult script for handling some of those things you might want to do before attacking and killing monsters. Currently, FTF handles:
NOTE: Weaker / stronger monsters are calculated based on the monster's attack (plus threshold) vs. your moxie. Unknown monsters are assumed to have a monster level of unknown_ml.
ALSO NOTE: All script settings mentioned above (in teletype font) can be adjusted by typing "zlib settingname = value" in the CLI. Type "zlib vars" in the CLI to see the current values. These values do not change when updating the script!
ALSO ALSO NOTE: If you are on a hunt, Olfaction will ignore ftf_olfact monsters in the bounty location, only olfacting bounty monsters. Outside of the bounty location, specified monsters will still be olfacted. Puttying will also take place against bounty monsters for bounties requiring up to puttybountiesupto items (default is 19). For puttying to be effective, you also need something that will fight your spooky putty monster after creating it. I recommend the Best Between Battle Script Ever!
Both Olfaction and puttying are sensitive to mafia's one-time olfaction/putty combat settings, so I'm fairly certain that including "special action" in your CCS is unnecessary.
How to use it:
Changelog
5.29.08 - ver. 1.0 posted.
5.30.08 - ver 1.1 changes: added handling for the Big Book of Pirate Insults in Barrrney's Barrr.
6.09.08 - ver 1.2 changes: included automatic safe summoning of Pastamancer combat ghosts. Included Cyrpt mini-boss special item throwing. Bumped default threshold up to 4.
6.10.08 - ver. 1.3 changes: changed "get the jump on" to just "get the jump" due to a sword that sometimes messed things under.
9.17.08 - ver. 1.4 changes: edited the script so as to avoid borking on unknown monsters (thanks to Paulie Astaire for the fix).
11.24.08 - ver. 1.5 changes: no longer assumes you are safe against unknown monsters if your moxie is over 200. Added special handling for GMOB.
11.28.08 - ver. 1.6 changes: uses "safetyThreshold" property for per-user safety settings.
12.20.08 - ver. 1.7 changes: add support for Creepy Grin. Ask whether you'd rather use flyers or mirror in rare situation against GMOB when you have both but must pick one.
1.04.09 - ver. 1.8 changes: default to (facsimile) dictionary in the Chasm. Clear poison if you have anti-anti-antidotes and they get you in the first few rounds (thanks Bale!). Cast Salve on yourself if you need the HP (thanks dj_d!). Added sponge to olfacted monsters.
1.27.09 - ver. 1.9 changes: fix handling Olfaction of bounty and non-bounty monsters in the same zone (thanks tebee!). Add meat vortex for brigands to accommodate upcoming OCW change. Rearrange a few things to allow it to play nice when imported into other consult scripts.
3.12.09 - ver 2.0 changes: FTF should play nice with stealing and noodles combat "special" settings. You are not "in the clear" if you are Strangulated. Save a meat vortex in case you need one for the NS tower. Detect hobo monkey theft for use if imported into another CCS.
3.30.09 - ver. 2.1 changes: mafia tries to cast Lasagna Bandages through the skills URL rather than in-combat, causing an error. Use visit_url() rather than use_skill() for that particular skill.
4.25.09 - ver. 2.2 changes: use spooky putty on lobsterfrogmen during the quest if you don't have enough gunpowder.
4.26.09 - ver. 2.3 changes: move puttying to its own function. Add a few lines to putty a fithworm guard if you are on your last adventure of stench (commented out by default).
5.06.09 - ver. 2.4 changes: detect hobo sobriety for use by SmartStasis (ghost detection still needs work). Make poison removal behavior exactly match your combat setting. Swap order of mirror and flyers vs. GMOB with funkslinging.
5.13.09 - ver. 2.5 changes: finally, detect Gluttonous Green Ghost hunger! Don't ever cast Noodles if you're in the clear. Improved handling vs. GMOB in the event that you throw the flyers without Noodles and survive.
6.09.09 - ver. 2.6 changes: added a flyereverything option. If true (default), will throw flyers at everything unless you are a) on the battlefield, or 2) in the haunted bathroom. Attempt to use Noodles before flyering or insulting, even if in the clear. Moved insults into use_special_item(). Account for Hero of the Half-Shell when checking intheclear().
6.14.09 - ver. 2.7 changes: moved some functions around -- now requires ZLib. Now has once-daily version checking.
7.10.09 - ver. 2.8 changes: allow pickpocketing in Form of...Bird! Introduce framework for possible, eventual auto-olfaction/puttying.
7.25.09 - ver. 3.0 major update! Completely refactor Olfaction (and introduce puttying) of bounty monsters, by using the data file generated by bounty.ash. Now only reserves Olfaction for bounties if you are in the correct location. Use script settings rather than variables. Use as many miniboss combat items as you have, rather than just one.
8.06.09 - ver. 3.1 changes: Introducing smart PM ghost summoning! Now has individual logic for each ghost type, to decide whether or not to summon.
8.25.09 - ver. 3.2 changes: much simpler detection of when to steal. And a few additions for the Primordial Soup: add violent fungus to Olfaction list. Handle throwing base pairs at Cyrus.
11.7.09 - ver. 3.3 changes: added transparency for several more mafia settings: autoOlfact, autoPutty, and autoPotionID. Move olfacted/grin monster lists into ZLib settings. Don't require intheclear() for summoning PM ghosts. Handle GMoB and Cyrus with most of the same code (flyering or throwing the appropriate item, with funkslinging support).
11.28.09 - ver. 3.4 changes: fixed use of "monster monstername" for puttifaction. Move detection and response to gremlins with tools/megalopolis monsters with discs here.
12.30.09 - ver. 3.5 changes: abort if your rusty item gets slimed in the Slime Tube. Refactored special item function. Use skate decoys to get familiars if they are goals. Use cocktail napkins against clingy pirates if no clingfilm items are goals. Auto-ID spheres transparently with mafia setting. Use ZLib's new vprint().
1.23.10 - ver. 3.6 changes: use ZLib's new load_current_map() to get the bounty data. Always ID bang potions if you have more than one -- otherwise, follow the setting. "zombie waltzers" => "some zombie waltzers"
4.1.10 - ver. 3.7 changes: a frigton.
4.6.10 - ver. 3.8 changes: fixed embarrassing typo that crept in with other changes, causing intheclear() to always return true. Incorporated ASH's new item_drops_array() into monster value calculations. Fix detection of clingfilm goals when deciding whether to throw cocktail napkins at clingy pirates.
4.19.10 - ver. 3.9 changes: added Yellow Ray support against monsters specified in new setting ftf_yellow. Don't insult pirates from the F'c'le or beyond. Remove ghostname variable. Better pickpocketing calculations.
4.25.10 - ver. 4.0 changes: has_goal() now returns a float. If olfacting for goals, olfact the monster with the greatest chance of yielding goals. Don't flyer if flyeredML >= 10000.
4.08.11 - They day has arrived: FTF has finally been obsoleted by the new SmartStasis. Removed version checking from FTF, since no updates will follow.
First, an IMPORTANT NOTICE: This script is no longer being developed or supported. All of its functions have been absorbed into the new SmartStasis as of SS 3.0 (link in my sig below). The new SS is highly superior to this old thing, and I highly recommend you give it a try! ~Z~
What does it do?
FTF is a consult script for handling some of those things you might want to do before attacking and killing monsters. Currently, FTF handles:
- Stealing from weaker monsters whenever you can (twice if you have the ability to).
- Using Entangling Noodles on stronger monsters if you can.
- Using Olfaction on the monsters you specify in ftf_olfact, as well as bounty monsters when you are on a bounty hunt!
- Puttying bounty monsters (for bounties requiring at most puttybountiesupto items).
- Appropriately summoning Pastamancer ghosts depending on type and experience level!
- Salving yourself if you need it or it's better than your out-of-combat restore options.
- Using the Big Book of Pirate Insults on pirates in the Cove/Barrr if you haven't learned all the insults yet.
- Using spooky putty on lobsterfrogmen if you haven't completed that sidequest yet.
- Using specific items against the mini-bosses in the Cyrpt.
- Throwing flyers and/or hand mirrors against the Guy Made of Bees.
- Throwing flyers and/or yet-unthrown base pairs at Cyrus the Virus.
- Throwing flyers at everything you can if you have flyers (if flyereverything is true).
- Throwing meat vortices at thieving brigands.
- Throwing skate decoys at groupers/urchins to get goal familiars.
- Throwing cocktail napkins to drive away clingy pirates if clingfilm items are not goals.
- Using your Major Yellow Ray on the monsters specified in ftf_yellow if you have a He-Boulder as your familiar.
- Casting Creepy Grin or Stinkeye on the monsters you specify in ftf_grin if you're wearing the appropriate accessory.
- Identifying bang potions and hidden city spheres (transparent with mafia settings). In the case of bang potions, it will always ID potions if you have more than one.
NOTE: Weaker / stronger monsters are calculated based on the monster's attack (plus threshold) vs. your moxie. Unknown monsters are assumed to have a monster level of unknown_ml.
ALSO NOTE: All script settings mentioned above (in teletype font) can be adjusted by typing "zlib settingname = value" in the CLI. Type "zlib vars" in the CLI to see the current values. These values do not change when updating the script!
ALSO ALSO NOTE: If you are on a hunt, Olfaction will ignore ftf_olfact monsters in the bounty location, only olfacting bounty monsters. Outside of the bounty location, specified monsters will still be olfacted. Puttying will also take place against bounty monsters for bounties requiring up to puttybountiesupto items (default is 19). For puttying to be effective, you also need something that will fight your spooky putty monster after creating it. I recommend the Best Between Battle Script Ever!
Both Olfaction and puttying are sensitive to mafia's one-time olfaction/putty combat settings, so I'm fairly certain that including "special action" in your CCS is unnecessary.
How to use it:
- Download FirstThingsFirst.ash to your scripts directory.
- Also, make sure you have ZLib.
- Optionally, adjust any settings you wish to adjust (mentioned above).
- Include something like this at the top of your custom combat script:
Code:
[ default ]
1: consult FirstThingsFirst.ash
2: attack
- Remove Olfaction, Noodles, stealing, Creepy Grin, Cyrpt bosses, flyers, Cyrus, and GMoB from your existing ccs. They are no longer needed.
- ...
- Enjoy!
Changelog
5.29.08 - ver. 1.0 posted.
5.30.08 - ver 1.1 changes: added handling for the Big Book of Pirate Insults in Barrrney's Barrr.
6.09.08 - ver 1.2 changes: included automatic safe summoning of Pastamancer combat ghosts. Included Cyrpt mini-boss special item throwing. Bumped default threshold up to 4.
6.10.08 - ver. 1.3 changes: changed "get the jump on" to just "get the jump" due to a sword that sometimes messed things under.
9.17.08 - ver. 1.4 changes: edited the script so as to avoid borking on unknown monsters (thanks to Paulie Astaire for the fix).
11.24.08 - ver. 1.5 changes: no longer assumes you are safe against unknown monsters if your moxie is over 200. Added special handling for GMOB.
11.28.08 - ver. 1.6 changes: uses "safetyThreshold" property for per-user safety settings.
12.20.08 - ver. 1.7 changes: add support for Creepy Grin. Ask whether you'd rather use flyers or mirror in rare situation against GMOB when you have both but must pick one.
1.04.09 - ver. 1.8 changes: default to (facsimile) dictionary in the Chasm. Clear poison if you have anti-anti-antidotes and they get you in the first few rounds (thanks Bale!). Cast Salve on yourself if you need the HP (thanks dj_d!). Added sponge to olfacted monsters.
1.27.09 - ver. 1.9 changes: fix handling Olfaction of bounty and non-bounty monsters in the same zone (thanks tebee!). Add meat vortex for brigands to accommodate upcoming OCW change. Rearrange a few things to allow it to play nice when imported into other consult scripts.
3.12.09 - ver 2.0 changes: FTF should play nice with stealing and noodles combat "special" settings. You are not "in the clear" if you are Strangulated. Save a meat vortex in case you need one for the NS tower. Detect hobo monkey theft for use if imported into another CCS.
3.30.09 - ver. 2.1 changes: mafia tries to cast Lasagna Bandages through the skills URL rather than in-combat, causing an error. Use visit_url() rather than use_skill() for that particular skill.
4.25.09 - ver. 2.2 changes: use spooky putty on lobsterfrogmen during the quest if you don't have enough gunpowder.
4.26.09 - ver. 2.3 changes: move puttying to its own function. Add a few lines to putty a fithworm guard if you are on your last adventure of stench (commented out by default).
5.06.09 - ver. 2.4 changes: detect hobo sobriety for use by SmartStasis (ghost detection still needs work). Make poison removal behavior exactly match your combat setting. Swap order of mirror and flyers vs. GMOB with funkslinging.
5.13.09 - ver. 2.5 changes: finally, detect Gluttonous Green Ghost hunger! Don't ever cast Noodles if you're in the clear. Improved handling vs. GMOB in the event that you throw the flyers without Noodles and survive.
6.09.09 - ver. 2.6 changes: added a flyereverything option. If true (default), will throw flyers at everything unless you are a) on the battlefield, or 2) in the haunted bathroom. Attempt to use Noodles before flyering or insulting, even if in the clear. Moved insults into use_special_item(). Account for Hero of the Half-Shell when checking intheclear().
6.14.09 - ver. 2.7 changes: moved some functions around -- now requires ZLib. Now has once-daily version checking.
7.10.09 - ver. 2.8 changes: allow pickpocketing in Form of...Bird! Introduce framework for possible, eventual auto-olfaction/puttying.
7.25.09 - ver. 3.0 major update! Completely refactor Olfaction (and introduce puttying) of bounty monsters, by using the data file generated by bounty.ash. Now only reserves Olfaction for bounties if you are in the correct location. Use script settings rather than variables. Use as many miniboss combat items as you have, rather than just one.
8.06.09 - ver. 3.1 changes: Introducing smart PM ghost summoning! Now has individual logic for each ghost type, to decide whether or not to summon.
8.25.09 - ver. 3.2 changes: much simpler detection of when to steal. And a few additions for the Primordial Soup: add violent fungus to Olfaction list. Handle throwing base pairs at Cyrus.
11.7.09 - ver. 3.3 changes: added transparency for several more mafia settings: autoOlfact, autoPutty, and autoPotionID. Move olfacted/grin monster lists into ZLib settings. Don't require intheclear() for summoning PM ghosts. Handle GMoB and Cyrus with most of the same code (flyering or throwing the appropriate item, with funkslinging support).
11.28.09 - ver. 3.4 changes: fixed use of "monster monstername" for puttifaction. Move detection and response to gremlins with tools/megalopolis monsters with discs here.
12.30.09 - ver. 3.5 changes: abort if your rusty item gets slimed in the Slime Tube. Refactored special item function. Use skate decoys to get familiars if they are goals. Use cocktail napkins against clingy pirates if no clingfilm items are goals. Auto-ID spheres transparently with mafia setting. Use ZLib's new vprint().
1.23.10 - ver. 3.6 changes: use ZLib's new load_current_map() to get the bounty data. Always ID bang potions if you have more than one -- otherwise, follow the setting. "zombie waltzers" => "some zombie waltzers"
4.1.10 - ver. 3.7 changes: a frigton.
4.6.10 - ver. 3.8 changes: fixed embarrassing typo that crept in with other changes, causing intheclear() to always return true. Incorporated ASH's new item_drops_array() into monster value calculations. Fix detection of clingfilm goals when deciding whether to throw cocktail napkins at clingy pirates.
4.19.10 - ver. 3.9 changes: added Yellow Ray support against monsters specified in new setting ftf_yellow. Don't insult pirates from the F'c'le or beyond. Remove ghostname variable. Better pickpocketing calculations.
4.25.10 - ver. 4.0 changes: has_goal() now returns a float. If olfacting for goals, olfact the monster with the greatest chance of yielding goals. Don't flyer if flyeredML >= 10000.
4.08.11 - They day has arrived: FTF has finally been obsoleted by the new SmartStasis. Removed version checking from FTF, since no updates will follow.
Attachments
Last edited: