Skip to content
TORNLIFE More

Times Jailed Script?

Started by LampFlag [3644669] on in Tools & Userscripts.

3 replies · 91 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 4 / 4 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
4
Discussion span
→
People posting
3
Likes on archived posts
2
Authority score
34 / 100
Historical score
15 / 100
Story score
26 / 100
Engagement score
46 / 100
LampFlag [3644669]

I am really getting into arresting - I am keen to try and find a user script (to try to write one) that would provide a Quick Look (like on the HoF user table) at the time it has been since a user has last been jailed (ie. No. Of days)

 

Anyone know of anything?

 

thanks

 

Allenone [2033011]

You can use the personalstats endpoint to get the amount of times someone has been jailed.

https://api.torn.com/v2/user/3644669/personalstats?stat=jailed

 

But it would be quite tedious and use up a lot of API calls to go backwards with the API using timestamps to find the last time that number increased.

 

You'd be better off looking at the change on their stats page.

Omanpx [1906686]

Unfortunately, this is no longer a viable avenue - since stats update daily, your target might have been arrested today and you would only see it reflected in the API tomorrow.

LampFlag [3644669]

Thanks for the responses. 

I am checking the stats page manually for each user for now. Even though now the stats aren’t live, it would still be helpful to see a days since last jailed number next to a profile based upon stats pulled from that user.

 

but if it will use lots of api calls and not be worth it then it might not be an option!