Fixed Account sit quick bar

valtheran88

Non-stop Poster
Reaction score
91
Bug Priority
Medium Bug (gameplay slightly affected)
Bug Type
Functional bug
Bug Occurrence URL
https://en129.tribalwars.net/game.php?village=33649&screen=info_player&id=849106313
Bug Reproduction Steps
Put script on your quick bar that account sit does not have but is legal and test on account sit. Script will not load, have not tested the further of the why.
Bug Reproducibility
Happens always
With the new update, people are attempting to use scripts on account sits and finding issue. I borrowed a friends account and tested to find that every script that MATCHED a script they already had on their quick bar( I did his load out so a % of his scripts come from my bar anyway) they would work. Mass Support is one such script that would be an example, but if I used the WT Planning script which is on my bar and not his the page would attempt to load and then fail. Under options I can not go in and add this, if we were passed an account sit from someone under fire or needing to send urgent support and attempted to use the tools we have on our "glorious" quickbars.
 

valtheran88

Non-stop Poster
Reaction score
91
Code:
Mass support script by Costache
javascript:var heavyCav=4;$.getScript('https://dl.dropboxusercontent.com/s/idwa7mmpn6nxl3l/supportSender.js?dl=0');void 0;

Mass tagger by I do not remember
javascript: $('input:checkbox').each(function() {
    this.checked = !this.checked;
});
var Append_Text = "Tagged: " + document.getElementById("serverDate").innerHTML.substring(0, 5) + " , " + document.getElementById("serverTime").innerHTML;
var format = '%unit% %coords% %player% Sent: %sent% Return: %return% ';
$('input[name=label_format]').val(format).parents('form').find('input[name=label]').click();


WT planning script by Shinko

javascript:

$.getScript("https://shinko-to-kuma.com/scripts/watchTower.js");

Standard bulky fake script

Code:
javascript: coords = '533|634';
var d = document;
if (window.frames.length > 0) d = window.main.document;
url = document.URL;
coords = coords.split(" ");
index = 0;
farmcookie = document.cookie.match('(^|;) ?cHuNTeR1946=([^;]*)(;|$)');
if (farmcookie != null) index = parseInt(farmcookie[2]);
if (index >= coords.length) index = 0;
coords = coords[index];
coords = coords.split("|");
index = index + 1;
document.cookie = "cHuNTeR1946=" + index + ";expires=Fri, 17 Dec 2030 10:00:00 GMT";
d.forms[0].x.value = coords[0];
d.forms[0].y.value = coords[1];

function getTroop(a) {
    return parseInt(d.units[a].nextSibling.nextSibling.innerHTML.match(/\d+/), 10);
}
tram = getTroop("ram");
tcat = getTroop("catapult");
theavy = getTroop("heavy");
tlight = getTroop("light");
tsword = getTroop("sword");
tspear = getTroop("spear");
taxe = getTroop("axe");
tscout = getTroop("spy");
if (tscout > 0) {
    d.forms[0].spy.value = 1;
}
if (tram > 0) {
    d.forms[0].ram.value = 1;
} else if (tcat > 0) {
    d.forms[0].catapult.value = 1;
} else if (tsword > 0) {
    d.forms[0].sword.value = 0;
} else if (tspear > 0) {
    d.forms[0].spear.value = 0;
} else if (taxe > 0) {
    d.forms[0].axe.value = 0;
} else if (theavy > 0) {
    d.forms[0].heavy.value = 0;
}
if (tlight > 0) {
    d.forms[0].light.value = 0;
}
void(0);
 
Last edited:

JawJaw

Awesomest CM Ever
Reaction score
2,210
We've been able to confirm this issue and will forward it to our developers.
 
Top