ausmatt Posted September 18, 2014 Share Posted September 18, 2014 Hi guys, I'm trying to set an area and run to it how would I go about doing this? Link to comment Share on other sites More sharing options...
Extreme Scripts Posted September 18, 2014 Share Posted September 18, 2014 Well firstly you would define your area: Area areaName = new Area(xMin,yMin,xMax,yMax);Then of course you just check if your player is in that area and walk to it: if(!areaName.contains(myPlayer())){ localWalker.walk(areaName.getRandomPosition(0)); } else { log("We are in that area, time to have Sex!"); }Didn't look in the API it's just off the top of my head but I think that's all the correct methods. You should take a look in the API yourself to learn. 2 Link to comment Share on other sites More sharing options...
ausmatt Posted September 18, 2014 Author Share Posted September 18, 2014 (edited) Hi, Thanks, ill give it a try. Edited September 18, 2014 by ausmatt Link to comment Share on other sites More sharing options...
Botre Posted September 18, 2014 Share Posted September 18, 2014 log("We are in that area, time to have Sex!"); :') Link to comment Share on other sites More sharing options...
ausmatt Posted September 18, 2014 Author Share Posted September 18, 2014 thanks got it working. Now, how do I make an interface? Link to comment Share on other sites More sharing options...