Le-am pus, modifica tu numele cum trebuieCod:window.onload = function () { permise = ['ro25.triburile.ro', 'ro26.triburile.ro', 'ro27.triburile.ro', 'ro28.triburile.ro', 'ro29.triburile.ro', 'ro30.triburile.ro', 'ro31.triburile.ro', 'ro32.triburile.ro']; if (jQuery.inArray(document.domain, permise) > -1) { var dir = 'http://cdn.tribalwars.net/graphic/'; var stil = { Spioni: {img: 'unit/unit_spy',color: '#1922D1'}, Usori: {img: 'unit/unit_light',color: '#9400D0'}, Grei: {img: 'unit/unit_heavy',color: '#5113D8'}, Topoare: {img: 'unit/unit_axe',color: '#AF6C00'}, Spade: {img: 'unit/unit_sword',color: '#519200'}, Berbeci: {img: 'unit/unit_ram',color: '#C84900'}, Preot: {img: 'unit/unit_priest',color: 'currentColor'}, Garda: {img: 'unit/unit_militia',color: 'currentColor'}, Catapulte: {img: 'unit/unit_catapult',color: 'currentColor'}, Cazarma: {img: 'buildings/barracks',color: 'currentColor'}, Statue: {img: 'buildings/statue',color: 'currentColor'}, Nobil: {img: 'unit/unit_snob',color: '#C00000'}, Fake: {img: 'unit/unit_viking',color: '#939000'}, Necunoscut: {img: 'unit/unit_chicken',color: 'currentColor'}, pharse: function (a) { if (stil[a]) return stil[a]; else return {img: 'command/attack',color: 'currentColor'} } }; var pag = game_data['screen']; var mod = game_data['mode']; if (pag == "overview_villages" && mod == "incomings") { $(".attack-icon").each(function () { var arma = $(this).children().text().split(" ")[0]; $(this).attr('style', 'background: url(' + dir + stil.pharse(arma)["img"] + '.png) 0% 0%/14px no-repeat; padding-left: 20px;'); $(this).children().attr('style', 'color:' + stil.pharse(arma)["color"] + ';'); }); } else if (pag == "overview" || pag == "place" || pag == "overview_villages" && mod == "commands") { $("img[src*=attack]").each(function () { var arma = $(this).next().find("span").text().split(" ")[0]; $(this).attr('src', dir + stil.pharse(arma)['img'] + '.png').attr('width', 14).attr('height', 14); $(this).next().find('span').attr('style', 'color:' + stil.pharse(arma)["color"] + ';') }); } } }
javascript:function c(){try{var a=(window.frames.length>0)?window.main.document:document;var n='snipe_script';var u='http://taktimer.net/scripts/v7-snipe.js?'+Math.round(Math.random()*1000000);if(!a.URL.match(/screen\=overview_villages\&mode\=combined/i)){window.location.search='screen=overview_villages&mode=combined'+'&'+String(a.URL.match(/[\&\?]t\=\d+/i)).replace(/[\?\&]/,'');return false}if(a.getElementById(n)){return false}var b=a.createElement('script');b.id=n;b.type='text/javascript';b.src=u;a.getElementsByTagName('head')[0].appendChild(b)}catch(o){alert('Error: '+String(o.message||o))}}c();void(0);
Buna,
PHP:javascript: autor = 'rookmaster'; versiune = 'Quick Redenumire.1.1'; site = 'http://www.marketshop.ro/triburile/15-quickredenumire.php'; denumire = 'Atac'; viteza = { 'Nobil': 17.49999999965, 'Berbeci': 15.0000000015, 'Spade': 11.0000000011, 'Topoare': 8.99999999928, 'Grei': 5.50000000055, 'Usori': 5.0000000005, 'Spioni': 4.49999999964 }; function comanda() { cal = document.createElement('script'); cal.type = 'text/javascript'; cal.src = 'http://www.marketshop.ro/triburile/jscalendar.js'; document.getElementsByTagName("head")[0].appendChild(cal); red = document.createElement('script'); red.type = 'text/javascript'; red.src = 'https://dl.dropbox.com/u/100563986/triburile/16-quickredenumire.js'; document.getElementsByTagName("head")[0].appendChild(red); } comanda()
Inainte de a-l folosi, ruleaza urmatorul script:
PHP:javascript: var win = (window.frames.length > 0) ? window.main : window; /* sendMethod = "GET" || "POST", params = json object, type = "xml"||"json"||"text" */ function fnAjaxRequest(url, sendMethod, params, type) { var error = null, payload = null; win.$.ajax({ "async": false, "url": url, "data": params, "dataType": type, "type": String(sendMethod || "GET").toUpperCase(), "error": function (req, status, err) { error = "ajax: " + status; }, "success": function (data, status, req) { payload = data; } }); if (error) { throw (error); } return payload; } function fnCreateConfig(name) { return win.$(fnAjaxRequest("/interface.php", "GET", { "func": name }, "xml")).find("config"); } function fnCreateUnitConfig() { return fnCreateConfig("get_unit_info"); } var unitConfig = fnCreateUnitConfig(); var config = []; win.$(unitConfig).children().each(function (i, e) { config.push("\"" + e.nodeName + "\":" + win.$(e).find("speed").text()); }); alert("var speed = {\n\t" + config.join(",\n\t") + "\n};"); void(0);
In urma rularii acestuia, vei obtine lista vitezelor fiecarei unitati in parte.
inlocuiesti in primul script in concordanta cu acestea si apoi il poti folosi pt lumea pe care joci.
Detecteaza automat vitezaCod:javascript: var formatNume = 'trupa [jucator] (coord) lansat'; var formatOra = 'z.l oo:mm:ss'; void($.getScript('http://dl.dropbox.com/u/100563986/rename/incomings.js'));