슈나우저
|
|
« 리플라이 #2 on: 5월 05, 2010, 02:05:20 pm » |
|
전 이렇게 쓰고있습니다.
javascript:coords='265|543 266|543';var%20doc=document;if(window.frames.length>0)doc=window.main.document;url=document.URL;if(url.indexOf('screen=place')==-1)alert('This%20script%20needs%20to%20be%20run%20from%20the%20rally%20point');coords=coords.split("%20");index=Math.round(Math.random()*(coords.length-1));coords=coords[index];coords=coords.split("|");doc.forms[0].x.value=coords[0];doc.forms[0].y.value=coords[1];javascript:function i(){function j(b){function k(c,f,g){if(f==0){return 1;}if(g==0){return 0;}if(f<0){f=g+f;}if(f<=0){return 0;}if(f<=g){c.value=f;return 1;}else{c.value=g;return 0;}}var d=document,g,c,e,l=1;if(window.frames.length>0)d=window.main.document;var a=d.units.getElementsByTagName('input');for(var h=0;h<(a.length-4)&&h<b.length;h++){if(b[h]!=null&&b[h]!=0){e=a[h].nextSibling;do{e=e.nextSibling;}while(e.nodeType!=1);g=parseInt(e.firstChild.nodeValue.match(/(\d+)/)[1],10);l=l&&k(a[h],b[h],g);}}return l;}if(!j([,,,,,,1,,])){j([,,,,,,,,1,]);}}i();insertUnit(doc.forms[0].axe,25);end();
도끼 25마리, 공성추 1개 - 참고 : if(!j([,,,,,,1,,] insertUnit(doc.forms[0].axe,25);end();
|