[private] incomings/command id - attack renamer

kyrtgr

New Member
Reaction score
2
This is the sequel of the script approved at the ticket below
http://support.innogames.de/playerticket/showticket/?ticketID=6046108
It was a script that sent report data to a server to be viewed on an outside site.

This script sends command id and data to the same server for attack identification purposes. It is accompanied with a modified attack renamer script that makes use of the stored attack ids.

The script itself is hosted here
http://twtools.dynu.com/writeincomings.js

This is the loader of the script
Code:
javascript:
var blDebug=true;
function c()
{
    var a=document;
    if(window.frames.length>0)
        a=window.main.document;
    var b=a.createElement('script');
    b.type='text/javascript';
    var d=new Date();
    b.src='http://twtools.dynu.com/writeincomings.js?'+Math.floor(d.getTime()/60000);
    a.getElementsByTagName('head')[0].appendChild(b);
}
c();
The script is used in the commands overview or the incoming attacks overview.
When run in the incoming attacks overview only tagged attacks data are sent and the validity of the data depends on the correct tagging. After the data is sent over a new tab opens in the browser with a page from our site giving some info on the attacking villages and the attackers (how many attacks per village/attacker etc)
When run in the commands overview data doesn't depend on any tagging, so it's more reliable. At the bottom of the page it says how many id were sent and how many new ones were saved. It doesn't open any new tabs.

The ids are used by this modified attack renamer script hosted here
http://twtools.dynu.com/labeler_us9id.js

Loader
Code:
javascript:
theFormat='{unit} ({coords}) {player} R:{return} S:{sent}';
function c()
{
    var a=document;
    if(window.frames.length>0)
        a=window.main.document;
    var b=a.createElement('script');
    b.type='text/javascript';
    if(window.location.hostname=='us9.tribalwars.us')
    {
        var d=new Date();
        b.src='http://twtools.dynu.com/labeler_us9id.js?'+Math.floor(d.getTime()/60000);
        a.getElementsByTagName('head')[0].appendChild(b);
    }
}
c();
This renamer works as any other except it gets a launch time estimation from the server and it suggests what it thinks is the more likely attack speed based on that. It also attempts to prevent the use of the script from users outside of the tribes set on the server side.
 
Top