[ تم ]: ممكن سكريبت تدريب الجنود على مستوى المملكة للنسخة الجديدية

DeletedUser

Guest
شباب الي بيعرف السكريبت بعد اذنكم والله هالنسخة خربة كل السكريبتات
 

DeletedUser

Guest
الله يساعدك حبيبي ويكون بعونك ههههههههههههههههههههه الاصدار الانجلنزي ماسوها تتوقع الاصدار العربي يقدرونا
 

DeletedUser

Guest
الله يساعدك حبيبي ويكون بعونك ههههههههههههههههههههه الاصدار الانجلنزي ماسوها تتوقع الاصدار العربي يقدرونا

متأكد ؟:D

حياك

كود:
javascript:var units=[0,0,6000,0,3000,0,300,0];var farm=0;var res=[0,0,0];if(game_data.mode!='mass')$(location).attr('href',game_data.link_base_pure+'train&mode=mass');function D(a,b){v=[];if(a.length==b.length){for(t=0;t<a.length;t++){if(b[t]!=0){v[t]=a[t]*1.0/b[t]}else{v[t]=0}}}return v}function Q(r){v=[0,0,0,0,0,0,0,0,0,0];for(u=3;u<r.cells.length;u++){try{v[u-3]=parseInt(r.cells[u].childNodes[1].childNodes[1].firstChild.title,10)}catch(e){}if(isNaN(v[u-3])){v[u-3]=0}}return v}function R(r){v=[0,0,0,0];var s=r.cells[1].textContent.split("\n");var f=r.cells[2].innerHTML.split("/");v[0]=parseInt(s[1].replace(".",""),10)-res[0];v[1]=parseInt(s[2].replace(".",""),10)-res[1];v[2]=parseInt(s[3].replace(".",""),10)-res[2];v[3]=f[1]-f[0]-farm;return v}function P(r){v=[0,0,0,0,0,0,0,0,0,0];for(u=3;u<r.cells.length;u++){try{v[u-3]=parseInt(r.cells[u].childNodes[1].textContent.split("\n")[2],10)}catch(e){}if(isNaN(v[u-3])){v[u-3]=0}}return v}c=$("table.vis");c=c[2].rows;if($("#mass_train_table [src*=unit_archer]").length==0){f=["spear","sword","axe","spy","light","heavy","ram","catapult"];s=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[50,50,20,2],[125,100,250,4],[200,150,600,6],[300,200,200,5],[320,400,100,8]]}else{f=["spear","sword","axe","archer","spy","light","marcher","heavy","ram","catapult"];s=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[100,30,60,1],[50,50,20,2],[125,100,250,4],[250,100,150,5],[200,150,600,6],[300,200,200,5],[320,400,100,8]]}for(r=1;r<c.length;r++){b=[];z=[0,0,0,0];for(i=0;i<f.length;i++){b[i]=units[i]-(Q(c[r])[i]+P(c[r])[i]);if(b[i]<0){b[i]=0}for(j=0;j<4;j++){z[j]+=s[i][j]*b[i]}};a=D(R(c[r]),z),h=a[0];for(t=1;t<a.length;t++){if(a[t]<h){h=a[t]}}if(h>1.0){h=1.0}for(i=0;i<f.length;i++){n=b[i]*h;if(n<0){n=0}if(n>1){if(c[r].cells[3+i].childNodes[3]){x=c[r].cells[3+i].childNodes[3];x.value=parseInt(n,10)}}}}end();

بس خبرني كم النوك الهجومي و الدفاعي عندك علشان اضبطه
 

DeletedUser

Guest
متأكد ؟:d

حياك

كود:
javascript:var units=[0,0,6000,0,3000,0,300,0];var farm=0;var res=[0,0,0];if(game_data.mode!='mass')$(location).attr('href',game_data.link_base_pure+'train&mode=mass');function d(a,b){v=[];if(a.length==b.length){for(t=0;t<a.length;t++){if(b[t]!=0){v[t]=a[t]*1.0/b[t]}else{v[t]=0}}}return v}function q(r){v=[0,0,0,0,0,0,0,0,0,0];for(u=3;u<r.cells.length;u++){try{v[u-3]=parseint(r.cells[u].childnodes[1].childnodes[1].firstchild.title,10)}catch(e){}if(isnan(v[u-3])){v[u-3]=0}}return v}function r(r){v=[0,0,0,0];var s=r.cells[1].textcontent.split("\n");var f=r.cells[2].innerhtml.split("/");v[0]=parseint(s[1].replace(".",""),10)-res[0];v[1]=parseint(s[2].replace(".",""),10)-res[1];v[2]=parseint(s[3].replace(".",""),10)-res[2];v[3]=f[1]-f[0]-farm;return v}function p(r){v=[0,0,0,0,0,0,0,0,0,0];for(u=3;u<r.cells.length;u++){try{v[u-3]=parseint(r.cells[u].childnodes[1].textcontent.split("\n")[2],10)}catch(e){}if(isnan(v[u-3])){v[u-3]=0}}return v}c=$("table.vis");c=c[2].rows;if($("#mass_train_table [src*=unit_archer]").length==0){f=["spear","sword","axe","spy","light","heavy","ram","catapult"];s=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[50,50,20,2],[125,100,250,4],[200,150,600,6],[300,200,200,5],[320,400,100,8]]}else{f=["spear","sword","axe","archer","spy","light","marcher","heavy","ram","catapult"];s=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[100,30,60,1],[50,50,20,2],[125,100,250,4],[250,100,150,5],[200,150,600,6],[300,200,200,5],[320,400,100,8]]}for(r=1;r<c.length;r++){b=[];z=[0,0,0,0];for(i=0;i<f.length;i++){b[i]=units[i]-(q(c[r])[i]+p(c[r])[i]);if(b[i]<0){b[i]=0}for(j=0;j<4;j++){z[j]+=s[i][j]*b[i]}};a=d(r(c[r]),z),h=a[0];for(t=1;t<a.length;t++){if(a[t]<h){h=a[t]}}if(h>1.0){h=1.0}for(i=0;i<f.length;i++){n=b[i]*h;if(n<0){n=0}if(n>1){if(c[r].cells[3+i].childnodes[3]){x=c[r].cells[3+i].childnodes[3];x.value=parseint(n,10)}}}}end();

بس خبرني كم النوك الهجومي و الدفاعي عندك علشان اضبطه

اخي هذا ما اشتغل
في طريقة معينة غير القديمة يعني
وبالنسبة للجيوش الهجومية 7-7-3
وبالنسبة للدفاع 7-7-1
 

DeletedUser

Guest
javascript:var farm=0; var res=[1000,1000,1000];var maxbuilding=[440,440,840,925,460,230,75,50];var%20n=prompt("1.Offense 2.Defense 3.Scouting", "0");n=parseInt(n);if(n==1){var%20units=[0,0,7000,0,3300,0,260,0];}else%20if(n==2){var%20units=[10000,10000,0,50,0,0,0,50];}else%20if(n==3){var%20units=[3000,3000,0,7000,0,0,0,50];}else{var%20units=[0,0,0,0,0,0,0,0];}if(game_data.mode!='mass')$(location).attr('href',game_data.link_base_pure+'train&mode=mass');function D(a,b){v=[];if(a.length==b.length){for(t=0;t<a.length;t++){if(b[t]!=0){v[t]=a[t]*1.0/b[t]}else{v[t]=0}}}return v}function Q(r){v=[0,0,0,0,0,0,0,0,0,0];for(u=3;u<r.cells.length;u++){try{v[u-3]=parseInt(r.cells.childNodes[1].childNodes[1].firstChild.title,10)}catch(e){}if(isNaN(v[u-3])){v[u-3]=0}}return v}function R(r){v=[0,0,0,0];var s=r.cells[1].textContent.split("\n");var f=r.cells[2].innerHTML.split("/");v[0]=parseInt(s[1].replace(".",""),10)-res[0];v[1]=parseInt(s[2].replace(".",""),10)-res[1];v[2]=parseInt(s[3].replace(".",""),10)-res[2];v[3]=f[1]-f[0]-farm;return v}function P(r){v=[0,0,0,0,0,0,0,0,0,0];for(u=3;u<r.cells.length;u++){try{v[u-3]=parseInt(r.cells.childNodes[1].textContent.split("\n")[2],10)}catch(e){}if(isNaN(v[u-3])){v[u-3]=0}}return v}c=$("table.vis");c=c[2].rows;if($("#mass_train_table [src*=unit_archer]").length==0){f=["spear","sword","axe","spy","light","heavy","ram","catapult"];s=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[50,50,20,2],[125,100,250,4],[200,150,600,6],[300,200,200,5],[320,400,100,8]]}else{f=["spear","sword","axe","archer","spy","light","marcher","heavy","ram","catapult"];s=[[50,30,10,1],[30,30,70,1],[60,30,40,1],[100,30,60,1],[50,50,20,2],[125,100,250,4],[250,100,150,5],[200,150,600,6],[300,200,200,5],[320,400,100,8]]}for(r=1;r<c.length;r++){b=[];z=[0,0,0,0];for(i=0;i<f.length;i++){b=units-(Q(c[r])+P(c[r]));if(b<0){b=0}wantedunits=maxbuilding-Q(c[r]);if(wantedunits<0){wantedunits=0}if(wantedunits<b){b=wantedunits}for(j=0;j<4;j++){z[j]+=s[j]*b}};a=D(R(c[r]),z),h=a[0];for(t=1;t<a.length;t++){if(a[t]<h){h=a[t]}}if(h>1.0){h=1.0}for(i=0;i<f.length;i++){n=b*h;if(n<0){n=0}if(n>1){if(c[r].cells[3+i].childNodes[3]){x=c[r].cells[3+i].childNodes[3];x.value=parseInt(n,10)}}}}end();





you'll have to go in manually to modify the variables.

var farm=0; - amount of farm space you want to keep free

var res=[1000,1000,1000] - amount of resources you want to not use

var maxbuilding=[440,440,840,925,460,230,75,50]; - this is the new variable. The script won't allow more than the listed troops to be added to the build queue. Currently this is set to build 48 hours of troops on a speed 1 world (no archers). It's configured for a spear/sword defense, if you are just building spears you would want the 1st number to be around 1000 instead of 440. If you want a shorter queue, just reduce the numbers.

var%20n=prompt("1.Offense 2.Defense 3.Scouting", "0");n=parseInt(n);
if(n==1){var%20units=[0,0,7000,0,3300,0,260,0];}
else%20if(n==2){var%20units=[10000,10000,0,50,0,0,0,50];}
else%20if(n==3){var%20units=[3000,3000,0,7000,0,0,0,50];
- here's an offense, defense and scout build. Just adjust the numbers to fit your own ideal village builds.
 

DeletedUser16230

Guest
وشلووون ياشباب


بالله عطوني سكربة حق الهجوم وثاني حق دفاع

الهجوم 7000 3000 220
والدفاع 10000 رمح وسيف
 
أعلى