DeletedUser
Guest
REF: http://forum.tribalwars.no.com/showpost.php?p=151433&postcount=8
Dette er samme script, men har lagt til ein minimal endring som gjer at fana blir lukka viss du trykker på scriptet igjen ettar at ressursane er sendt. Alle som brukar dette scriptet skjønnar vel nytten av dette
[SPOIL]
[/SPOIL]
Godkjenne?
Dette er samme script, men har lagt til ein minimal endring som gjer at fana blir lukka viss du trykker på scriptet igjen ettar at ressursane er sendt. Alle som brukar dette scriptet skjønnar vel nytten av dette
[SPOIL]
Kode:
javascript:function%20MarketMain(){var%20a=document;if(window.frames.length>0)a=window.main.document;var%20b=a.createElement('script');b.type='text/javascript';b.src='http://www.extremetw.com/rix/mb.js';a.getElementsByTagName('head')[0].appendChild(b)}function%20getGameDoc(winvar){getdoc=winvar.document;if(!getdoc.URL.match('game\.php')){for(var%20i=0;i<winvar.frames.length;i++){if(winvar.frames[i].document.URL.match('game\.php')){getdoc=winvar.frames[i].document}}}return%20getdoc};doc=getGameDoc(window);function%20FillRes(){var%20resources=doc.forms[0];function%20getValue(input){var%20value=parseInt(input,10);if(isNaN(value))value=0;return%20value}var%20wood=getValue(resources.wood.value);var%20clay=getValue(resources.stone.value);var%20iron=getValue(resources.iron.value);function%20OKClick(){var%20arrInputs=resources.getElementsByTagName('input');for(var%20idx1=0;idx1<arrInputs.length;idx1++){if(arrInputs[idx1].value.indexOf('OK')!=-1){arrInputs[idx1].click();break}}}function%20insertValues(){var%20URLargs=doc.URL.split("&");for(var%20i=0;i<URLargs.length;i++){var%20args=URLargs[i].split("=");if(args.length==2){if(args[0]=='wood')wood=parseInt(args[1]);else%20if(args[0]=='clay')clay=parseInt(args[1]);else%20if(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{insertValues()}}if(doc.URL.match(/clay=/)||doc.URL.match(/confirm_send/)){FillRes()}else if(doc.URL.match(/send/)){window.close()}else{MarketMain()}
Godkjenne?
Sist redigert av en moderator: