Jump to content

Snowydell

Members
  • Posts

    109
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by Snowydell

  1. 0541034336.png

     

    maybe have a go and check before asking?

    I did for 10 minutes. Couldn't find it. Anyways though, I know it checks if it's attackable but does it check if the npc has the option to be attacked or if you can now attack it.

     

    Edit: Never knew there was an index to search in. My bad.

  2. What does this do? For example will it check if the npc is attacking someone else and return false or only checks if the npc isn't interacting with anything at all? Thanks

  3. They are indeed different.

    npc != null is referred to as a "null check". npc.exists() is a call from an object through a variable.

     

    npc is a "reference variable" - a variable used to "point" to an object. When a reference variable does not point to an object, it points to "null".

     

    The object contains the actual exists() method, not the variable. If npc is not pointing to an object, it cannot properly call the method, resulting in a NullPointerException.

     

    Unless you are 100% sure npc will not contain null, you do not need the null check. Although, if there's a possibility it will be null, you need the null check before you attempt to call npc.exists().

     

    This is basic Object Orientation. If you'd like to know more, feel free to message me smile.png (don't be shy)

    Thank you I appreciate the help :)

  4. I'm going to get back into scripting bots hopefully and want to know if I use a throwaway account to test the scripts if they will ban my other accounts too?

    • Like 1
  5. Hello everyone. I quit Runescape and coding bots months ago and that is why there was no update on the state of this script. I still enjoy programming however and want to continue making bots when I have the free time. One of the big reasons I stopped was because of lack of time in my day. Hopefully soon I can come back and start developing bots as school is over in a few weeks and I will have a lot of time on my hands. I want to hopefully release this bot but I will probably have to update it and I also have to add Grand Exchange support to it but that should only take a day or two.

  6. The map positions of tutorial island are dynamic.

    You'll have to be able to use configs or color for proper AI.

    You are stuck at the first interface of the island, there are easily 50+ in total.

    It doesn't hurt to try, but it's one of the harder scripts just a heads up ^^

    Good luck!

    *Deleted*

  7. if(getInterfaces().containingText("Use the buttons below to design your player") != null)

    {

    mouse.click(258,288, false);

    }

     

    I believe it's not working because the interface is still technically open but it is just closed once you accept it so it keeps on clicking. How would I make it where if those words disappear off the screen it will be nulled and not click anymore. Thank you :p

     

     

×
×
  • Create New...