/BattleINF-Script-To-End-All-Scripts

An advanced script which can play the game Battle INF for you.

Primary LanguageJavaScriptMIT LicenseMIT

Halithor's Script to End All Scripts

An advanced script which handles item management for the game Battle INF (http://battleinf.com). Free for anyone to use or modfiy. Contains a lot of utility functions which are useful for anyone trying to write their own script.

Features:

  • Sells items below a threshold.
  • Crafts acquired items into items in your possession, prioritizing equipped items, then inventory items.
  • Equips items that are upgraded to be better than currently equipped items.
  • Sells items that have reached maximum plus level. Can either send them to the market, or just plain sell them.
  • Dips all of your items into the fountain, automagically, to increase the age modifiers.
  • Can help manage inventory by removing duplicates from it.
  • Can be used to keep a number of inventory slots open.

Note: the second number, after the item rarity, is the item modifier. This is based on the location you found this item. An items overall strength is based on rarity + ( 2 * mod ). This strength is used to prioritize items to keep and upgrade.

How to use

  1. Log into your account on Battle Inf.
  2. Click the "Scripts" tab on the top menu.
  3. Paste the contents of this script into the text box.
  4. Hit save.
  5. Profit!

Settings

Here's a quick rundown of the settings and what they do. The default stats are designed to be pretty safe. Edit these to tune to your current game progress.

Setting Type Description
sellBelow int This is the RARITY below which we sell an item without even looking at it when we get it. Exclusive. This is your most basic of script features.
keepAbove int This is the RARITY above which we never directly sell. Exclusive. Send to Market overrides this.
sendToMarketAbove int Above this rarity, items that reach max plus value will be automagically sent to the market. Overrides the keepAbove property. Does not set a sell price.
openInvSlots int How many inventory slots to try to keep open at all times. The script will attempt to sell the lowest rarity and mod items in your inventory to open these slots.
keepAge int This is a safety setting. The script will never sell any items above this age. Note it is in ageLevel (dips in the well), so 6 is two days (Master).
craftInventory bool Whether or not to upgrade items in your inventory. The script will always try to upgrade equipped items first, then try items in your inventory.
sellDuplicateInventory bool Whether or not to sell duplicate items. WARNING will sell a lot of items in your inventory. This makes sure that you only have a single item of type in your inventory (Sword, Bow, Helmet, etc), and sells every other item. It will sell the lowest strength item in your inventory, which is based on zone and rarity. Useful if you have a very low number of inventory spots.
forceEquipHighestStrength bool Force your inventory to always equip items based on rarity before actual stats. This is useful if craftInventory is set to false.