sarthycool Posted June 1, 2016 Posted June 1, 2016 (edited) I have one script on SDN called gold amulet maker. It is supposed to go to furnace and bank area in al-kharid for making amulets. Sometimes, it do not walk to that place on its own. The script just does nothing if its not in the vicinity of the area. This is what i am practicing on. cow hide collector. It works fine when Moving from hide location to bank, banks the hides but does not go back to the cows. if (this.cows == null && this.inventory.isEmpty()) { this.walking.webWalk(new Position[]{this.cows}); this.hasMoved = false; This is a simple code condition which checks the cows and inventory state. If cows are not near and inventory is empty, it should go to the cows and collect hides. The script freeze at this point, does nothing. Any tips? Edited June 1, 2016 by sarthycool
itzDot Posted June 1, 2016 Posted June 1, 2016 don't use the web walker for things that are close by. also if the cows are null, how can it go to the cows?
sarthycool Posted June 1, 2016 Author Posted June 1, 2016 don't use the web walker for things that are close by. also if the cows are null, how can it go to the cows? Yes, you are right. How can I check to go to the cows again? And for nearby places, what can be used instead of web walker?
progamerz Posted June 1, 2016 Posted June 1, 2016 Yes, you are right. How can I check to go to the cows again? And for nearby places, what can be used instead of web walker? You will first have to create an area for the cows. After that: If (!CowArea.contains(myPlayer)) { walking.webWalk(CowArea); } 1
itzDot Posted June 1, 2016 Posted June 1, 2016 Yes, you are right. How can I check to go to the cows again? And for nearby places, what can be used instead of web walker? You can either just interact with the object or use waking event