Jump to content

Czar

Discord Helper
  • Posts

    20532
  • Joined

  • Last visited

  • Days Won

    1780
  • Feedback

    100%

Posts posted by Czar

  1. doesnt seem to equip arrows when low. it ran out and didnt equip the arrows in my invent.

     

    Thanks!

     

     
    inventory.interact("Bronze Arrow", "Wield");
     
    changed to:
     
    inventory.interact("Wield", "Bronze Arrow");

     

    I did it the wrong way round, updated. biggrin.png

     

    Update will arrive when the script is pushed by staff.

     

    EDIT: The latest update is v3.52.

  2. Good man!

     

    After a little tweaking with settings and such I think I've figured it out! Maybe you could add in the description to have right click only on because once I put that on I had no more problems biggrin.png

     

    That's actually a good idea, but what about clicking the target?

  3. It ran away although since its my pure its hp gets rekt unsure.png maybe its just me

     

    Nope. The customer is always right. I will add several more if-statements to the clicking code to make sure it doesn't attack the rangers :D

     

    Sorry!

  4. Decent script, but i found that over an hour it attacked an archer twice during 2 different sessions, maybe you can look into this, almost died ohmy.png

     

    I will get right on it. It ran away in combat ? Or not?

     

    EDIT: It's working fine so far, I'll keep testing it.

  5. If you need to get familiar with API: http://osbot.org/api

     

    For interfaces, you can do interfaces.get(30).interact("Close"); as an example,

     

    For walking, localWalker.walk(pos);

     

    If you are using Eclipse, just type "this." and wait, it will open a popup of suggestions etc and you can see what variables there are, e.g. camera.toEntity, mouse.move

     

    PM me if you need more help :D

  6. Make a new text file and name it run.bat, make sure its an actual .bat file and not .txt.bat, and put this in:

    @echo off
    title OSBot
    java -jar osbot.jar
    pause
    
    EDIT: If you're having trouble with file extensions just enable file extensions for known file types in folder options.
  7. 					if (p.getInterfaces().get(300).isValid() && p.getInterfaces().get(300).isVisible()) {
    						// store is open
    						if (p.getStore().contains(1337)) {
    							if (p.getStore().buy("czar", 1)) {
    								return 1000;
    							}
    						}
    					} else {
    						Entity shopkeeper = p.npcs.closest("Shopkeeper");
    						if (shopkeeper != null) {
    							if (shopkeeper.interact("Trade")) {
    								return 1000;
    							}
    						}
    					}
    

     

    That's for buying something from shop,

     

    As for the 'dropping gold', check if inventory is full, not if inventory isn't empty

     

    !getInventory().isEmpty()        -->>> getInventory().isFull()

     

    PM me if you need more help :D

  8. Haha do you think you can make a script that goes to the wild where the steel plates are and banks those for money, low money p/hr but dont think that would be a high ban rate. If not its fine

     

    Is this for iron man? If so I have a better way and my iron man script will be out soon biggrin.png

     

    As for the smelter script, I just assisted http://osbot.org/forum/user/49898-edoggydogg/ on making a flawless smelting script in which he will release smile.png

     

    Hlyfbcn.pngV9espuZ.png

×
×
  • Create New...