Jump to content

KMJT

Members
  • Posts

    305
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by KMJT

  1. Just converted one of my smaller scripts - Tutorial island script - for OSBot 2. Took me about several hours to get a hang of the API. Another several to actually change the code. Now, after all this time, I run the script to see how it runs. I seriously was naive enough to believe it would run.

     

    Well, it doesn't.

     

    ColorPickers method, isColorAt() - http://osbot.org/osbot2_api/org/osbot/rs07/api/ColorPicker.html

    Does not work (throws more nullpointers then me searching for my biological parents).

    java.lang.NullPointerException
    at org.osbot.rs07.api.ColorPicker.isColorAt(jf:41)
    
    My script is entirely based on ColorPicker.

    I use ColorPicker for my tutorial script too QwPha8E.png Not looking good for us lol

  2. getMessage(), searchInterfacesForText(String text), etc are all broken.

    You're correct when saying that the hook is broken.

     

    It's not broken on all situations, I know that much. Example: "Click here to continue" returns fine.

     

    You won't be able to check based on the text.

     

    You can try to find a specific interface parent/child to look for.

    Probably going to have to focus on the parent/child ID's of the "Click here to continue"

     

    If you're selecting a chat option, the interfaces should still be available for each one.

    If there are not options for specific chat actions, you can just use continueDialogue(), which will return true if the "Click here to continue" is available, false if it is not there.

     

    You can use isInDialogue(), but this only works in the dialogues where the NPC is saying something to you, I believe.

     

    If you can tell me one thing, I may be able to suggest a course of action.

    Are there any conversation instances where you select an option of chat?

    Example:

    NPC says "Can you take the quest?"

    >click "Click here to continue"

    >4 options come up

    "That's much too scary for me!"

    "I can take the quest."

    "Your face is ugly."

    "Thanks!"

     

    If any of these situations happen, let me know so I can more accurately give advice. ^.^

    Yes, there are times during the chat where I need to choose from a number of options (for example, 4 different choices). It is not all just a "click here to continue" chat. Cheers.

  3. When you search for the string it's case sensitive and you have to include the punctuation, have you tried that?

    Yes, it is the exact case sensitivity and punctuation.

    I still don't see any way in the API to confirm that certain text is in the npc chat interface. I debugged the interfaces in game and even when I hover over the text sentence, it does not highlight, making me believe it isn't even hooked? Before I remember when I hovered over the sentences, they would highlight. For example, the first sentence is 0, 2nd is 1, and so on. This is how I used to confirm text in an interface. But now I can't even do that? No clue what to do.

  4. Yes using setRunning(true) with orbs is broken, the hooks will be updated in the next release as for the moment just turn the orbs option off and it will work as normal or alternatively interact with the interfaces using your own method.

    What are orbs? >.<

  5. This is the method I used to use with no problem but lately it does not seem to work anymore:

    private boolean isTextInOpenInterfaces(String message)
    {
        return searchInterfacesForText(message) != null && !searchInterfacesForText(message).isEmpty();
    }
    
    
    It is returning false even when the String is clearly in the chat interface. It was working fine before for months.
    
    • Like 1
  6. This is from non-osbot2 api. Is setRunning(true) broken? If so are there any plans to fix it?

    This does not turn run on, just spams before and after:

    public int onLoop() throws InterruptedException
    {
        log("before");
        setRunning(true);
        log("after");
    		
        return 50;
    }
    
  7. Just a simple tool for bank sales.

     

    As example:

     

    You advertise ON YOUR OWN for a bank sale, 

    when you get traded, you run your script and it moves all items but gold that you have in your inventory 

    into the trade.

    So literally all you want is a script that when you are in trade, you start the script, and it puts everything in your inventory into the trade, then stops?

  8. -Fight cave for fire cape.

    -Barbarian assult (torso mode and so on)

    -Farming script with alch/fletch support

    - What i would love to see -> all in mover (moves all items in inventory into the trade, very usefull for bank sales)

     

    Good luck with your project smile.png

    Can you elaborate on the thing that moves all items in inventory?

  9. Hello. Looking for a new project.

    - Nothing like quests

    - Nothing that is already clearly out (if there is already a "blast furnace" script for example, not going to create another one unless it is outdated)

  10. What is your problem exactly? Unless i'm wrong.. the picture looks like old school runescape? In which case for every new account they make they have to waste their own money. If this is your way of asking what to do about it -- you can always get a scripter to make you a spam kicker script.

×
×
  • Create New...