Torn Chain Payout Calculator

Calculates payouts, generates reports, and manages API keys in compliance with Torn's ToS. Supports auto-config for Torn PDA.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Alx Spiker
日安装量
1
总安装量
11
评分
0 0 0
版本
1.0
创建于
2025-07-21
更新于
2025-07-21
大小
33.3 KB
许可证
MIT
适用于

Torn Chain Payout Calculator

This guide explains how to install, use, and reconfigure the Torn Chain Payout Calculator UserScript. The script helps calculate chain payouts in the Torn game, generate reports, manage API keys, and mark chains as paid, all in compliance with Torn's Terms of Service. It supports auto-configuration for Torn PDA users.

Installation

  1. Install Tampermonkey extension from your browser's store (Chrome, Firefox, etc.).
  2. Create a new script in Tampermonkey by clicking the extension icon > "Create a new script".
  3. Paste the script code into the editor (obtain the code from a trusted source).
  4. Save and enable the script. It will activate on matching Torn pages: war.php?step=chainreport and factions.php.

Reconfiguration

To customize the script, edit it in Tampermonkey's editor. Here are key areas to reconfigure:

  • Xanax Costs: Change the constants in the setupChainReportPage function. For example, set XANAX_COST to your faction's cost (default: 840000) and ATTACKS_PER_XANAX to the attacks per Xanax (default: 10). This affects reimbursement calculations.
  • API Key Management: The script prompts for a Limited Access API key (faction: chainreport, balance). For PDA users, it auto-sets to '###PDA-APIKEY###'. To change, use the "Manage API Key" button on the chain report page or edit storage via browser dev tools.
  • Storage Keys: Payout status is stored as 'payout_status_[chainID]'. Clear via Tampermonkey storage if needed.
  • UI Customizations: Modify the style.textContent string to change colors, layouts (e.g., button colors like #4CAF50 for green).
  • Advanced: Adjust ICS formula: attacker.ICS = (attacks * 5) + (respect * 100). Edit this in calculateAndDisplayPayouts for custom scoring.

After changes, save and reload the Torn page to apply.

Usage

  • On chain report page: Click "Calculate Payout" button (bottom-left), enter BCR, view table/reports. Use buttons to copy data, mark paid.
  • On factions page: Paid chains show [PAID] indicator in news.
  • Reports: Click player names for individual HTML reports; use "Copy Faction Email" for group summary.