Jump to content

Psvxe

Members
  • Posts

    235
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by Psvxe

  1. Well basically I need to store data of interfaces.

     

    The problem is that it's too slow and the interface is gone by the time it actually 'shoots' the image. Which leaves me with a screenshot of nothing useful. 

     

    ImageIO.write(ctx.getColorPicker().getBufferedImage(), "JPG", new File(System.getProperty("user.home") + "\\OSBot\\Data\\screenshots\\" + i.getId() + ".jpg"))){

     

     

    So next thing what came up in my mind was to get the widgets of the interface, which was pretty useless since the parts I'd need from the interface couldn't be stored.

     

    And yes, I know the code only works for windows.

  2. I know how to write files with java... I just wanted to know if you had to write files to a certain working directory. Or if we can write files to anywhere.

     

    Anywhere.

     

    I'd store data in the osbot data dir. 

  3. Just incase you want a fast way to make yourself the paths ; http://osbot.org/forum/topic/61609-path-generator-zwalker-portre-release/

    Look at the mediafire link in the replies from elliot wink.png

     

    Already got basic working of webwalking working. Few small problems but nothing that breaks the whole script.

     

    Have to add teleport and shit now. Thinking of a logical way of handling that without using tons of codes.

     

    Thanks anyway wink.png

  4. Yes I do understand the problem. But if you don't want to implement the A* algorithm and you create your vertices/edges in such a way that with teleports you only have to traverse like 6 edges to get pretty much anywhere (a lot of walking can be done locally), you can get away with a much simpler, but less efficient algorithm (breadth-first search for example).

     

    How am I supposed to get the mapData? 

  5. Or if performance is not really an issue, you don't want to spend too much time on it and 1-2s of computation is perfectly fine: BFS

     

    The problem is; if I don't create a webwalker I've to create over 80 paths and then I'm not even started with teleporting.

  6. Hey guys, 

     

    For a project I'm making I need to travel trough whole Runescape. Now as you could guess, I'm not going to predefine every path. But the problem is I don't know how to make a webwalker. 

     

    Could someone give me a push into the right direction? Don't need to be spoonfeeded.

  7. I've tried a few things but none of them do exactly what I want it to do.

     

    I don't want to write up all kind of food but instead I want to figure out what they use as food by checking their inventory. Now the problem is that they coud have different items beside food too in their inventory. 

    This is why I came up with the idea to filter the items by the menu action they have. However, the API doesn't contain a method for that.

     

    So now I'm working on my own method.

     

    This is my concept idea;

     

    1. Get all items in inventory and put them in a arrayList
    2. Figure out if items in inventory has the action "Eat"
    3. If not, remove from arrayList.

    Now I'm just not sure how I'm going to create this.

     

    Any help is welcome!

×
×
  • Create New...