July 4, 20178 yr Hi, I'm making free fire giant killer script with safepot. Script is attacking fire giant and detecting if player stands on safespot, if not ->move to safe spot. But I have issue there, cause safe spot is on the same x,y as doors. safespot -> light green doors -> yellow. Does any1 can explain me, why walker is not moving to this spot? If i get boolean from walker().walk(), it returns true, but mouse if not moving. EDIT: walker moves only if player stands 2 squares away, if 1 not. Edited July 4, 20178 yr by Efpkaf
July 4, 20178 yr That's because the walker uses a default of a 2 tile distance. If you want to walk to a tile exactly, you need to make a WalkingEvent. This will explain everything you need to know about walking:
July 4, 20178 yr Author 1 hour ago, Imateamcape said: That's because the walker uses a default of a 2 tile distance. If you want to walk to a tile exactly, you need to make a WalkingEvent. This will explain everything you need to know about walking: Cheers mate
July 4, 20178 yr Author 4 hours ago, Imateamcape said: That's because the walker uses a default of a 2 tile distance. If you want to walk to a tile exactly, you need to make a WalkingEvent. This will explain everything you need to know about walking: Do you have any example for it? I get NPE at walkingevent.execute. WalkingEvent walkingEvent = new WalkingEvent(); walkingEvent.setMinDistanceThreshold(0); LinkedList<Position> positions = new LinkedList<>(); positions.add(path[0]); walkingEvent.setPath(positions); walkingEvent.execute();
July 4, 20178 yr 5 minutes ago, Efpkaf said: Do you have any example for it? I get NPE at walkingevent.execute. WalkingEvent walkingEvent = new WalkingEvent(); walkingEvent.setMinDistanceThreshold(0); LinkedList<Position> positions = new LinkedList<>(); positions.add(path[0]); walkingEvent.setPath(positions); walkingEvent.execute(); Use the execute method in the MethodProvider class: execute(walkingEvent) Not: walkingEvent.execute();
July 4, 20178 yr 3 hours ago, Efpkaf said: Do you have any example for it? I get NPE at walkingevent.execute. WalkingEvent walkingEvent = new WalkingEvent(); walkingEvent.setMinDistanceThreshold(0); LinkedList<Position> positions = new LinkedList<>(); positions.add(path[0]); walkingEvent.setPath(positions); walkingEvent.execute(); yeah, there's a bunch of examples on there, just look through the guide haha...
July 4, 20178 yr Author 7 minutes ago, Imateamcape said: execute(walkingEvent) Not: walkingEvent.execute(); You killed me with this... Im such of idiot
July 4, 20178 yr 9 minutes ago, Efpkaf said: You killed me with this... Im such of idiot .... did you replace @Explv's name with mine lol