Skip to main content

Gold Spender

Automatically spends excess gold โ€” buys items from quick buy, restocks consumables before death, and lets you assign keys to instantly purchase specific items.


Location in the menuโ€‹

Utility (ะฃั‚ะธะปะธั‚ั‹)  โ†’  Gold spender (ะขั€ะฐั‚ะฐ ะทะพะปะพั‚ะฐ)

What it doesโ€‹

The script manages gold in three independent modes: it automatically buys items from quick buy, buys consumables when the hero is about to die, and lets you buy a specified item with a single key. All modes respect the "Save for buyback" setting โ€” gold reserved for buyback and potential death losses is not spent.

Buyback reserve logicโ€‹

The Save for buyback parameter sets a time threshold in minutes. Before that point in the game the script spends gold freely. After it, the buyback cost and potential gold lost on death are subtracted from the available gold, and the script works only with the remainder.


Auto Buyโ€‹

Automatically buys items from the Quick Buy panel as soon as enough gold is accumulated. It works without any action from the player โ€” just add the items you need to Quick Buy in the game interface.

  • By default items are bought in any order โ€” first the ones you have enough gold for.
  • With Quick buy in strict order enabled, the script goes strictly down the list: if there isn't enough gold for the first item, the rest aren't bought either.
  • With Buy only near shop enabled, the purchase happens only when the hero is standing near a shop. If the option is off, the script can use the courier as a "remote shop".
  • With Include courier for shop enabled, the courier counts as an available purchase source if it is near a shop.

Near deathโ€‹

Automatically buys consumables from the selected list when the hero is on the brink of death: HP has dropped below the threshold and enemies are nearby. Trigger logic:

  • the hero's HP is below the HP threshold value or the HP percentage is below HP% threshold โ€” both conditions are checked with an OR: satisfying at least one is enough;
  • within Enemy range of the hero there is a living enemy hero, creep or Spirit Bear;
  • the hero is alive and cannot reincarnate (Aegis/Reincarnation not in effect);
  • available gold (minus the reserve) is greater than zero;
  • the resulting spending won't drop gold below the death loss level โ€” the script won't waste money if it would be lost anyway.

The script won't buy items it already has in abundance:

  • tango, flask, clarity, blood grenade, mango, raindrop โ€” only in the first 10 minutes of the game;
  • smoke โ€” if the hero already has at least one in the inventory;
  • sentry โ€” if charges are already โ‰ฅ 2;
  • dust โ€” if the enemies have invisibility and the hero already has โ‰ฅ 2 charges; without enemy invisibility it isn't bought at all.

The list of items to buy is selected via Items (ImageSelector). The special "plus" icon (attribute_bonus) adds all items from the current quick buy to the list.


Purchase by keysโ€‹

Lets you assign a key to instantly purchase a specific item. Supported items:

  • Tango, Clarity, Flask, Enchanted Mango, TP Scroll
  • Observer Ward, Sentry Ward
  • Aghanim's Shard, Blood Grenade, Smoke of Deceit

When the key is pressed, the item is bought if there is enough gold (accounting for the buyback reserve) and the item is in stock.


Settingsโ€‹

Mainโ€‹

Menu itemTypeDefaultDescription
StateToggleOnMaster switch of the script. When off, all three modules are inactive.
Save for buybackSlider30 minTime in minutes: after this point the script reserves gold for buyback + death losses and works only with the remainder. Range: 0โ€“60.

Auto Buyโ€‹

Menu itemTypeDefaultDescription
StateToggleOnEnables/disables the auto-buy-from-quick-buy mode.
Buy only near shopToggleOffBuy items only when the hero is standing near a shop.
Quick buy in strict orderToggleOffFollow the strict order of the quick-buy list: don't move on to the next item if there isn't enough gold for the current one.
Include courier for shopToggleOnUse the courier as a purchase point if it is near a shop.

Near deathโ€‹

Menu itemTypeDefaultRangeDescription
StateToggleOffโ€”Enables/disables the buy-consumables-before-death mode.
HP thresholdSlider1501โ€“500Buy items if the hero's HP is below this value.
HP% thresholdSlider201โ€“40Buy items if the hero's HP percentage is below this value.
Enemy rangeSlider6000โ€“2000Buy items only if an enemy is closer than this distance.
ItemsItem selectorattribute_bonus on, the rest offโ€”List of consumables to buy. The "plus" icon (attribute_bonus) means the items from the current quick buy.

Purchase by keysโ€‹

Menu itemTypeDefaultDescription
item_smoke_of_deceitHotkeyNot setBuy Smoke of Deceit.
item_blood_grenadeHotkeyNot setBuy Blood Grenade.
item_aghanims_shardHotkeyNot setBuy Aghanim's Shard.
item_ward_sentryHotkeyNot setBuy Sentry Ward.
item_ward_observerHotkeyNot setBuy Observer Ward.
item_tpscrollHotkeyNot setBuy TP Scroll.
item_enchanted_mangoHotkeyNot setBuy Enchanted Mango.
item_flaskHotkeyNot setBuy Flask.
item_clarityHotkeyNot setBuy Clarity.
item_tangoHotkeyNot setBuy Tango.