Jump to content

Neanel

Members
  • Posts

    26
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

1067 profile views

Neanel's Achievements

Bronze Poster

Bronze Poster (2/10)

5

Reputation

  1. 150M as Easy Money offered is a reasonable price, you probably won't find much lower.
  2. Do you see your script in the script selector? You need to click the refresh button in order for it to update
  3. It should work fine, as Tom said above make sure you spell the item correctly (case sensitive). If it still doesn't work, post the actual code perhaps something else is wrong.
  4. For 1: https://osbot.org/api/org/osbot/rs07/api/map/Area.html Make an area of the chicken pen & check if the bones are inside this area.
  5. So could you post the log output? Then it'll be clearer what the problem is
  6. Could you place a log in all your statements & show us the output? Place variables in the logs so you can track them.
  7. Are you checking if the player is already in the area before calling the webwalk event? Otherwise it would just be stuck in a loop. if suddenly you’re script isn’t doing anything you might wanna reinstall everything & check if there are no nullpointers when assigning a value to a variable.
  8. Place a log after "execute(webEvent)" & see if it ever gets there, if it does you know the problem is indeed with webwalking, when do you exactly call this function? If it's not, place logs throughout the script & see which one shows up last to know where exactly it failed.
  9. Those functions have a margin of +-6, I believe. But as zwaffel mentioned both return a boolean either way. Or you could check if the currentPitch is within 6 of the targetPitch. Or you could keep recalling the function until it has the exact position you want.
  10. You would lose a huge number of lines & your code would be a lot more readable if you can get Explv's sleep method to work, so might want to look into that first. Did you copy his class & put into a java file called Sleep.java? Make sure that the class/constructor name is the same as whatever your file is called. Then import said file to your script & use it as shown in his post. If it still doesn't work, post here what errors it gives you so I know what the actual problem is Neanel
  11. Hey there, I've been looking into walkPath for some time now as it seems to be the most efficient way to go to certain areas without using too much RAM (Looking at you, webwalk). This worked fine but when I moved to my next script, there were obstacles in the way & as you know; walkPath does not handle obstacles. So the simple solution was of course too split up the paths & handle the objects after each sub-path, which again worked fine, but gave me too much things to keep track of so I started searching for a solution to walk a path while handling any obstacle in the way (or at least gates & stairs), which I did not find. I decided to make a solution for this problem & I've been making great progress, but I hit another problem: When you go up for example up/down certain ladders, the z-position doesn't change but instead the x/y-position changes completely (like +5000), which made me unable to sort the getPath of a WalkingEvent by distance of the player thus making it hard to determine if a player can or can't reach the next position. Which leads me to my question, how do I get the next position that my player will try to walk to when using walkPath, considering that a player can start in the middle of the path & will still go to the next one? There's probably a simple solution that I overlooked (I hope). Thanks in advance, Neanel TL;DR: How to determine next position of walkPath?
×
×
  • Create New...