Jump to content

Diclonius

Members
  • Posts

    1812
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    100%

Everything posted by Diclonius

  1. Why not just use DoorHandler doorHandler = new DoorHandler();if(doorHandler.handleNextObstacle(...)) { //can reach ...}when walking to each pointand why haven't you used the Math class etc, could make this a lot simpler and shorter. I didn't use the math class because I can't see how any of the methods could be used for what I wanted to do. If you could explain a better method, that would help me out .
  2. It gets a list, in order, of all the tiles along the line so that I can loop through them going up/down the line. Also I already explained why I didn't add door handling. I might give it a try though,
  3. I suppose I could try to implement the other door handling snippet that somebody posted but to be honest I can't really be bothered and I can see it causing some problems for example, if you wanted to walk from across Varrock from one corner to another, if one of the tiles it walks to is inside a building, it would go through opening that door and then by the time the door is open, it would probably be trying to walk inside a different building. I think it would be better to just code in doors yourself. A good way to detect if you need to open a door is using realDistance(Position). it will return -1 if the position is unreachable so make it a position on the side of the door you want to be on and it will return -1 if you need to open the door.
  4. It's cool though because the points can be as far away from each other as you like and it's randomized.
  5. If you used this code before this post, copy class code again because I fixed an error with straight lines.
  6. Usage: Place this somewhere in the class: Place this onStart: Create a new path like so, note that the positions can be as far away from each other as you like as this will walk along the lines between each position. For easy path generation, use this: http://osbot.org/forum/topic/13836-multi-path-recorder/ Walk like so: Class:
  7. Oh my god I just finished manually typing out a massive path.... Thanks anyway haha!
  8. I tried playing it for about an hour. Just didn't appeal to me since there was obviously a large learning curve. I generally prefer games that i can just jump straight into.
  9. Sounds interesting but in my eyes not necessary, well really I just can't be bothered to fix my scripts after the updates.
  10. Awesome . Good luck with your script!
  11. I did a bit of testing and it looks like the noun colour is the colour of the text and "<col=ffff00>" is the yellow colour and so we can use this to see if it is an NPC. if(myPlayer().getFacing() != null) { if(myPlayer().getFacing().getName().equals("Tree") && myPlayer().getFacing().nounColour().equals("<col=ffff00>")) { //chop a new tree } }
  12. Actually this did not work due to the fact that the name of the ent is the same as the tree. Okay well the ent is an NPC not an RSObject right? (yellow text instead of blue) so try: if(myPlayer().getFacing() != null) { if(myPlayer().getFacing().getName().equals("Tree") && myPlayer().getFacing() instanceof NPC) ) { //chop a new tree } } The text becomes yellow whenever the tree becomes an ent Then it is an NPC and the code I posted should work.
  13. Actually this did not work due to the fact that the name of the ent is the same as the tree. Okay well the ent is an NPC not an RSObject right? (yellow text instead of blue) so try: if(myPlayer().getFacing() != null) { if(myPlayer().getFacing().getName().equals("Tree") && myPlayer().getFacing() instanceof NPC) ) { //chop a new tree } }
  14. What is the name of the ent, is it "Ent"? Just do something like this: if(myPlayer().getFacing() != null) { if(myPlayer().getFacing().getName().equals("Ent") { //chop a new tree } }
  15. I think the most commonly used one is eclipse. It's what I use . There seems to be little debate over which IDEs are better. I think most people just use what they started with.
  16. If it can be implemented in a way that won't get abused then I think it's a good idea.
  17. I don't support this. It will just be abused by people creating lots of accounts.
  18. Does everybody have to go through the 10 day period? I have already been waiting for 46 days for my MTA script. It's nice to hear about some progress though.
  19. Very nice! I was just about to make something like this myself but then I saw then ! edit: I guess you didn't make it? You use it like this: Price price = PriceGrabber.getPrice("rune+axe");
  20. You should make it "Mod " not just "Mod". That way it will only log out if it's a jagex mod and not if their name just starts with Mod.
  21. To be honest it looks pretty bad. Just plain text would look better.
  22. How do you suggest training range? I won't do range guild and I'm level 65 so I'm too low level to chin properly.
  23. My friend who is dutch tried to get me to play GunZ. It was pretty weird. I can remember that to win everybody has to do some wierd air dash thing with the sword then swap to the shotgun then swap back and it just turns into a fuck fest of button mashing.
  24. Currently, that method can only be used on NPCs. This is the suggestion forum http://osbot.org/forum/forum/86-suggestions/
×
×
  • Create New...