Jump to content

nickeb0i

Members
  • Posts

    38
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by nickeb0i

  1. You made a dog's dinner of exporting the script into a Jar. I'm astounded, truly. You have BoltMaker jar nested within itself like 6-layers-deep lol. And then there's "hej.jar", "wheat.jar", "RQ Tutorial Island.jar" and "AIOCombat.jar" packaged inside the Jar too. smile.png Looks nice though!

     

    I gotta check it out :doge:

  2. BoltMaker

    Uses feathers with any unf bolts to make bolts.

     

    Supports

    Bronze bolts (unf),
    Iron bolts (unf),
    Steel bolts (unf), 
    Silver bolts (unf), 
    Mithril bolts (unf), 
    Adamant bolts (unf), 
    Runite bolts (unf), 
    Unfinished broad bolts

    mAa732v.png

     

    Download

     

    PM me if you find any bugs or if something isn't working.

  3. I get this error

    [iNFO][bot #1][01/20 07:40:25 em]: WebWalkingEvent; Could not execute! next = Walk => [x=3013, y=3332, z=0]; ready = { [] }

    when trying to walk this area Area(3022, 3314, 3018, 3318)

  4. See my updated post, there are more errors tongue.png

     

    Thank you, how do I fix this

            case FISH:
                Entity spot = objects.closest("Fishing spot");
                if (spot != null) {
                    inventory.interact("Use", "Small Fishing Net");
                    if (inventory.isItemSelected() == true)
                    spot.interact();
                }

    so it recognizes fishing spot as a NPC?

  5.  

    Fishing spot is an NPC.

     

    Also use the built in bank method:

    if(!getBank().isOpen()){
    
        getBank().open();
        new ConditionalSleep(5000) {
            @Override
            public boolean condition() throws InterruptedException {
                return getBank().isOpen();
            }
        }.sleep();
    }
    

     

    Thank you very much, been looking for this :)

     

  6. Where abouts are you fishing? You haven't created a path way to get to the bank.

    Entity bank = objects.closest("Bank booth");

    That will only pick up a bank thats within range of your camera angle :/

     

    Are you sure? I think you mean if it's in a range within the minimap? :)

  7. Hello I'm new around here and I'm trying to learn how to script.

    I want to give something to the community but I have to learn to code first ;)

    My problems:

    • I have to have a small fishing net in my inventory or it wont open bank and get one
    • If I have a small fishing net it opens bank then closes then opens and continues like that
    	private enum State {
    		FISH, BANK, WAIT
    	};
    
    	private State getState() {
    		Entity stall = objects.closest("Fishing spot");
    		if (inventory.isEmpty() && !inventory.contains("Small fishing net"))
    			return State.BANK;
    		if (stall != null && inventory.contains("Small fishing net"))
    			return State.FISH;
    		return State.WAIT;
    	}
    
    	@Override
    	public int onLoop() throws InterruptedException {
    		switch (getState()) {
    		case FISH:
    			Entity spot = objects.closest("Fishing spot");
    			if (spot != null) {
    				inventory.interact("Use", "Small Fishing Net");
    				if (inventory.isItemSelected() == true)
    				spot.interact();
    			}
    			break;
    		case BANK:
    			Entity bank = objects.closest("Bank booth");
    			if (!inventory.contains("Small fishing net"))
    				getBank().withdraw("Small fishing net", 1);
    			if (bank != null) {
    				bank.interact("Bank");
    				sleep(random(500, 700));
    				getBank().depositAllExcept("Small fishing net");
    			}
    			break;
    		case WAIT:
    			sleep(random(500, 700));
    			break;
    		}
    		return random(200, 300);
    	}
    
×
×
  • Create New...