Jump to content

Pegasus

Lifetime Sponsor
  • Posts

    424
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by Pegasus

  1. On 7/28/2018 at 2:03 AM, HeyImJamie said:

    Can I ask why you'd force people to download a sample rather than just making the text area editable?

    Because it is hard and unnesscary.😁

     

    The sample file is just area examples.

    You can edit/copy the sample file to edit the area and settings.:doge:

     

    Whatever, this thread is old.:ditto:

  2. 24 minutes ago, asdttt said:

    Probably everyone already knows this one, but proxies/vpn's that are blacklisted as so on OSRS put you into a higher detection algorithm and therefor possibly lead to a faster ban, assuming your script isn't already quickly picked up. Either a higher level detection algorithm, or the heuristic checks flag at lower levels vs ISP IP addresses. Tested this on 2 VPN alts, and 2 ISP alts (Both ISP IP's being different of course). Neither one of the ISP alts got banned for 5 hours of botting clay whereas both the VPN's got banned. Also had 6 hours breaks every 2 hours and 30 minutes. Maybe just a coincidence, maybe real.

    you use free or paid vpn?

  3. 14 minutes ago, HunterRS said:

     

    I use Tasks in my code so verify is essentially how I check if I should attempt to log in

     

    
    @Override
        public boolean verify() {
            return getLobbyButton() != null || !isLoggedIn();
        }
    
    private RS2Widget getLobbyButton() {
    
            RS2Widget button = null;
            try {
                button = script.getWidgets().getWidgetContainingText("CLICK HERE TO PLAY");
            }
            catch (NullPointerException e) {
                script.log(e);
            }
            return button;
        }
    
    public boolean isLoggedIn() {
            return isHopping() ||
                    script.getClient().getLoginStateValue() == 30 ||
                    script.getClient().isLoggedIn();
        }
     public boolean isHopping() {
            return script.getClient().getLoginStateValue() == 45 ||
                    script.getClient().getLoginStateValue() == 25;
        }
     

    Thanks.<3

    It works.

    How do you know what do the values of getLoginStateValue() represent?

     

  4. 16 hours ago, hreyvirtue said:

    If the client isn't logged in, then the login event executes, that's the point of that script

    Set it on loop and adds sleeps if you need to

     

    I mean login event execute is not working.

    It is because

    getBot().isLoaded() is not working

    it return true even the client is still downloading data from official game.

     

     

  5.  

    1 hour ago, hreyvirtue said:

    image.png.1800c28c880e7362f802586a65173b0b.png

    What does your script look like? Does it just execute the login script immediately after the client begins launching?

    that script won't work.

    How can the client get login before login event execute ?

  6. getBot().isLoaded() is not working

     

     

    @ Override
        public final int execute() throws InterruptedException {
            if (!getBot().isLoaded()) {
                return 1000;
            } else if (getClient().isLoggedIn() && getLobbyButton() == null) {
                getBot().getScriptExecutor().resume();
                setFinished();
            } else if (!getBot().getScriptExecutor().isPaused()) {
                getBot().getScriptExecutor().pause();
            } else if (getLobbyButton() != null) {
                clickLobbyButton();
            } else if (isOnWorldSelectorScreen()) {
                cancelWorldSelection();
            } else if (!isPasswordEmpty()) {
                clickCancelLoginButton();
            } else {
                login();
            }
            return random(100, 150);
        }

     

    I got this NPE :

    java.lang.NullPointerException
        at org.osbot.rs07.api.Widgets.getWidgetContainingText(tl:727)
        at com.iaox.farmer.handlers.LoginEvent.getLobbyButton(LoginEvent.java:140)
        at com.iaox.farmer.handlers.LoginEvent.execute(LoginEvent.java:37)
        at org.osbot.rs07.event.EventExecutor$2.run(zj:230)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

  7. I encounter this problem now too but It happens occasionally.

    When acceptTrade is not working mouse will hovers over the decline button same as yours.

    If it start to not working , it will continue not work even I reopen trade window.

    I need to restart client to make it work

  8. I google with keyword "isLoaded osbot"

    I visited this page :

    https://osbot.org/api/org/osbot/rs07/Bot.html

    It shows 500 Internal Server Error
    This class still exists in osbot client

    intellij doesn't report any error when I use getBot().isLoaded();

     

     

    getBot().isLoaded() is not working

    it return true even the client is still downloading data from official game.

  9. On 10/1/2018 at 3:21 AM, Dab in a Lab said:

    After I was done running the debugger, it wouldn't rebuild my jar file and it lost the JDK for the module. Is there a proper way to stop the debugger?

    My classes all changed to this: https://gyazo.com/31f882c551a2235cf509a487c5d8924b  

    I ended up making a new project and just copy and pasted the code into it. Couldn't figure out how to fix it otherwise 

    I have encountered the same issue.

    Select "Inherit project compile output path" should help

×
×
  • Create New...