// ==UserScript== // @name erevolution tools // @namespace https://www.erevollution.coms // @description erevolution prof // @include https://www.erevollution.com/* // @exclude https://www.erevollution.com/en/special-items // @version 0.0.1.20161218200915 // @downloadURL https://update.greasyfork.icu/scripts/19534/erevolution%20tools.user.js // @updateURL https://update.greasyfork.icu/scripts/19534/erevolution%20tools.meta.js // ==/UserScript== //auto eat setInterval(myMethod, 9720000); function myMethod( ) { document.getElementById("energyButton").click() } //dmg calc prof function wepon(wep,hit,gold,resta,restp,st) { this.st = st; this.idstring='#udarec'+st; this.wep = wep; this.hit =Math.ceil(hit); this.gold = gold; this.goldta= (2.5-(nextta*gold)).toFixed(2); this.goldtp= (5-(nexttp*gold)).toFixed(2) this.nextta=resta/hit; this.nextta=Math.ceil(this.nextta); this.nexttp=restp/hit; this.nexttp=Math.ceil(this.nexttp); this.changeWep = function (wep) { this.hit = this.hit/this.wep; console.log(hit); this.wep = wep; this.changeHit(this.hit*wep); } this.changeHit = function (hit) { this.hit =Math.ceil(hit); this.nextta=resta/hit; this.nextta=Math.ceil(this.nextta); this.nexttp=restp/hit; this.nexttp=Math.ceil(this.nexttp); } this.changeGold = function (gold) { this.gold = gold; this.goldta= ( (2.5 - (this.nextta*gold)).toFixed(2) ); this.goldtp= ( (5 - (this.nexttp*gold)).toFixed(2)); } } function spremeniWep(owep,wep,gold){ if(wep=="n"){ owep.changeGold(gold); } if (gold=="n"){ owep.changeWep(wep); } $(owep.idstring).html(""+owep.hit+"
"+owep.nextta+"
"+owep.goldta+"
"+owep.nexttp+"
"+owep.goldtp); jquery(); } function udarecEna(sprem){ wepon1.changeHit(sprem); $(wepon1.idstring).html(""+wepon1.hit+"
"+wepon1.nextta+"
0
"+wepon1.nexttp+"
0
-
-
"); wepon2.changeHit(sprem); spremeniWep(wepon2); wepon3.changeHit(sprem); spremeniWep(wepon3); wepon4.changeHit(sprem); spremeniWep(wepon4); wepon5.changeHit(sprem); spremeniWep(wepon5); wepon6.changeHit(sprem); spremeniWep(wepon6); } function udarecWep(gold,st,wep) { switch(st) { case 2: spremeniWep(wepon2,wep,gold); break; case 3: spremeniWep(wepon3,wep,gold); break; case 4: spremeniWep(wepon4,wep,gold); break; case 5: spremeniWep(wepon5,wep,gold); break; case 6: spremeniWep(wepon6,wep,gold); break; } } var x = document.getElementsByClassName("vs164-2"); var moc = x[0].innerHTML; var car=""; for(i=0;i]*>/g, ''); // Remove HTML tags thisseznam = thisseznam.replace(/[[^]]*]/g, ''); // Remove anything within square brackets list[i]=thisseznam; } var st=0; var wep=1; var tp= list[0]; tp= tp.replace(/,/g,'') tp=tp.split("/") var restp=tp[1]-tp[0]; var ta= list[1]; ta=ta.replace(/,/g,'') ta=ta.split("/") var resta=ta[1]-ta[0]; var lk=5; var ak=0.05; var l=level*lk+moc; var a=1+achivment*ak; var ne=1; var k=l*a*ne; k=Math.ceil(k); var ene=1; var boos=1; var hit=k*ene*boos; var nextta=resta/hit; nextta=Math.ceil(nextta); var nexttp=restp/hit; nexttp=Math.ceil(nexttp); var gold=0; var idstring=""; var wepon1=new wepon(wep,hit,gold,resta,restp,1); var wepon2=new wepon(wep,hit,gold,resta,restp,2); var wepon3=new wepon(wep,hit,gold,resta,restp,3); var wepon4=new wepon(wep,hit,gold,resta,restp,4); var wepon5=new wepon(wep,hit,gold,resta,restp,5); var wepon6=new wepon(wep,hit,gold,resta,restp,6); var goldstring= "type='text'>"; var wepstring= ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""; var htmlStringdiv = "


"+ "Info Calc

"+ "
"+ ""+ " "+ " "+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
Influence:
Next TA:
gold TA
Next TP:
gold TP
Wep
gold/peac
"+ " "+hit+"
"+nextta+"
0
"+nexttp+"
0
-
0
"+hit+"
"+nextta+"
cost g/m
"+nexttp+"
cost g/m

"+hit+"
"+nextta+"
cost g/m
"+nexttp+"
cost g/m

"+hit+"
"+nextta+"
cost g/m
"+nexttp+"
cost g/m

"+hit+"
"+nextta+"
cost g/m
"+nexttp+"
cost g/m

"+hit+"
"+nextta+"
cost g/m
"+nexttp+"
cost g/m

"+ "
"+ "

"+ "
"; $(htmlStringdiv).insertAfter(".vs165:last"); jquery() function jquery(){ $(document).ready(function(){ $("select").css("display","inline"); $(".zlat").css("width", "50px"); $('#infCalc_energy').on('input',function(e){ ene=$("#infCalc_energy").val(); hit=k*ene*boos; hitwone=hit*wep; console.log(hit); udarecEna(hit); }); $('#dmg').on('change', function (e) { var optionSelected =$("option:selected", this); boos=this.value; hit=k*ene*boos; udarecEna(hit); }); $('.oroz').on('change', function (e) { var oid=$(this).attr('id'); st=parseFloat(oid[1]); wep = parseFloat($('#n'+st).find(":selected").text()); console.log(wep, st); udarecWep("n",st,wep); }); $('.zlat').on('input',function(e){ var gid=$(this).attr('id'); st=parseFloat(gid[12]); gold =parseFloat($("#infCalc_gold"+st).val()); console.log(gold, st); udarecWep(gold,st,"n"); }); $("td").css("borderColor", "transparent"); $("td").css("borderWidth", "3px"); }); }