June 1, 20169 yr 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, 20169 yr by sarthycool
June 1, 20169 yr 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?
June 1, 20169 yr Author 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?
June 1, 20169 yr 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); }
June 1, 20169 yr 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
Create an account or sign in to comment