how its your lag now? - WTS sheeps edition

General discussion and socializing.

Re: how its your lag now? - WTS sheeps edition

Postby windmaker » Sun May 10, 2015 10:07 pm

one file bot. compatible union. (i guess :v)

the code have some problems and i cant test it bcs network shits D: <

update 1
Code: Select all

//#! uniq = killersheep_hk
//#! name = Sheep Killer
//#! icon = gfx/kritter/pig/cdv

var counter=0
while(true){
   sheep=getNearestObj("pig/s");
   postNear2Obj(sheep,1)
    jDoClick(sheep.getID(),  3, 0);
    jWaitMove(2000);

    if (jWaitPopup()) {
      jSelectContextMenu("Slaughter");
      jSleep(750);
      jWaitProgress(12000);
    }
   jSleep(4000)
  jOffsetClick(jCoord(getRandomArbitary(-2,2),getRandomArbitary(-2,2)),1,0);
  jWaitMove(2000)
  jOffsetClick(jCoord(getRandomArbitary(-2,2),getRandomArbitary(-2,2)),1,0);
  jWaitMove(2000)
}



function postNear2Obj(obj,pos){
    jPFMoveOffset_LX(obj.position(), pos);
}


function getNearestObj(obj) {
   var trees = jGetObjects(50, jCoord(0, 0), [obj]);
   var min_len = 100500;
   var objid = 0;
   for (var i = 0; i < trees.length; i++) {
      if (trees[i].position().dist(jMyCoords()) < min_len) {
         objid = trees[i];
         min_len = trees[i].position().dist(jMyCoords());
      }
   }
   return objid;
}

function getNearestSign() {
   var trees = jGetObjects(40, jCoord(0, 0), ["arch/sign"]);
   var min_len = 100500;
   var objid = 0;
   for (var i = 0; i < trees.length; i++) {
      if (trees[i].position().dist(jMyCoords()) < min_len) {
         objid = trees[i];
         min_len = trees[i].position().dist(jMyCoords());
      }
   }
   return objid;
}


function jPFMoveOffset_LX(point, offset) {

   offsMoveS=jCoord(0,offset);
   offsMoveE=jCoord(offset,0);
   offsMoveW=jCoord(-offset,0);
   offsMoveN=jCoord(0,-offset);
 
   while (1) {
      if(jPFMove(point.add(offsMoveS.mul(11))) > 0) {
         jPFMove_LX(point.add(offsMoveS.mul(11)));
         return offsMoveS;
      }
     
      if(jPFMove(point.add(offsMoveE.mul(11))) > 0) {
         jPFMove_LX(point.add(offsMoveE.mul(11)));
      return offsMoveE;
      }     
          if(jPFMove(point.add(offsMoveW.mul(11))) > 0) {
         jPFMove_LX(point.add(offsMoveW.mul(11)));
      return offsMoveW;
      }   
      if(jPFMove(point.add(offsMoveN.mul(11))) > 0) {
         jPFMove_LX(point.add(offsMoveN.mul(11)));
      return offsMoveN;
      }
      jPrint("jPFMoveOffset_LX can't find path");
//      break;

         jOffsetClick(jCoord(getRandomArbitary(-2,2),getRandomArbitary(-2,2)),1,0);
         jSleep(500);
     
   }
}

function jPFMove_LX(point) {
   point = jTilify(point);
   var MyX = jMyCoords().x;
   var MyY = jMyCoords().y;
     
   jPFMove(point);
   cycles = 0;
   while (MyX != point.x || MyY != point.y)
   {
      jPrint("jPFMove_LX My =" + MyX + " " + MyY + " - " + point.x + " " + point.y);
      jSleep(1000);
      MyX = jMyCoords().x;
      MyY = jMyCoords().y;
      if(cycles == 3)
      {     
         jPrint("jPFMove_LX trying to move again");
         jOffsetClick(jCoord(getRandomArbitary(-2,2),getRandomArbitary(-2,2)),1,0);
         jSleep(500);
         jPFMove(point);
         cycles = 0
      }
      cycles++;
   }
   jPrint("jPFMove ended");
}

function getRandomArbitary(min, max)
{
  return Math.random() * (max - min) + min;
}

Last edited by windmaker on Sun May 10, 2015 10:41 pm, edited 2 times in total.
Image #swag
User avatar
windmaker
 
Posts: 1855
Joined: Thu Mar 29, 2012 7:08 am
Location: in the forum where some mods are fags.

Re: how its your lag now? - WTS sheeps edition

Postby spawningmink » Sun May 10, 2015 10:25 pm

script isnt wokring for me, starts then ends idk whats going on
ChildhoodObossite wrote:I actually lowkey admire Frosty, sometimes he can be a really cool guy

spawningmink
Under curfew
 
Posts: 2630
Joined: Wed Mar 26, 2014 7:19 pm

Re: how its your lag now? - WTS sheeps edition

Postby Robben_DuMarsch » Sun May 10, 2015 11:33 pm

How are so many sheep/pigs alive? Shouldn't the pregnant ones eat so much of the grass that they die from starvation, and therefore can't self-sustain at these numbers?

Can they live just because its so much grass?
User avatar
Robben_DuMarsch
 
Posts: 1629
Joined: Wed Sep 28, 2011 2:58 am

Re: how its your lag now? - WTS sheeps edition

Postby LadyV » Sun May 10, 2015 11:42 pm

Sheep don't eat as much as other animals so they are more likely to survive being pregnant with only grass to eat. So they reproduce and grow to the catastrophic point.
User avatar
LadyV
 
Posts: 3114
Joined: Wed Jan 25, 2012 2:34 am

Re: how its your lag now? - WTS sheeps edition

Postby storkie » Mon May 11, 2015 12:00 am

ill come help :D
storkie
 
Posts: 32
Joined: Sun May 10, 2015 11:48 pm

Re: how its your lag now? - WTS sheeps edition

Postby VDZ » Mon May 11, 2015 12:54 am

overtyped wrote:How did this sheep apocalypse even start? Did someone do it intentionally with this in mind?


I doubt it, considering it only reached its current state after a very long time - I first spotted the flock on July 9th, 2014, but back then it was much more subtle and not at all problematic. You'd need to have a lot of patience to do this intentionally.
User avatar
VDZ
 
Posts: 2660
Joined: Sun Jul 17, 2011 2:27 am

Re: how its your lag now? - WTS sheeps edition

Postby LadyV » Mon May 11, 2015 1:26 am

I put some time in at PiggySeason. It is getting better. We have the same issue there as with the sheep. Breeding females are stuck on deep water tiles and will still get pregnant and give birth. When they do those animals will be displaced to land and the cycle will repeat. If there is a way to kill them someone please do. Only other thing i can think of if they cant be killed is place onjects in a certain range along the shore to block new babies from appearing. I really dont know how far they will displace though.
User avatar
LadyV
 
Posts: 3114
Joined: Wed Jan 25, 2012 2:34 am

Re: how its your lag now? - WTS sheeps edition

Postby Arcanist » Mon May 11, 2015 1:45 am

Since they have to make contact to become pregnant, I doubt that any of the waterbound females are pregnant.
User avatar
Arcanist
 
Posts: 2664
Joined: Mon Mar 19, 2012 2:01 pm

Re: how its your lag now? - WTS sheeps edition

Postby LadyV » Mon May 11, 2015 1:51 am

Arcanist wrote:Since they have to make contact to become pregnant, I doubt that any of the waterbound females are pregnant.



Are you sure about that?

I've had animals separated by a fence get pregnant. They are the same distance out int he water as if being divided by a fence. It may happen. :?:
User avatar
LadyV
 
Posts: 3114
Joined: Wed Jan 25, 2012 2:34 am

Re: how its your lag now? - WTS sheeps edition

Postby Arcanist » Mon May 11, 2015 1:57 am

I'm not sure, but I've never had animals seperated by a fence get pregnant.
User avatar
Arcanist
 
Posts: 2664
Joined: Mon Mar 19, 2012 2:01 pm

PreviousNext

Return to The Inn of Brodgar

Who is online

Users browsing this forum: No registered users and 2 guests