Jump to content

Toph

Members
  • Posts

    608
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Posts posted by Toph

  1.  

    Why not just read the text from the clue interface? Instead of getting all 110 IDs. This leaves only the what ~10 map clue IDs.

    It doesn't matter whether I read from the interface or IDs I get the same result

     

    I know. That's why I'm saying read interface instead of getting IDs. Getting all 110 IDs may take weeks. Getting all the interface text will take like an hour of copying from the wiki. :D

  2. This will return the character that your fairy ring interface shows.

        public char getRingPosition(int ring)
        {
            int s = script.client.getConfig(816);
            int a, b, c;
            int shift = (1 << 6) - 1;
            s = s & shift;
            c = s >> 4;
            s -= c << 4;
            b = s >> 2;
            s -= b << 2;
            a = s;
            switch (ring)
            {
            case 0:
                switch (a)
                {
                case 0x0: return 'a';
                case 0x1: return 'd';
                case 0x2: return 'c';
                case 0x3: return 'b';
                }
                break;
            case 1:
                switch (b)
                {
                case 0x0: return 'i';
                case 0x1: return 'l';
                case 0x2: return 'k';
                case 0x3: return 'j';
                }
                break;
            case 2:
                switch (c)
                {
                case 0x0: return 'p';
                case 0x1: return 's';
                case 0x2: return 'r';
                case 0x3: return 'q';
                }
                break;
            }
            return 0;
        }
    
    • Like 1
  3. For some reason, OSBot doesn't have this already. So here:

    public boolean selectMenuOption(String action, String noun) throws InterruptedException
    	{
    		if (!client.isMenuOpen()) return false;
    		boolean found = false;
    		int index = 0;
    		List<Option> menu = client.getMenu();
    		for (; index < menu.size(); index++)
    		{
    			if (menu.get(index).action.equals(action) && menu.get(index).noun.contains(noun))
    			{
    				found = true;
    				break;
    			}
    		}
    		if (found)
    		{
    			int x = client.getMenuX();
    			int y = client.getMenuY() + 21 + index * 14;
    			return client.moveMouseTo(new RectangleDestination(x, y, client.getMenuWidth(), 10), false, true, false);
    		}
    		return found;
    	}
    

    Clicks a menu option from a currently visible menu.

    • Like 3
  4.  

    Meh. Not that important. Fix script writer payments first.

    It's still not working@?#?@#?

     

    Premium writers are continuously underpaid and it is unclear why. They have yet to release a more clear payment system. All we see are sales numbers and the payments we get. The numbers for payments do not match up with sales, with some people like me being short about $100. I personally am not updating any scripts until this is resolved. Sorry users, complain to admins if you don't like this.

  5. Well I'd start by looking at what numbers between 100,000 and 999,999 don't repeat any digits, and then figure out if those are "anagram numbers".

    The amount of numbers that don't repeat digits in that range are:

     

    9*9*8*7*6*5 = 136080.

     

    So you have 136080 numbers between 102,345 and 987,654 that don't repeat a digit. Then to check if they're anagram numbers, you have to do *at most* 8 multiplications of those numbers by a single digit 2 through 9. Lets say it takes 6 tries on average (assuming most numbers aren't anagram numbers). That's still only ~600,000 multiplications you have to do, which any modern-day computer could do very quickly.

     

    Edit: OH LOL I WAS LOOKING AT Q1 PART 3

  6. Oh also, when using 

    walker.walkPath(walker.randomizePath(toBank,2,2));
    

    in your loop, you're effectively calling the randomizePath function every time you loop around. Not only is this a huge waste of time/resources, but it also leads to the path being less "random". As you randomize it many times per tile walked possibly, you'd get a distribution centered toward your actual tile, rather than closer to true random. It's more like gaussian random.

    • Like 1
  7.  

     

    Can't wait to see all this Druid competition biggrin.png

     

    Honestly I would increase the price, $5 is way to low. When 5uck first released his it was around that price, and within weeks Druids were so heavily botted there were no free worlds and the method nearly died. The community themselves actually forced him to raise the price after awhile, which says something tongue.png

    Yeah I know, it'll be great tongue.png Mine's pretty simple, so I'm looking forward to seeing what you guys put together.

     

    What are you planning to price yours at then? It's such a simple script, I'd feel like a thief if I charged much more than $5.

     

    I'm not telling you how to price your script, by all means make it $5 or even less if you'd like! Just be careful to monitor what your script is doing to the RS economy and adjust prices accordingly.

     

    And I'm not joining in the Druid wars (see what I did there) I have enough premium scripts to manage and update right now smile.png

     

    Haha druid wars laugh.png

     

    Okay. I'll be releasing a beta to the Local Moneymaking forum very soon to see what users think of the super-beta version.

  8. Can't wait to see all this Druid competition biggrin.png

     

    Honestly I would increase the price, $5 is way to low. When 5uck first released his it was around that price, and within weeks Druids were so heavily botted there were no free worlds and the method nearly died. The community themselves actually forced him to raise the price after awhile, which says something tongue.png

    Yeah I know, it'll be great :p Mine's pretty simple, so I'm looking forward to seeing what you guys put together.

     

    What are you planning to price yours at then? It's such a simple script, I'd feel like a thief if I charged much more than $5.

  9. Aannnnndd I'm done! Just putting together the paint and GUI now.

     

    Edit: I'll go $5. May have to lower it if others put one out for lower, but we'll see :p

    • Like 1
  10. Sounds great, how far are you with it and what will price be? smile.png

    I'm basically pulling from my slayer script and making this a very specialized case, so I have most of the code written, but I literally just "started" this script. Just have to put it all together. Should have it working in about an hour :)

    I'm not sure yet on price.

    • Like 1
  11.  

    You should have it handle Doors and Gates if you want it to stand out...there's already a path walker, and you can add randomization it in like 5 minutes.

    Not sure what other path walker your talking about. This is easier as you can use cory's path grabber to grab the path array and then you can feed it as a parameter. The other path walkers use multi dimensional arrays which isn't practical.

     

    How is a multidimensional array not practical? Yours uses an array of Position objects. I'd say the multidimensional array is more practical in that it uses less memory because each "element" stores 2 ints rather than a Position object that is (slightly) larger than 2 ints. 

×
×
  • Create New...