[Script] Bazaar Auto Price Filler | Tools & Userscripts | TORN

[Script] Bazaar Auto Price Filler

​

    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 379
    • Karma: 1,045
    • Last Action: 3 hours
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 22:43:27 - 19/08/23 (3 years ago)
    |
    Last replied 10:00:42 - 21/10/26 (11 days ago)

    Torn Bazaar Filler

     

    What it does

    Adds a Fill button to every item on your bazaar's Add Items page (and an Update button on Manage Items). One click fills in the price and the quantity for you. Click it again (it turns into Clear) to empty the row.

     

    Features

    • One-click pricing: fills the cheapest item market price minus $1 by default.
    • Your own price formula: a fixed amount, a percentage, skip the cheapest listings, or use market value.
    • Live bazaar prices from weav3r.dev: cheapest, Nth cheapest, average or median bazaar. No API key needed for these.
    • Combine price sources to set a floor, undercut whichever is cheapest, or keep a price inside a range.
    • Quantity modes: list everything, keep some back, list a fixed number, or never list.
    • Per-category settings: a different price and quantity for Drugs, Clothing, Candy, Melee and so on.
    • Favourites and exclusions: star the items you sell often, block the ones you never want filled.
    • Fill All: fills every favourite on the page, including rows that load as you scroll or switch category.
    • Price check bubble: warns you when your price is far below the competition.
    • Single-copy items such as weapons and armour get their checkbox ticked for you.
    • Settings window that checks what you type before saving it.
    • "What's new" popup after each update.
    • Works on desktop (Tampermonkey/Greasemonkey) and in TornPDA.

     

    Getting started

    1. Install the script (link at the bottom).
    2. Open your bazaar and click Fill on any item.
    3. The first time, the script asks for a Public API key. It is only used to read item market prices and item categories.

     

    Settings

    Open the Settings window in any of these ways:
    - click the ⚙ cog on the Fill All bar,
    - hold any Fill/Update button for 3 seconds,
    - or pick Open Settings in your userscript manager's menu.

    It holds your default price, default quantity, API key and per-category overrides, plus buttons to clear exclusions and to reset learned item categories.

     

    Price formula

    The filled price is {chosen price} + {delta}. The delta can be a fixed amount (-1, 0, +420) or a percentage (-1%, +69%). Add something in [brackets] to choose which price it is based on.

    Item market (the default)

    -1 : cheapest listing minus $1
    -5% : cheapest listing minus 5%
    -1[1] : skips the cheapest listing, uses the 2nd minus $1
    -5%[3] : skips the 3 cheapest, uses the 4th minus 5%

    Market value

    -1[market] : Torn's market value minus $1
    [market] : exactly market value

    Player bazaars (live data from weav3r.dev, no API key needed)

    -1[bazaar] : cheapest bazaar minus $1
    -1[bazaar:2] : 3rd cheapest bazaar minus $1
    -5%[bazaar:avg] : average bazaar price minus 5%
    [bazaar:median] : the middle bazaar price

    Stale, sponsored and silly-cheap bazaar listings are ignored, so one troll price can't drag you down. If an item has no bazaar price, the script falls back to the item market.

    Combining prices

    List several formulas and the script prices all of them, then picks one:

    -1[bazaar] | -1 : fills the higher of the two, so the item market acts as a floor under bazaar prices
    max(-1[bazaar], -1) : the same thing, written out
    min(-1[bazaar], -1) : fills the lower one, to undercut whichever is cheapest
    min(max(-1, +10%[market]), -1[14]) : a price range: undercuts the cheapest listing, but never goes below 10% over market value and never above the 15th listing minus $1

    You can list more than two, like -1[bazaar] | -1 | [market], and put min() and max() inside each other as deep as you like.

     

    Quantity

    max : list all of them (default)
    max-1 : keep one back (max-3 keeps three)
    1 : always list exactly one
    skip : never list

     

    Per-category settings

    In Settings, click + Add category to give a category its own price formula and quantity, for example -5%[market] for Clothing, or skip for Special. Any category works, from Melee and Drug to Candy and Collectible. A blank field falls back to your defaults.

     

    Favourites, exclusions and Fill All

    Click the star next to Fill/Update to cycle an item between:

    ☆ : normal
    ★ : favourite, filled by Fill All
    ⊘ : excluded, never filled by Fill All, and a manual Fill warns you first

    The floating Fill All ★ bar fills every favourite on the page, on both Add Items and Manage Items, including rows that appear as you scroll or switch category. Click Stop fill to stop. Drag the bar anywhere; drop it at a screen edge to shrink it out of the way. It remembers where you left it.

     

    Price check bubble

    After a fill, a percentage bubble next to the price compares your price to the 3rd cheapest listing. For example, if your price is $5 and the 3rd cheapest is $100, the bubble shows 5%.

    50% or less : red bubble
    51-75% : yellow bubble
    76-95% : green bubble
    over 95% : no bubble

     

    TornPDA

    Works in TornPDA. Turn off PDA's built-in "Bazaar Auto Price" script and set the injection time to "END". To open Settings, hold a Fill/Update button for 3 seconds or tap the ⚙ cog on the Fill All bar. No code editing needed.

     

    Download

    Needs Tampermonkey or Greasemonkey on desktop:
    https://greasyfork.org/en/scripts/473470-torn-bazaar-filler

     

    Screenshots


    Last edited by Silmaril on 18:37:28 - 05/10/26 (27 days ago)
    • Fuckery [2653035]
    • Role: Civilian
    • Level: 100
    • Posts: 1,845
    • Karma: 6,883
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:12:26 - 19/08/23 (3 years ago)
    Post link copied to clipboard Copy post link
    This is amazing and works fine on torn pda

    R+

    3bcd74f3-dc95-45bc-99b3-4e95dbc3ac14-2653035.png

    • Dooby [2605556]
    • Role: Civilian
    • Level: 100
    • Posts: 2,546
    • Karma: 1,438
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:34:57 - 20/08/23 (3 years ago)
    Post link copied to clipboard Copy post link
    Silm is a beast!!

    • Bones75 [2890007]
    • Role: Civilian
    • Level: 75
    • Posts: 37
    • Karma: 16
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:16:35 - 20/08/23 (3 years ago)
    Post link copied to clipboard Copy post link
    Only problem, if someone makes a mistake while not using this script, and they post stuff for $10, you might just post you edvd's at $9, so always make sure you check before you post. Peace all.
    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 379
    • Karma: 1,045
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:57:26 - 20/08/23 (3 years ago)
    Post link copied to clipboard Copy post link

    Bones75 [2890007]

    Only problem, if someone makes a mistake while not using this script, and they post stuff for $10, you might just post you edvd's at $9, so always make sure you check before you post. Peace all.
    Yes, that's why u should compare average price for last day with the one it autofilled, luckily both of these are on screen normally (average one coming from torntools).
    But something can be done to warn users about this, u're right, I'll think something about making warnings if the price is way less than average in the next update.
    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 379
    • Karma: 1,045
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:25:30 - 20/08/23 (3 years ago)
    Post link copied to clipboard Copy post link
    Updated script to help those who cancelled apiKey prompt & wasn't able to input another.
    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 379
    • Karma: 1,045
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 01:43:26 - 21/08/23 (3 years ago)
    Post link copied to clipboard Copy post link
    Updated to 0.5 - now has warning bubbles if price is too low (less or equal than 50% of 3rd lowest price) red marker, low (51-75%) yellow marker, ok (76%-95%) green marker, ok (96%+) no marker.
    • Dooby [2605556]
    • Role: Civilian
    • Level: 100
    • Posts: 2,546
    • Karma: 1,438
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 02:41:11 - 21/08/23 (3 years ago)
    Post link copied to clipboard Copy post link
    damn beast MAN! Silm you are my hero

    • masheen [2625139]
    • Role: Civilian
    • Level: 100
    • Posts: 5,894
    • Karma: 8,743
    • Last Action: 3 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:21:16 - 21/08/23 (3 years ago)
    Post link copied to clipboard Copy post link
    Really well-made script, really took the other one and added useful stuff on top.

    ◉_◉

    • Einhander [2675624]
    • Role: Civilian
    • Level: 100
    • Posts: 456
    • Karma: 1,341
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:50:03 - 25/08/23 (3 years ago)
    Post link copied to clipboard Copy post link
    Killer script. Thanks boss
    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 379
    • Karma: 1,045
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:45:19 - 25/08/23 (3 years ago)
    Post link copied to clipboard Copy post link
    Updated to v0.5.1
    Made a little fix to make it work on Firefox's Tampermonkey.
    • Bones75 [2890007]
    • Role: Civilian
    • Level: 75
    • Posts: 37
    • Karma: 16
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:57:04 - 25/08/23 (3 years ago)
    Post link copied to clipboard Copy post link
    Excellent!! Works well now. Thank you!
    • Weav3r [1853324]
    • Role: Helper
    • Level: 99
    • Posts: 2,460
    • Karma: 7,184
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:30:09 - 03/09/23 (3 years ago)
    Post link copied to clipboard Copy post link
    Love it! Would it be possible to make it work on the manage bazaar page as well?

    Owner/Developer of weav3r.dev

     

    Visit my PRICELIST, set a TRADE, or view my BAZAAR

    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 379
    • Karma: 1,045
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:32:08 - 03/09/23 (3 years ago)
    Post link copied to clipboard Copy post link

    Weav3r [1853324]

    Love it! Would it be possible to make it work on the manage bazaar page as well?
    Sure, just to update the prices, right?
    • Weav3r [1853324]
    • Role: Helper
    • Level: 99
    • Posts: 2,460
    • Karma: 7,184
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:50:04 - 03/09/23 (3 years ago)
    Post link copied to clipboard Copy post link

    Weav3r [1853324]

    Love it! Would it be possible to make it work on the manage bazaar page as well?

    Silmaril [2665762]

    Sure, just to update the prices, right?
    Yep exactly. Just having the fill button there in case market changes, making it easy to change the bazaar to match on the fly.

    Owner/Developer of weav3r.dev

     

    Visit my PRICELIST, set a TRADE, or view my BAZAAR

    • Good [2545616]
    • Role: Civilian
    • Level: 100
    • Posts: 428
    • Karma: 155
    • Last Action: 4 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:45:48 - 04/09/23 (3 years ago)
    Post link copied to clipboard Copy post link
    can you let us choose the bazaar price from lowest to the xth lowest, with price +/- num/percentage?
    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 379
    • Karma: 1,045
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:47:50 - 04/09/23 (3 years ago)
    Post link copied to clipboard Copy post link

    Good [2545616]

    can you let us choose the bazaar price from lowest to the xth lowest, with price +/- num/percentage?
    Can you please elaborate on what do you mean?
    • King108 [2798364]
    • Role: Civilian
    • Level: 76
    • Posts: 2,407
    • Karma: 639
    • Last Action: 37 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:14:42 - 04/09/23 (3 years ago)
    Post link copied to clipboard Copy post link
    I'll try it, if it works you saved me some time, like a LOT of time

    Edit: it worked, and I added 26k+ of junk I had in a minute. It's as good as you think it is
    Last edited by King108 on 09:33:11 - 05/09/23 (3 years ago)
    • AsyrafFile [1772980]
    • Role: Civilian
    • Level: 60
    • Posts: 78
    • Karma: 70
    • Last Action: 5 days
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:26:16 - 05/09/23 (3 years ago)
    Post link copied to clipboard Copy post link
    If I using this on Torn PDA, I need to disable in-build auto bazaar script right?
    Last edited by AsyrafFile on 07:44:50 - 05/09/23 (3 years ago)
    <-- Please report this URL to -Clansdancer if you see it -->
    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 379
    • Karma: 1,045
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:34:02 - 05/09/23 (3 years ago)
    Post link copied to clipboard Copy post link

    AsyrafFile [1772980]

    If I using this on Torn PDA, I need to disable in-build auto bazaar script right?
    I have it disabled, but I think u can leave it enabled, AFAIK it doesnt conflict with mine.
    You can always turn it off, if something is off.
    Will test it later when I land.

    UPD: yeah, it works fine with both enabled.
    Last edited by Silmaril on 11:00:23 - 05/09/23 (3 years ago)
Reply
Thread Title: