ausmatt Posted September 18, 2014 Posted September 18, 2014 Hi guys, I'm trying to set an area and run to it how would I go about doing this?
Extreme Scripts Posted September 18, 2014 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
ausmatt Posted September 18, 2014 Author Posted September 18, 2014 (edited) Hi, Thanks, ill give it a try. Edited September 18, 2014 by ausmatt
Botre Posted September 18, 2014 Posted September 18, 2014 log("We are in that area, time to have Sex!"); :')
ausmatt Posted September 18, 2014 Author Posted September 18, 2014 thanks got it working. Now, how do I make an interface?