Skip to content
TORNLIFE More

[Script/PDA] Customizable Bazaar Auto Filler

Started by Weav3r [1853324] Helper on in Tools & Userscripts.

103 replies · 3.05k views · thread synced · 4 days ago · View on torn.com

Posts archived: 104 / 104 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Kukage [1937884]

I might have some progress on solution for PDA, but just to warn, it isn't thoroughly tested.

 

In the script, there is a const called lastUpdatedDate (I think line 1028) and the issue I saw was that lastUpdatedTime was being treated as a string instead of a number when constructing the Date. Making the following change fixed this for me.

 

Change: 

const lastUpdatedDate = new Date(lastUpdatedTime);

 

To:

const lastUpdatedDate = new Date(+lastUpdatedTime);

 

Afterwards I noticed that in the Manage page, checking the box didn't update the price. It looks like on Mobile, it's still calling updateManageRow instead of updateManageRowMobile. It won't be the cleanest approach but for now, I cheated and changed updateManageRow to be able to find the price field on Mobile.

 

On line 499 I changed:

const $priceInput = $row.find(".price___DoKP7 .input-money-group.success input.input-money").first();

 

To:

const $priceInput = $row.find("* .input-money-group.success input.input-money").first();

 

I hope this helps! 

Shinich [3816912]

Authentication failed ,(⁠〒⁠﹏⁠〒⁠)

I tried logging in with restricted and public API, still authentication failed. I'm using PDA Torn app, on mobile, please help, ಥ⁠‿⁠ಥ

Weav3r [1853324] Helper

For some it does, for others it doesn't. I generally recommend not trying to use it with PDA since it seems to not work more often than it does.

Merisyn [3576486]

with the "Clamp minimum price to Market Value" if i have my other settings to post $1 under lowest bazaar. will it post OVER market if bazaars are above market value or will it only post at market value?

Erilaz [3616238]

I have a suggestion that may help with choosing an index, not sure if it will be worse from a performance point of view:

 

Instead of picking index 1 or  2, you could compare them and if index 1 (the cheapest) is less than X% below index 2, then use index 1. Otherwise, use index 2.

 

This would prevent you from accidentally selling well below true value due to someone listing an item for very cheap at the same time that you pull prices, but it would also let you be the cheapest seller in cases where this does not happen, with your tolerance configurable via the X%.

 

Great tool R+

OldGoat [2814495]

is anyone else having issues today with this otherwise life changing bazaar tool? Dont have access to the bazaar settings overlay?

DirtyHooker1978 [3126358]

@Weav3r is there a way to add a box at the very top to hit to update the prices daily. I keep a lot of stuff in there. So it would be easier to unchecked a couple things vs checking everything daily! Hope that made sense!

cdr-shepard [4083371]

Great script. Works like a charm.

I have a suggestion, when using the dollar pricing methon, instead of qty being filled to maximum of inventory, it fills only 1 when in dollar pricing mode