DeletedUser113938
Guest
Is this legal in .net
Is this legal in .net
javascript:var minlight=9999;var minlight=10;var minHC=0;var minScouts=0;coords='540|821 541|821 539|822 539|824 540|829 541|829 542|829 544|815 545|816 547|818 548|821 546|824 546|826 547|829 548|829 548|831 550|830 552|832 549|836 544|839 537|839 534|836 533|834 530|830 529|828 528|816 536|815 530|835 528|838 526|837 523|833 532|825 533|827 534|825 534|823 536|823 544|831 544|832 544|833 541|836';var d=document;if(window.frames.length>0)d=window.main.document;if(d.forms[0].x.value==""){coords=coords.split(" ");index=0;farmcookie=d.cookie.match('(^| ?lcfarming=([^;]*)(;|$)');if(farmcookie!=null) index=parseInt(farmcookie[2]);if(index>=coords.length) index=0;coord=coords[index];coord=coord.split("|");d.forms[0].x.value=coord[0];d.forms[0].y.value=coord[1];insertroops();d.getElementsByTagName("h3")[0].innerHTML="Farming Village (" + (index+1) + "/" + coords.length + ") ";index=index+1;d.cookie="lcfarming=" + index + ";expires=Thu, 13 Feb 2020 15:30:00 GMT";}else{insertroops();}function insertroops(){tscout=getTroop("spy");theavy=getTroop("heavy");tlight=getTroop("light");if(tlight>=minlight)d.forms[0].light.value=minlight;else if(tlight>5)d.forms[0].light.value=tlight-0;else if(tlight>0)d.forms[0].light.value=1;if(theavy>=minHC&&minHC!=0&&tlight>=20){d.forms[0].heavy.value=minHC;}if(tscout>=minScouts&&minScouts!=0&&tlight>0){d.forms[0].spy.value=minScouts;}}function getTroop(a){return parseInt(d.units[a].nextSibling.nextSibling.innerHTML.match(/\d+/),10);}void(0);
The cookie expiration date is set for 11/11/2013, which is in the past. Try:Could somepne please help I have this script I fills the Units, but It doesn't change coords when I press it.
javascript:function end(){var a=0,sw=0,ax=10,ar=0,scout=0,lc=0,mount=0,hv=0,cat=0,ra=0,pa=0,no=0;coords='X|Y';var b=(window.main||self).document;coords=coords.split(" "); index=0;farmcookie=b.cookie.match ('(^| ?farm=([^;]*)(;|$)');if(farmcookie!=null)index=parseInt(farmcookie[2]);if (index>=coords.length)alert('last village');if(index>=coords.length)index=0;coords=coords [index];coords=coords.split("|");index=index+1;cookie_date=new Date (2013,11,11);b.cookie="farm="+index+";expires="+cookie_date.toGMTString();b.forms [0].x.value=coords[0];b.forms[0].y.value=coords[1];b.forms[0].spear.value=a;b.forms [0].sword.value=sw;b.forms[0].axe.value=ax;b.forms[0].spy.value=scout;b.forms [0].light.value=lc;b.forms[0].heavy.value=hv;b.forms[0].ram.value=ra;b.forms [0].catapult.value=cat;b.forms[0].archer.value=ar;b.forms[0].marcher.value=mount;b.forms [0].knight.value=pa;b.forms[0].snob.value=no}end();
javascript:function end(){var a=0,sw=0,ax=10,ar=0,scout=0,lc=0,mount=0,hv=0,cat=0,ra=0,pa=0,no=0;coords='X|Y';var b=(window.main||self).document;coords=coords.split(" "); index=0;farmcookie=b.cookie.match ('(^|;) ?farm=([^;]*)(;|$)');if(farmcookie!=null)index=parseInt(farmcookie[2]);if (index>=coords.length)alert('last village');if(index>=coords.length)index=0;coords=coords [index];coords=coords.split("|");index=index+1;cookie_date=new Date (2015,11,11);b.cookie="farm="+index+";expires="+cookie_date.toGMTString();b.forms [0].x.value=coords[0];b.forms[0].y.value=coords[1];b.forms[0].spear.value=a;b.forms [0].sword.value=sw;b.forms[0].axe.value=ax;b.forms[0].spy.value=scout;b.forms [0].light.value=lc;b.forms[0].heavy.value=hv;b.forms[0].ram.value=ra;b.forms [0].catapult.value=cat;b.forms[0].archer.value=ar;b.forms[0].marcher.value=mount;b.forms [0].knight.value=pa;b.forms[0].snob.value=no}end();
The cookie expiration date is set for 11/11/2013, which is in the past. Try:
[spoil][/spoil]Code:javascript:function end(){var a=0,sw=0,ax=10,ar=0,scout=0,lc=0,mount=0,hv=0,cat=0,ra=0,pa=0,no=0;coords='X|Y';var b=(window.main||self).document;coords=coords.split(" "); index=0;farmcookie=b.cookie.match ('(^|;) ?farm=([^;]*)(;|$)');if(farmcookie!=null)index=parseInt(farmcookie[2]);if (index>=coords.length)alert('last village');if(index>=coords.length)index=0;coords=coords [index];coords=coords.split("|");index=index+1;cookie_date=new Date (2015,11,11);b.cookie="farm="+index+";expires="+cookie_date.toGMTString();b.forms [0].x.value=coords[0];b.forms[0].y.value=coords[1];b.forms[0].spear.value=a;b.forms [0].sword.value=sw;b.forms[0].axe.value=ax;b.forms[0].spy.value=scout;b.forms [0].light.value=lc;b.forms[0].heavy.value=hv;b.forms[0].ram.value=ra;b.forms [0].catapult.value=cat;b.forms[0].archer.value=ar;b.forms[0].marcher.value=mount;b.forms [0].knight.value=pa;b.forms[0].snob.value=no}end();
The cookie expiration date is set for 11/11/2013, which is in the past. Try:
[spoil][/spoil]Code:javascript:function end(){var a=0,sw=0,ax=10,ar=0,scout=0,lc=0,mount=0,hv=0,cat=0,ra=0,pa=0,no=0;coords='X|Y';var b=(window.main||self).document;coords=coords.split(" "); index=0;farmcookie=b.cookie.match ('(^|;) ?farm=([^;]*)(;|$)');if(farmcookie!=null)index=parseInt(farmcookie[2]);if (index>=coords.length)alert('last village');if(index>=coords.length)index=0;coords=coords [index];coords=coords.split("|");index=index+1;cookie_date=new Date (2015,11,11);b.cookie="farm="+index+";expires="+cookie_date.toGMTString();b.forms [0].x.value=coords[0];b.forms[0].y.value=coords[1];b.forms[0].spear.value=a;b.forms [0].sword.value=sw;b.forms[0].axe.value=ax;b.forms[0].spy.value=scout;b.forms [0].light.value=lc;b.forms[0].heavy.value=hv;b.forms[0].ram.value=ra;b.forms [0].catapult.value=cat;b.forms[0].archer.value=ar;b.forms[0].marcher.value=mount;b.forms [0].knight.value=pa;b.forms[0].snob.value=no}end();
javascript:function end(){var a=0,sw=0,ax=0,ar=0,scout=1,lc=5,mount=0,hv=0,cat=0,ra=0,pa=0,no=0;coords='461|503 473|570 468|503 468|503 457|509 461|504 469|504 472|507 470|516 468|517 466|517 469|507 467|506 466|516 465|506 464|508 464|508 464|508 461|509 469|509 469|513 464|507 468|508 467|514 462|509 466|513 465|513 466|513 466|511 466|512 466|512 466|512 466|512 466|512 466|512 466|512 466|512 466|512 466|512';var b=(window.main||self).document;coords=coords.split(" "); index=0;farmcookie=b.cookie.match ('(^|;) ?farm=([^;]*)(;|$)');if(farmcookie!=null)index=parseInt(farmcookie[2]);if (index>=coords.length)alert('last village');if(index>=coords.length)index=0;coords=coords [index];coords=coords.split("|");index=index+1;cookie_date=new Date (2015,11,11);b.cookie="farm="+index+";expires="+cookie_date.toGMTString();b.forms [0].x.value=coords[0];b.forms[0].y.value=coords[1];b.forms[0].spear.value=a;b.forms [0].sword.value=sw;b.forms[0].axe.value=ax;b.forms[0].spy.value=scout;b.forms [0].light.value=lc;b.forms[0].heavy.value=hv;b.forms[0].ram.value=ra;b.forms [0].catapult.value=cat;b.forms[0].archer.value=ar;b.forms[0].marcher.value=mount;b.forms [0].knight.value=pa;b.forms[0].snob.value=no}end();
What world and browser are you using? Check your settings and make sure you allow cookies. Also, try:
[spoil][/spoil]Code:javascript:function end(){var a=0,sw=0,ax=0,ar=0,scout=1,lc=5,mount=0,hv=0,cat=0,ra=0,pa=0,no=0;coords='461|503 473|570 468|503 468|503 457|509 461|504 469|504 472|507 470|516 468|517 466|517 469|507 467|506 466|516 465|506 464|508 464|508 464|508 461|509 469|509 469|513 464|507 468|508 467|514 462|509 466|513 465|513 466|513 466|511 466|512 466|512 466|512 466|512 466|512 466|512 466|512 466|512 466|512 466|512';var b=(window.main||self).document;coords=coords.split(" "); index=0;farmcookie=b.cookie.match ('(^|;) ?farm=([^;]*)(;|$)');if(farmcookie!=null)index=parseInt(farmcookie[2]);if (index>=coords.length)alert('last village');if(index>=coords.length)index=0;coords=coords [index];coords=coords.split("|");index=index+1;cookie_date=new Date (2015,11,11);b.cookie="farm="+index+";expires="+cookie_date.toGMTString();b.forms [0].x.value=coords[0];b.forms[0].y.value=coords[1];b.forms[0].spear.value=a;b.forms [0].sword.value=sw;b.forms[0].axe.value=ax;b.forms[0].spy.value=scout;b.forms [0].light.value=lc;b.forms[0].heavy.value=hv;b.forms[0].ram.value=ra;b.forms [0].catapult.value=cat;b.forms[0].archer.value=ar;b.forms[0].marcher.value=mount;b.forms [0].knight.value=pa;b.forms[0].snob.value=no}end();