Skip to content
TORNLIFE More

[Script] Payday made easy

Started by Lugburz [2386297] on in Tools & Userscripts.

35 replies · 1.22k views · thread synced · 6 days ago · View on torn.com
About this thread

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

Counted by TornLife from the archived posts.

Archived posts
36
Discussion span
→
Authority score
58 / 100
Historical score
27 / 100
Story score
42 / 100
Engagement score
72 / 100

People posting, likes and official posts are not counted for this thread yet: on threads longer than one page they come from a periodic pass over the archive, which has not covered it.

Most-liked replies

Lugburz [2386297]
Anyone who has ever had to pay out PA cash knows how tedious the process is: you need to open PA logs one by one, memorize the participants, calculate the payouts, then go to the pay day tab, check the participants, enter the pay amount...
This script skips all that and allows you to go to the pay day page and pay the PA participants with 2 mouse clicks. You don't need to check any boxes or input the cash amount - everything is done for you. The payouts are calculated automatically as (totalEarnings - factionTax) / 4.

Hope the script will save you some time, it will definitely do that for me!

https://github.com/f2404/torn-userscripts/raw/master/faction_payday_made_easy.user.js

Version 0.3 of the script allows for a lot of customizations in the UI - all your setting will be saved in the browser local storage.
The script works with PAs and PHs out of the box:
// Crimes to pay out: array of integers. PA is 8, PH is 7, etc.
const CRIMES = [8, 7];

Step 1. Click "Go to Pay Day" in the crimes page
[image: i.imgur.com]

OR
click individual links to adjust people's balances via Give to User page
[image: i.imgur.com]

Step 2. Click "Pay" at the top the Pay Day page (no need to check any checkboxes or input anything):
[image: i.imgur.com]
Johnox [66901]
// Crimes to pay out: array of integers. PA is 8, PH is 7, etc.
const CRIMES = [8];

Changing this number will do atleast part 1 of what you are asking for i believe
cankles [2137519]
I know some PAs get paid out as a percentage based on your position in the crime. People might like that feature but otherwise really neat!
Dyno [1043377]
Thanks I did this, but also PA & PH percentage payouts are different, so need to be able to have 2 different options
DaBombz [2238094]
We split the PA payout team leader gets 35%, number 2 gets 25%, 3 20% 4 15% and the remaining 5% goes to faction. Is there a code for that or can you only split the payout evenly?
Lugburz [2386297]
Only evenly at the moment.

To address this and also Dyno's request above, I will have to come up with an elaborate UI that will allow for different settings per crime type and flexible payout schemes.
Lugburz [2386297]
How it's supposed to work is it should subtract faction tax from 100% and then divide the remainder by 4 for PAs: (100% - tax) / 4.
So, for faction tax of 20%, the even distribution for the 4 people should be 20% each.


Thanks for the report! That's now fixed in 0.3.2
Braxlaw [2319642]
I love this!
It would be great to have a free input for the faction tax instead of a pre defined list but thats only interesting for us cause of our PH split.
Jibun [1842699]
Looks great! Thank you!

My case is quite particular so I will understand if you dont think it's worth adding something like this:
Our faction takes just 10 million from the 250 million results, and 20 million from the 300 million results.
Those numbers translate into 4% and 6.6666...%.

I was thinking one more option/choice regarding the faction tax: is it in %? Or is it a fixed amount, x millions? Then I could choose the second option, input the amount, and the rest would continue the same as it is.

Again, I don't know if anyone else has this faction tax set like this, but if you would consider adding such an option maybe the script would be even... nicer :)