Jump to content

Mr def nerd

Members
  • Posts

    1363
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    84.2%

Posts posted by Mr def nerd

  1. Okay, so I just finished fairy rings for my web walker. I know there was a tutorial released a while back, but I can't seem to find it, so I am releasing this. I have an enum for the location codes, but its not done yet so I am not releasing it yet

     

    To see it in action, please visit this post

     

    The fairy ring class

    import org.osbot.rs07.api.ui.RS2Widget;
    import org.osbot.rs07.script.MethodProvider;
    
    public class FairyRing {
    	
    	public static String[] LETTERS = {"a", "d", "c", "b", "i", "l", "k", "j", "p", "s", "r", "q"};
    	
    	private MethodProvider ctx;
    	public FairyRing(MethodProvider ctx) {
    		this.ctx = ctx;
    	}
    	
    	public boolean setRing(String combination) {
    		if (ctx.widgets.isVisible(398)) {
    			for (int i = 0; i < 3; i++) {
    				long start = System.currentTimeMillis();
    				int value = getValue(""+combination.charAt(i));
    				while (getRowConfig(i) != value && System.currentTimeMillis() - start <= 4000) {
    					RS2Widget w = ctx.widgets.get(398, 19 + (i * 2));
    					if (w != null) {
    						if (w.interact("Rotate clockwise")) {
    							try {
    								MethodProvider.sleep(MethodProvider.random(1000, 1250));
    							} catch (InterruptedException e) {}
    						}
    					}
    				}
    			}
    			if (isValid(combination)) {
    				return clickTeleport();
    			}
    			return false;
    		}
    		return false;
    	}
    	
    	private boolean clickTeleport() {
    		RS2Widget w = ctx.widgets.get(398, 26);
    		if (w != null && w.isVisible()) {
    			return w.interact("Confirm");
    		}
    		return false;
    	}
    	
    	public boolean isInterfaceOpen() {
    		return ctx.widgets.isVisible(398);
    	}
    	
    	public boolean isValid(String combination) {
    		for (int i = 0; i < 3; i++) {
    			int value = getValue(""+combination.charAt(i));
    			if (getRowConfig(i) != value)
    				return false;
    		}
    		return true;
    	}
    	
    	public int getValue(String letter) {
    		for (int i = 0; i < LETTERS.length; i++) {
    			if (letter.toLowerCase().equals(LETTERS[i])) {
    				return i % 4;
    			}
    		}
    		return -1;
    	}
    	
    	public int getRowConfig(int row) {
    		switch(row) {
    			case 0:
    				return ctx.configs.get(816) & 0x3;
    			case 1:
    				return (ctx.configs.get(816) >> 2) & 0x3;
    			case 2:
    				return (ctx.configs.get(816) >> 4) & 0x3;
    		}
    		return 0;
    	}
    
    }
     

     

    Use as

    instance.setRing("dkr");
    
    • Like 8
  2. Leech? FUCK. I'll give you as many fucking proggies as you ever want if the script actually functions properly, if I don't post a proggy it means the script couldn't run without fail for over 12 hours and such does not deserve a proggy. (Just my opinion)

     

    I try my best to give all the information about the faults of scripts straight to the people making them to make them better, the fact that I can't post proggies tells something about the quality of the script. It doesn't help that every now and then you come back to your bot and notice one of the following: It's either dead from a failed chicken/whatever or it has been teleported away and been afk for 3-4 hours there just sitting about in the middle of nowhere.

     

    I understand the client sucks dick. But from my perspective, that doesn't really matter now does it?

    Well, the thing is that every issue you posted above is directly linked to the clients random handler, which is not the scripts fault. So that is really all that matters.. I think its a bit harsh to say that a script does not deserve a proggie if it can't run for 12 hours when half of the clients random event solvers are broken and the script itself might be fully functional and flawless

    • Like 2
  3. I wouldn't mind if people didn't leech. All I expect back are proggies once in a while, but I mostly get leechers complaining as soon as Jagex makes an update or the client isn't working, which I cannot stand.

    I can agree with this. If the script is flawless and there are no issues the script thread will just be completely dead. Once jagex makes an update, or an OSBot update causes the script to slightly fail, the thread will be filled up with leechers complaining. 

    • Like 3
  4. So an OSD can lose to an SDN scripter, even if their script is 10 times better, just because they don't live up to the code expectations of an OSD? That's absolutely retarded.

    I agree so much. Everyone should be judged the same way. It would be retarded to have a decent script winning over a great script because the great script was made by an OSD and the decent script was made by SDN scripter

    • Like 1
  5. I can create a TOS saying that i may kill everyone who accept it, but that doesn't gives me the right to do it.

    Osbot is a dutch company and the Netherlands have their rules for it.

    Well, of course you can create a ToS that says you may kill someone, but then you will be breaking the law. They are not breaking the law when they say that they have the right to stop supplying you with scripts, and since you accepted that, you can't complain about how they don't have the right to do it.

  6. Thanks for following up and your work on this script.

     

    You can un-auth me, I believe that there are people who be better testers than I and put this time to better use than I can.  I keep erroring and maybe it's because of my setup but I'm not sure I have the time to provide good feedback for you.  

     

    One bug to report for now though, which is what stopped me from getting a proggy--sometimes will detect a birds nest when none is present.  Powerchopping willows in a secluded place (pm if you want to know badly).  Maybe look into the method for checking this?

     

    Again, I love your scripts--thank you for all you do.  Best wishes for development and this trial period!

    Na, its not any issues with your setup. The reason to why it keeps trying to loot anything other than nests is that it haven't been updated for almost two days. The reason to this is because it was finally updated yesterday, but due to a small error with the obstaclehandler from my fighter in the dependencies, the woodcutter wouldn't compile, and therefore it is still experiencing the same issue

  7. I dont know if the script is supposed to actually, after inventory full goes to the verock shops and then goes back to bank and then deposit > continue cutting trees then repeat same verock shop thing.

    Unless something went wrong with the mapdata (which happens really rarely), it should walk straight to the varrock bank. None of the tiles behind the bank is defined in the script. Try reloading the client and check if it works better then

  8. Well when it was stuck at bank thats the only error I saw and in the status it said "banking" and about the burnt chicken I just noticed its picking up ashes aswell and said "Looting nests" while doing so.

    Hmm, was your inventory full and did it actually open the bank? It might be caused by me using a new method to detect which bank to use

  9. Hi thanks for the trial, I've been running the script for 15 mins now and I decided to baby sit it, im woodcutting normal trees at varrock east and after it banked the bot randomly picked up burnt chickens and then continued to woodcut with them in the inventory, it's a minor bug just thought i'd let you know

     

    Edit: Now its stuck at bank

    3644e326c60f42f71d3633d0048c4892.png

    Hmm, I need some more information for the stuck in bank as the error is not related to it :/, also for the burnt chicken I am looking into it, I think it was because I missed one thing in the filter

  10. Could I get a trial aswell?

    can i get a trial? im working on my wcing atm

    Authed both of you the script

     

    Awesome, thank you.

     

    Am using it now, only bug is that if it tries to loot nests with a whole bunch of logs on top of it, it will fail to do so if nest is buried and take option is not on screen and will start taking logs until the logs have disappeared.  I'm not sure if this can be amended, but just a heads up.

    I see, the only way I think I can prevent this is to filter it out if there are more than X amount of items on the same tile as it

     

    Okay, I won't be able to auth other users until the 48 hours are up, therefore I will be making a queue list

     

    EDIT: Also don't forget to post proggies in the original script thread as I need some proggies aswell

  11. It is in theory ready for release, but if it is released I won't really have time to add new content to it as I have a lot of other scripts I have to take care of now

  12. wrXkznp.png

    Did you use to have this script? PM @Ericthecmh to get a free 30 day trial of the OSBot 2 version!

     

    Hello everyone, I will be giving out free trials for my woodcutting script, in order to get a free trial you must do the following:

     

    • Reply below that you want to test it
    • Not be an old user of the script (Old users will get 30 days free trial once one of the script managers get online)
    • Once you get the script, I will require bug reports/proggies to know that the script is functioning

    Maximum 5 people can have trials at a time, and I will remove your trial after 48 hours, here is the list of users with trial:

    Queue list of people gettng trial:

     

    You can find the thread with all the script features and link to the store here

×
×
  • Create New...