Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Client can't detect quest finished


    Lem0nz

    Recommended Posts

    int notStartedColor = 16711680;
    int inProgressColor = 16776960;
    int finishedColor = 901389;
    				
    int sheepShearer = getQuestIndex("Sheep Shearer");
    
    int textColor = getWidgets().getWidget(399).getChild(6).getChild(sheepShearer).getTextColor();
    		
    if(textColor == notStartedColor) {
    	log("Quest has not been started");
    }else if(textColor == inProgressColor) {
    	log("Quest is in progress");
    }else if(textColor == finishedColor) {
    	log("Quest is finished");
    }
    public int getQuestIndex(String questName) {
    	WidgetChild[] quests = getWidgets().getWidget(399).getChild(6).getChildren();
    	for(int i = 0; i < quests.length; i++) {
    		if(quests[i].getText().equals(questName)) {
    			return i;
    		}
    	}
    		
    	return -1;
    }


    Here's a work around until fixed.

    Link to comment
    Share on other sites

    7 hours ago, Milasoft said:

    Those enum values aren't updated anymore. You will have to check them manually using player settings.

    That's a sad fucking story 😕

    7 hours ago, numberkarl said:
    
    int notStartedColor = 16711680;
    int inProgressColor = 16776960;
    int finishedColor = 901389;
    				
    int sheepShearer = getQuestIndex("Sheep Shearer");
    
    int textColor = getWidgets().getWidget(399).getChild(6).getChild(sheepShearer).getTextColor();
    		
    if(textColor == notStartedColor) {
    	log("Quest has not been started");
    }else if(textColor == inProgressColor) {
    	log("Quest is in progress");
    }else if(textColor == finishedColor) {
    	log("Quest is finished");
    }
    
    public int getQuestIndex(String questName) {
    	WidgetChild[] quests = getWidgets().getWidget(399).getChild(6).getChildren();
    	for(int i = 0; i < quests.length; i++) {
    		if(quests[i].getText().equals(questName)) {
    			return i;
    		}
    	}
    		
    	return -1;
    }


    Here's a work around until fixed.

    I appreciate that, saved me a couple of time +1 xD

    Link to comment
    Share on other sites

    • 2 months later...
    On 6/18/2019 at 4:33 PM, Nuclear Nezz said:

    I wasn't aware these were broken, I'll try to take a look at them today.

    were these ever fixed?  

    Link to comment
    Share on other sites

    2 minutes ago, Nuclear Nezz said:

    Oh my bad

    I'll work on this right now, I have some other fixes that need to be released as well.

    thank you nezz <3

    Link to comment
    Share on other sites

    8 minutes ago, Nuclear Nezz said:

    If you want to update client and test quests, they should be working now. (hopefully)

    Out of the house currently but will give it a shot tonight. Thanks a ton for fixing that!  Let's me remove some work arounds I made lol. 

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.