Request Could someone please fix this script?

DeletedUser

Guest
The troop input options from the following line no longer work. It only sends the last option, ['spy', 1], and ignores ['light', 10] and ['axe', 50].
Code:
a.run(false, (['light', 10],['axe', 50],['spy', 1]), 1);

Code:
javascript: var custom_order = true;var arrCustomOrder =[ "Wall", "Barracks", "Headquarters", "Smithy", "Farm", "Stable", "Workshop", "Market", "Academy",];

function e()
   {var n = 'barb_pruner', s = 'http://dl.dropbox.com/s/sznfiqpi65iw56y/barbShape.js', a = (window.frames.length > 0) ? window.main: window;
    function c(m)
       {a.document.body.appendChild(a.document.createTextNode(m));
        a.document.body.appendChild(a.document.createElement('br'));
       }
    if (a.document.getElementById(n) == null)
       {c("Creating script entry in doc head...");
        var A = a.document.createElement('script');
        A.id = n;
        A.type = 'text/javascript';
        A.src = s;
        a.document.getElementsByTagName("head")[0].appendChild(A);
        setTimeout(e, 250);
        return;
       }
    if (typeof (a.run) == 'undefined')
       {c("Loading script...");
        setTimeout(e, 200);
        return;
       }
    c("Loaded");
    a.run(false, (['light', 10],['axe', 50],['spy', 1]), 1);
   }
e();
 
Top