-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Various tools and other bits and pieces for Torn City, a "text based" browser RPG game by Chedburn Networks LTD, development based in the UK.
For those who don't want to micro manage their list profiles, or want a fight button for other profiles as well as RApest profiles. RApest compatible.
Allows, after mugging, to add the profile to either the Friendslist or Blacklist. If the edited comment contains ATM then when that list is shown, and their status is "OK", then a button hot-linked to attack will be shown. If the "edit" text field begins with ATM then the profiles will listed alpha-numerically, with smaller numbers "space" padding should be added to the left, before the number.
For example if I where to successfully attack, defeat, then mug profiles.php?XID=1 a series of buttons would appear on the following Attack Log page that allows adding the profile directly to either the Friendslist (light-grey +) or the Blacklist (black-ish +), manually adding the comment "ATM - 100Mil limit". Some time later (after they were out of hospital), when I viewed the list, at the end of the name tag image (in this case Chedburn), there would be a button with the mouseover text "RApest: Use ATM". If I were to then click that button, I would be taken to the profile attack page (NOT their profile info page).
For "Fair Fight" ReChain button usage, the "edit" text field must contain FF: n, eg. "FF: 4.10". Where "FF:" stands for "Fair Fight x3.00", and "n" (in this example "4.10") is the value of faction respect after a successful LEAVE attack (the attack type needed while chaining, as it gives the most respect), from your first attack. The respect value can be gained from the Faction Attack Log page by clicking on the first (left most) sub-panel insert, under the Faction Control Panel (row of icons). The actual respect value will decrease with time, greater as Battle Stats improve, so the value "n" is for your reference (the same as with ATM reference values).
Profiles should be removed completely (deleted button) from the Friends/Black list when both ATM and FF: reference values are "too far" from there actual values. To remove a ReChain button simply remove the FF: n content from the "edit" text field, and from your "Fair Fight x3.00 Chain Attack List" (if you maintain one). To remove an ATM button simply remove the ATM - n content from the "edit" text field. Remember, only use LEAVE while chaining, even from "Use ATM" attack buttons.
"edit" text field content has enough room to contain both ATM - n and FF: n content, plus other useful text, eg "ATM - 110K limit Hard FF: 4.10". Profiles will be ordered alpha numerically according to the contents of the "edit" text field, from left to right, so if "ATM - 110K limit " were removed in the previous example, "Hard" would dictate its position in the profile list, not "FF: 4.10". Remember that "space" padding allows proper ordering of numbers, eg " 4.10" comes before "14.10", but "4.10" will come after.
(when finished) will create a object at the "document" level called tc containing short name versions of all user data in page (without need for API key) and optionally tornCity long name version of the same thing. the idea is to be able to have a generic "tc" object available to any script as an include, or be able to use the code as base for your own script.
Provides an in-game list of previous attacks via Torn API, hot-link profiles to attack page. Also allows export to external url, an attack log, and if in a faction, "respect value" and "fair fight" multiplier information. Require user have access to a PHP server. (unfinished at this time)
Copyright 2018+ Paul Wratt