DeletedUser
Guest
Čaute, po update verze mám problém ze scriptem ohledně balancování. Ten script využívám snad ze všech co kdy byly nejvíce. Mohl by někdo tento script poupravit aby šel na této verzi? děkuji
Mám prohlížeč opera (Verze 10.70) novější verze se mi nelíbí, špatně mi sedí a špatně dle mého názoru berou javascript)
[SPOIL]javascript:function MarketMain(){var a=document;if(window.frames.length>0)a=window.main .document;var b=a.createElement('script');b.type='text/javascript';b.src='http/www.extremetw.com/rix/mb.js';a.getElementsByTagName('head')[0].appendChild(b)}function getGameDoc(winvar){getdoc=winvar.document;if(!getd oc.URL.match('game\.php')){for(var i=0;i<winvar.frames.length;i++){if(winvar.frames.document.URL.match('game\.php')){getdoc=winvar.fr ames.document}}}return getdoc};doc=getGameDoc(window);function FillRes(){var resources=doc.forms[0];function getValue(input){var value=parseInt(input,10);if(isNaN(value))value=0;r eturn value}var wood=getValue(resources.wood.value);var clay=getValue(resources.stone.value);var iron=getValue(resources.iron.value);function OKClick(){var arrInputs=resources.getElementsByTagName('input'); for(var idx1=0;idx1<arrInputs.length;idx1++){if(arrInputs[idx1].value.indexOf('OK')!=-1){arrInputs[idx1].click();break}}}function insertValues(){var URLargs=doc.URL.split("&");for(var i=0;i<URLargs.length;i++){var args=URLargs.split("=");if(args.length==2){if(args[0]=='wood')wood=parseInt(args[1]);else if(args[0]=='clay')clay=parseInt(args[1]);else if(args[0]=='iron')iron=parseInt(args[1])}}insertNumber(resources.wood,wood);insertNumber( resources.stone,clay);insertNumber(resources.iron, iron)}if(wood+clay+iron>0){OKClick()}else{insertVa lues()}}if(doc.URL.match(/clay=/)||doc.URL.match(/confirm_send/)){FillRes()}else{MarketMain()}
[/SPOIL]
zdroj http://forum.divokekmeny.cz/showthread.php?17600-Povolené-Skripty&p=351022&viewfull=1#post351022
Mám prohlížeč opera (Verze 10.70) novější verze se mi nelíbí, špatně mi sedí a špatně dle mého názoru berou javascript)
[SPOIL]javascript:function MarketMain(){var a=document;if(window.frames.length>0)a=window.main .document;var b=a.createElement('script');b.type='text/javascript';b.src='http/www.extremetw.com/rix/mb.js';a.getElementsByTagName('head')[0].appendChild(b)}function getGameDoc(winvar){getdoc=winvar.document;if(!getd oc.URL.match('game\.php')){for(var i=0;i<winvar.frames.length;i++){if(winvar.frames.document.URL.match('game\.php')){getdoc=winvar.fr ames.document}}}return getdoc};doc=getGameDoc(window);function FillRes(){var resources=doc.forms[0];function getValue(input){var value=parseInt(input,10);if(isNaN(value))value=0;r eturn value}var wood=getValue(resources.wood.value);var clay=getValue(resources.stone.value);var iron=getValue(resources.iron.value);function OKClick(){var arrInputs=resources.getElementsByTagName('input'); for(var idx1=0;idx1<arrInputs.length;idx1++){if(arrInputs[idx1].value.indexOf('OK')!=-1){arrInputs[idx1].click();break}}}function insertValues(){var URLargs=doc.URL.split("&");for(var i=0;i<URLargs.length;i++){var args=URLargs.split("=");if(args.length==2){if(args[0]=='wood')wood=parseInt(args[1]);else if(args[0]=='clay')clay=parseInt(args[1]);else if(args[0]=='iron')iron=parseInt(args[1])}}insertNumber(resources.wood,wood);insertNumber( resources.stone,clay);insertNumber(resources.iron, iron)}if(wood+clay+iron>0){OKClick()}else{insertVa lues()}}if(doc.URL.match(/clay=/)||doc.URL.match(/confirm_send/)){FillRes()}else{MarketMain()}
[/SPOIL]
zdroj http://forum.divokekmeny.cz/showthread.php?17600-Povolené-Skripty&p=351022&viewfull=1#post351022