Torn Chain Payout Calculator

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

作者
Alx Spiker
日安装量
0
总安装量
1
评分
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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址