Jump to content

the bad doc

Members
  • Posts

    32
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by the bad doc

  1. gl on release

     

    Pretty straightforward, buys bone bolt packs at the Dorgesh-kaan mines, unpacks them and hops when shop runs out of stock.

     

    Needed it for myself and thought might as well release it in case anyone else ever needs it.

     

    Download jar: https://drive.google.com/open?id=0B5zfq4J918uyZHc1YTJMWEM3QUU

     

    Source:

     

    import org.osbot.rs07.api.model.NPC;
    import org.osbot.rs07.api.ui.Message;
    import org.osbot.rs07.script.Script;
    import org.osbot.rs07.script.ScriptManifest;
    import org.osbot.rs07.utility.ConditionalSleep;
    
    @ScriptManifest(author = "Temsei", info = "Bone Bolt Buyer", name = "Bone Pack Buyer", version = 0, logo = "")
    public class Buyer extends Script {
     
        @[member='Override']
        public void onStart() {
        }
        
        private enum State {
    		BUY, UNPACK, WAIT
    	};
    	
    	
    	private State getState() {
    		if (!inventory.isFull())
    			return State.BUY;
    		if (inventory.isFull())
    			return State.UNPACK;
    		return State.WAIT;
    	}
    	
    	public void buyBolts() throws InterruptedException {
    		NPC npc = npcs.closest("Nardok");
    		if (!inventory.isFull() && npc != null){
    			npc.interact("Trade");
    			new ConditionalSleep(3000) {
    				@[member='Override']
    				public boolean condition() {
    					return store.isOpen();
    				}
    			}.sleep();
    			if (store.isOpen()) {
    				while (store.getAmount("Bone bolt pack") > 0 && !inventory.isFull()) {
    					store.buy("Bone bolt pack", 10);
    				}
    				if (store.isOpen())
    				store.close();
    			}
    		}
    	}
    	
    	public void unpackBolts() throws InterruptedException {
    			while (inventory.getAmount("Bone bolt pack") > 0) {
    				inventory.getItem("Bone bolt pack").interact("Open");
    		}
    	}
    	
    	public void onMessage(Message message) throws java.lang.InterruptedException {	
    		String txt = message.getMessage().toLowerCase();
    		if (txt.contains("stock")) {
    			worlds.hopToP2PWorld();
    		}
    	}
     
        @[member='Override']
        public int onLoop() throws InterruptedException {
        	switch (getState()) {
        	case BUY:    		
        	buyBolts();
        	break;
        	case UNPACK:   		
        	unpackBolts();
         	break; 		
    	default:
    	break;  
        	}
        	return random(200, 300);
        } 
    } 

     

     

  2. 452c670e35cb2f45f8b08aac87dbde71.png

    03d8f8e3c8328050fbd6e0642251ef04.png

    I guess I just don't see how this is profitable seeing the trade prices?

    Firstly thank you to temsei for the release. It took me 3 weeks of wc to get about 600k, and then over night I managed to make enough for a bond!!!!

    Thank you so much!!

    Secondly meako don't make bread dough bro!! Pastry dough and pizza dough is what I did and I made like 110-170 profit per!

  3. Script name Khal Yak slayer


    - trial length 2 days


    - Reason for trial -Looking to purchase the yak bot, but just want to test it out for some time before making the commitment! 


    - Are you ging to give feedback on the script? 


     


    100%! Whether or not I like it, whether or not I purchase, I will make an honest review and provide feedback!


     


    <3


     


     


    • Like 1
  4. cheers thanks will try that now

     

    EDIT: just tried - deleted everything OSBot from my computer and same problems persists.

     

    EDIT2: also checked using java uninstall applet to remove any old java versions and it couldn't find any.. 


    OKAY I FIGURED IT OUT!

     

    I had to go into add/remove programs - I had two versions of the same Java, I uninstalled the older one (installed earliest date) and then OSBot worked!

     

    Thanks for the help guys.

  5. Yeah make sure your Java is the newest version and delete your old versions.

    You've probably already tried but try re-downloading OSbot.

     

    As well as your anti-virus or windows defender might be blocking it. smile.png

     

    Yup I've downloaded latest Java and deleted the old ones, also tried re-dling OSbot several times too! 

     

    Anti-virus + firewall disabled and no luck!

×
×
  • Create New...