DeletedUser110650
Guest
- Author
- Nineza
- Contributors
- N/A
- Quickbar Entry
-
javascript: var format = "{DefName} {DefCoord} [{DefTroopsRemain}] Wall: {Wall}";
void($.getScript("http://pastebin.com/raw.php?i=TcBzhfKF", function(){ rename(format); }));
- Public?
- Public
Again, not really my idea (for the name)... Nineza is the name I tend to use for my usernames nowadays, but this account doesn't have that name.
Uh... Yeah. It's a report renamer. It should work... hasn't been tested extensively, but definitely works somewhat...
The tags:
{ReportID} - Report ID (e.g. 12221212)
{AtkName} - Attacker's Player Name (e.g. Nineza)
{AtkID} - Attacker's Player ID (e.g. 111223)
{AtkCoord} - Attacker's Village Coords (e.g. 555|444)
{AtkVilName} - Attacker's Village Name (e.g. 001)
{AtkVilID} - Attacker's village ID (e.g. 1221)
{AtkVilK} - Attacker's K/continent (e.g. K53)
{DefName} - Defender's Player Name (e.g. Throne3d)
{DefID} - Defender's Player ID (e.g. 222113)
{DefCoord} - Defender's Village Coords (e.g. 444|555)
{DefVilName} - Defender's Village Name (e.g. 002)
{DefVilID} - Defender's village ID (e.g. 2112)
{DefVilK} - Defender's K/continent (e.g. K51)
{Distance} - Distance between attacker and defender (e.g. 156.98)
{Resources} - Resources of the defending village (e.g. Wood:397400 Clay:397400 Iron:397440)
{Wood} - Wood of the defending village (e.g. 397400)
{Clay} - Clay of the defending village (e.g. 397400)
{Iron} - Iron of the defending village (e.g. 397440)
{AtkTroopsOriginal} - Attacker's original troops (e.g. Scouts:50 LC:25)
{AtkTroopsLoss} - Attacker's troop loss (e.g. Scouts:1 LC:3)
{AtkTroopsRemain} - Attacker's remaining troops (e.g. Scouts:49 LC:22)
{DefTroopsOriginal} - Defender's original troops (e.g. Spears:5 Scouts:10)
{DefTroopsLoss} - Defender's troop loss (e.g. Spears:5 Scouts:8)
{DefTroopsRemain} - Defender's remaining troops (e.g. Scouts:2)
{Cleared} - Whether the defender was cleared (e.g. Cleared; e.g. [blank])
{%Lost} - The percentage of troops the attacker lost (e.g. 5.3%)
{%Killed} - The percentage of troops the defender lost (e.g. 86.7%)
{%Hauled} - The percentage of resources taken versus those left in village (e.g. 0.1%) 1760/1192240
{%OfHaul} - The percentage hauled of maximum possible to haul with remaining troops (e.g. 100%)
{Wall} - The level of the wall (after the attack) (e.g. 2)
{Loyalty} - The loyalty of the defending village (after the attack, if visible) (e.g. 56 or ?)
The script
(It's been minified... so it looks ugly...)
Instructions
1. Copy the script somewhere (e.g. notepad).
2. Change the "format" variable as you please (the bit inside the quote marks after "var format = ") for what to rename the reports to.
3. Open up the reports (this thingy doesn't use AJAX itself, I'm afraid, so you'll have to open each report individually) - I suggest you use something like Opera Snaplinks to do this...
4. Run the script (from bookmark, quick-bar or console...).
5. See the report having been renamed (hopefully)
Extra notes
Uh... If you come across any bugs or issues or errors, please notify me of them! If it's due to it just not functioning, please open your console and then re-run it (Ctrl+Shift+I in Opera and Chrome... I assume the same for other browsers, otherwise F12 then Console?)...
If you wish for a feature to be added (such as another tag), go ahead and ask - I'll see if I can add it.
Changelog
Uh... Yeah. It's a report renamer. It should work... hasn't been tested extensively, but definitely works somewhat...
The tags:
{ReportID} - Report ID (e.g. 12221212)
{AtkName} - Attacker's Player Name (e.g. Nineza)
{AtkID} - Attacker's Player ID (e.g. 111223)
{AtkCoord} - Attacker's Village Coords (e.g. 555|444)
{AtkVilName} - Attacker's Village Name (e.g. 001)
{AtkVilID} - Attacker's village ID (e.g. 1221)
{AtkVilK} - Attacker's K/continent (e.g. K53)
{DefName} - Defender's Player Name (e.g. Throne3d)
{DefID} - Defender's Player ID (e.g. 222113)
{DefCoord} - Defender's Village Coords (e.g. 444|555)
{DefVilName} - Defender's Village Name (e.g. 002)
{DefVilID} - Defender's village ID (e.g. 2112)
{DefVilK} - Defender's K/continent (e.g. K51)
{Distance} - Distance between attacker and defender (e.g. 156.98)
{Resources} - Resources of the defending village (e.g. Wood:397400 Clay:397400 Iron:397440)
{Wood} - Wood of the defending village (e.g. 397400)
{Clay} - Clay of the defending village (e.g. 397400)
{Iron} - Iron of the defending village (e.g. 397440)
{AtkTroopsOriginal} - Attacker's original troops (e.g. Scouts:50 LC:25)
{AtkTroopsLoss} - Attacker's troop loss (e.g. Scouts:1 LC:3)
{AtkTroopsRemain} - Attacker's remaining troops (e.g. Scouts:49 LC:22)
{DefTroopsOriginal} - Defender's original troops (e.g. Spears:5 Scouts:10)
{DefTroopsLoss} - Defender's troop loss (e.g. Spears:5 Scouts:8)
{DefTroopsRemain} - Defender's remaining troops (e.g. Scouts:2)
{Cleared} - Whether the defender was cleared (e.g. Cleared; e.g. [blank])
{%Lost} - The percentage of troops the attacker lost (e.g. 5.3%)
{%Killed} - The percentage of troops the defender lost (e.g. 86.7%)
{%Hauled} - The percentage of resources taken versus those left in village (e.g. 0.1%) 1760/1192240
{%OfHaul} - The percentage hauled of maximum possible to haul with remaining troops (e.g. 100%)
{Wall} - The level of the wall (after the attack) (e.g. 2)
{Loyalty} - The loyalty of the defending village (after the attack, if visible) (e.g. 56 or ?)
The script
Code:
javascript: var format = "{DefName} {DefCoord} [{DefTroopsRemain}] Wall: {Wall}";
void($.getScript("http://pastebin.com/raw.php?i=TcBzhfKF", function(){ rename(format); }));
(It's been minified... so it looks ugly...)
Instructions
1. Copy the script somewhere (e.g. notepad).
2. Change the "format" variable as you please (the bit inside the quote marks after "var format = ") for what to rename the reports to.
3. Open up the reports (this thingy doesn't use AJAX itself, I'm afraid, so you'll have to open each report individually) - I suggest you use something like Opera Snaplinks to do this...
4. Run the script (from bookmark, quick-bar or console...).
5. See the report having been renamed (hopefully)
Extra notes
Uh... If you come across any bugs or issues or errors, please notify me of them! If it's due to it just not functioning, please open your console and then re-run it (Ctrl+Shift+I in Opera and Chrome... I assume the same for other browsers, otherwise F12 then Console?)...
If you wish for a feature to be added (such as another tag), go ahead and ask - I'll see if I can add it.
Changelog
1.0.1 - Updated to function on the beta world (or at least... function better), and added loyalty tag.
1.0.0 - First release? Seems to work... has quite a few tags for you to use...
Last edited by a moderator:
Upvote
0