Jump to content

Khaleesi

$250.00 Donor
  • Posts

    25721
  • Joined

  • Last visited

  • Days Won

    201
  • Feedback

    100%

Posts posted by Khaleesi

  1. 1 hour ago, Midweak said:

    Like if it would just click towards the guardian it would be fine but it just sits there instead "looking for the guardian"

     

    Also just to clarify when i saw behind the work bench i do mean like in between the front gate and the table.

    Khal Guardians of the rift updated to V1.30:
    - Fixed issue with finding rift guardian

    Will be live soon!
    Enjoy

  2. 1 hour ago, Midweak said:

    Hi! My bot constantly gets stuck behind the work bench with status saying "Cant find guardian" is there a way to fix this?

    How does it even get behind the workbench?
    Will check it out

  3. 2 minutes ago, anthonychloeaj said:

    they get distracted every 90 seconds for about 17 to 18 pickpockets that u never fail on and doesnt require any food at all thats why i was wondering . no failing at all through that method. but for a script i guess i get the point since its doing it for you lol.

    Ya, it does priorizes those npcs when it detects a kid luring one, but it does not afk in between those

  4. 1 minute ago, anthonychloeaj said:

    ive been running fruit stalls and cake stalls with no food its been working havent had to have food yet, sure i will soon though.

     

    Ya those should work without ^^

  5. 5 minutes ago, anthonychloeaj said:

    does this support uim at all like if i steal from a stall will it only drop the items i steal or my whole invy? jw lol

    It should only drop items that you can thief from stalls :)
    But you will need food for the script to work

  6. 17 hours ago, Alakazizam said:

    Yeah that's what I wound up doing. Working on a plank script and sometimes I'm just trying to get the logs to the sawmill so having an option 'Sawmill' will select to send to the sawmill of the amount from the previous trip which would set it to less than a full amount after restocking.

     

    if(dialogues.isPendingOption()){
                        if(widgets.get(219, 1, 1) != null && widgets.get(219, 1, 1).isVisible()){
                            RS2Widget myWid = widgets.get(219, 1, 1);
                            if(myWid.getMessage().equals("Take to sawmill: 26 x Mahogany logs")){
                                if(inventory.contains("Mahogany logs")) {
                                    if (dialogues.selectOption("Take to sawmill: 26 x Mahogany logs")) {}
                                } else {
                                    useLogsOnButler();
                                }
                            } else if(myWid.getMessage().equals("Take to sawmill: 26 x Teak logs")){
                                if(inventory.contains("Teak logs")) {
                                    if (dialogues.selectOption("Take to sawmill: 26 x Teak logs")) {}
                                } else {
                                    useLogsOnButler();
                                }
                            }
                        }
      
      //etc.

    This is pretty much what I have going on now.

    You can put multiple messages in there if you wanna do it like that, 

    if (dialogues.selectOption("Take to sawmill: 26 x Mahogany logs", "Take to sawmill: 26 x Teak logs")) {}


    and you can just improve this piece of code like this: (widget ids can change once in a while if new things get added or UI changes)

    RS2Widget toSawmillWidget = getWidgets().getWidgetContainingText(219, "Take to sawmill:");
            if (toSawmillWidget != null && toSawmillWidget.isVisible()) {
                // Either interact
                if(toSawmillWidget.interact()){
                    
                }
                
                //OR do a keyboard press, usually it's alway on 1 I assume?
                if(getKeyboard().typeKey('1')){
                    
                }
            }else{
                useLogsOnButler(logName);
            }

     

    • Like 1
  7. 11 hours ago, RagingRaccoon said:

    Script name Khal Woodcutter

     

    - trial length 2 or 3 days would be amazing!

     

    - Reason for trial - Looking to purchase a Woodcutting script as your doing trials id love to give it a bash!

     

    - Are you ging to give feedback on the script? Definitely anything to help improve the script when the trials over, i can share my experience

     

    Only doing 24 trials, Enjoy!

    • Like 1
  8. Khal FIsher (All in One) updated to V3.02:
    - Drift net  fishing - Drift net depositing nets amount check added to prevent storing nets if already at max amount.
    - Drift net  fishing - Dropping vials properly now

    Live soon!
    Enjoy!

  9. 12 hours ago, Alakazizam said:

    So I typically just do something along the lines of

    if(dialogues.isPendingOption()){
                        if(dialogues.selectOption("This")){}
                        else if(dialogues.selectOption("That")){}
                        else if(dialogues.selectOption("The other")){}
                    }

    I'm running into the issue where there's an option that contains the word "That" but is not only the word "That" but it is still trying to select it even though it's not what I need selected right here.
    Is there a way to make sure the dialogue option will only be selected if it contains ALL of what is in the string in the code?

    Could always write something yourself with widgets? :)

    RS2widget myOption = script.getWidgets().getWidgetContainingText(219, "My text");
    if(myOptyion !+ null && myOption.isVisible()){
       myOption.interact();
    }


    or even write that method yourself using equals instead of contains :)

    RS2Widget myOption = script.getWidgets().getAll().stream()
                            .filter(w -> w.getRootId() == 219)
                            .filter(w -> w.getMessage().equals("My Text"))
                            .findFirst().orElse(null);
    
    if(myOption !+ null && myOption.isVisible()){
       myOption.interact();
    }

     

    • Like 1
×
×
  • Create New...