Jump to content

FyredUp

Members
  • Posts

    6
  • 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.

FyredUp's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. the interact function takes the params java.lang.String... actions meaning it can take any number of arguments, given they are strings. So it 'should' work, but it doesnt
  2. I am attempting to go through tutorial island and in the combat section, I am using getInventory().getItem(ITEM).interact("Wield", "Equip") to deal with being in the stats menu vs just equipping via inventory. However, it does not work and simply fails to find the option on the item. I can split it up into getInventory().getItem(ITEM).interact("Wield") and getInventory().getItem(ITEM).interact("Equip") and it works fine. Anyone have any clues as to what I may be doing wrong?
  3. After looking into it a bit, given the scripts know all the information about the player, I don't see any reason why getX() is any better than X. In the MethodProvider class, the variables are public and the getters simply return those variables. I would understand using a getting if the class did not extend MethodProvider, but the scripts do extend it. I would argue the *only* reason to use getters is in case X is no longer in the same space, but I don't see that changing.
  4. I've seen in multiple places instances of code that appears to perform identically given the objects are accessed differently. Off the top of my head there are: inventory and getInventory(), npcs and getNpcs(), objects and getObjects(). I'm just curious what the functional difference is between these two cases of accessing something? What should I prioritize using and why?
  5. Oh that's almost certainly it. Haven't gotten back to my computer yet but I'd bet money that's my issue. Thank you!
  6. I'm trying to learn how to make a bot and I'm not sure what I'm doing wrong. I've taken the skeleton code from here and set up IntelliJ to use the OSBot library so that all the keywords are recognized. When building the artifact jar there doesn't appear to be any issues, and I'm putting it into the OSBot scripts folder. When I open OSBot and hit refresh on scripts, the logger simply says "Failed to load local script : FirstBot.class". I did change the class name from Skeleton to FirstBot when I took the skeleton code. Does anyone have any guesses as to what I'm doing wrong?
×
×
  • Create New...