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 item | Type | Default | Description |
|---|---|---|---|
| State | Toggle | On | Master switch of the script. When off, all three modules are inactive. |
| Save for buyback | Slider | 30 min | Time 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 item | Type | Default | Description |
|---|---|---|---|
| State | Toggle | On | Enables/disables the auto-buy-from-quick-buy mode. |
| Buy only near shop | Toggle | Off | Buy items only when the hero is standing near a shop. |
| Quick buy in strict order | Toggle | Off | Follow 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 shop | Toggle | On | Use the courier as a purchase point if it is near a shop. |
Near deathโ
| Menu item | Type | Default | Range | Description |
|---|---|---|---|---|
| State | Toggle | Off | โ | Enables/disables the buy-consumables-before-death mode. |
| HP threshold | Slider | 150 | 1โ500 | Buy items if the hero's HP is below this value. |
| HP% threshold | Slider | 20 | 1โ40 | Buy items if the hero's HP percentage is below this value. |
| Enemy range | Slider | 600 | 0โ2000 | Buy items only if an enemy is closer than this distance. |
| Items | Item selector | attribute_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 item | Type | Default | Description |
|---|---|---|---|
| item_smoke_of_deceit | Hotkey | Not set | Buy Smoke of Deceit. |
| item_blood_grenade | Hotkey | Not set | Buy Blood Grenade. |
| item_aghanims_shard | Hotkey | Not set | Buy Aghanim's Shard. |
| item_ward_sentry | Hotkey | Not set | Buy Sentry Ward. |
| item_ward_observer | Hotkey | Not set | Buy Observer Ward. |
| item_tpscroll | Hotkey | Not set | Buy TP Scroll. |
| item_enchanted_mango | Hotkey | Not set | Buy Enchanted Mango. |
| item_flask | Hotkey | Not set | Buy Flask. |
| item_clarity | Hotkey | Not set | Buy Clarity. |
| item_tango | Hotkey | Not set | Buy Tango. |