Jump to content

Vurqol

Members
  • Posts

    9
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Vurqol's Achievements

Newbie

Newbie (1/10)

3

Reputation

  1. @Durky Fixed it... I was going off the basis that slot 28 in the inventory is 28. However Java starts at 0. Making it 27.
  2. Still looking for help if anyone can
  3. So I'm trying to use a specific inventory slot on another specific inventory slot. However there are 14 of each of the item in the inventory. There is simply no interface to "Make all" So having the items next too each other in the inventory and then having the script execute it so the slots are used on each other is better Or else it's just using slot 1 and slot 15. which is half the inventory away. These items also move around and it's more effective too have the item in the bottom two slots as you can spam it and make two in a tick if done correctly, this cannot be achieved if they are half an inventory away and such it's inefficient.
  4. I'm currently trying something like this getInventory().interact(23); log("Slot 23 Selected"); new ConditionalSleep(1500) { @Override public boolean condition() throws InterruptedException { return inventory.isItemSelected(); } }.sleep(); getInventory().interact(28); log("Slot 28 Selected"); new ConditionalSleep(1500) { @Override public boolean condition() throws InterruptedException { return !inventory.contains(""); And while I have gone ahead and tried "Use" on both interacts. It's only interacting with one of them and rolling through it saying that it has executed the other but only doing the first, The code works when I use another interact but instead I don't use the second slot. Making what I'm after just a little bit inefficient Note, both slots only require a left click **edit I have taken another look at the API and noticed that there's a few "interacts with first item matched" Is there a "last item matched" ?
  5. How would I go about swapping items and how could I make the script interact with two inventory slots? Help is much appreciated! Thanks!
  6. Vurqol

    "Or" ||

    I hadn't seen this anywhere in snippets over a quick glimpse. Could be used to avoid a setting in a GUI, or shortening some code, making something look neater, all comes down to preference. if (Banks.FALADOR_EAST.contains(myPlayer()) && getInventory().contains("Rune essence") || getInventory().contains("Pure essence")); walking.webWalk(ENTRANCE);
  7. I'll start off by saying I'm really new here ? So I use to code a lot probably close to 7 - 8 years ago, I still have a general grasp on things, but I didn't know anything in relation to osbot Last night I created something, there were errors right before the update. No issue there, I'll just start something simpler tomorrow and work my way up I thought to myself. Started on a script this morning, put a few hours into it without testing it. Then comes the time I test it. Frustration kicks it, I fix the code (Little did I know nothing was wrong with the code, It's Thursday) I try again.. Same thing, object errors, no interactions. I make the code more efficient, I make it longer, I make it shorter, I try everything that I could have.. I try a mining script that's on here. Same thing. I look at the forums.. I read that it's because of the Thursday update, I felt a little silly but also happy.. I'll be able to test my script once osbot is fully functional ? But this taught me a few things. 1. I can stretch and shrink the code as much as I want, it's still the same result. 2. Actually specify what you want your code to do.. Coding is a little like writing, you can only have something to work with once you actually start working..
×
×
  • Create New...