Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Entity clickable shape/points


    ozeki6
     Share

    Recommended Posts

    I need to get the clickable points/shape of an entity. I need this for a zulrah script to write my own interact method since dreambot's method is not reliable enough for my purpose.
    I only need the area where I can interact with the entity.

    Link to comment
    Share on other sites

    Hi,

    Area you trying to get the model of the NPC?

    Then use the getModel() method in the DB API.

    https://dreambot.org/javadocs/org/dreambot/api/wrappers/interactive/NPC.html#getModel--

    As from my understanding you're trying to get the places of interaction on the NPC (Clickable Areas right?), you can use the getClickablePoint() method!

    I suggest you take a look at the methods declared right here in the links:

    https://dreambot.org/javadocs/org/dreambot/api/wrappers/interactive/Model.html

    https://dreambot.org/javadocs/org/dreambot/api/wrappers/interactive/Entity.html

     

    I hope this helps!

    Link to comment
    Share on other sites

    2 hours ago, ItsDefiled said:

    Hi,

    Area you trying to get the model of the NPC?

    Then use the getModel() method in the DB API.

    https://dreambot.org/javadocs/org/dreambot/api/wrappers/interactive/NPC.html#getModel--

    As from my understanding you're trying to get the places of interaction on the NPC (Clickable Areas right?), you can use the getClickablePoint() method!

    I suggest you take a look at the methods declared right here in the links:

    https://dreambot.org/javadocs/org/dreambot/api/wrappers/interactive/Model.html

    https://dreambot.org/javadocs/org/dreambot/api/wrappers/interactive/Entity.html

     

    I hope this helps!

    I used most of the method and they are not reliable. I need to know if there is a way of getting the clickable area/shape of an npc if it is possible. There is no other way around it.

    Link to comment
    Share on other sites

    1 hour ago, ozeki6 said:

    I used most of the method and they are not reliable. I need to know if there is a way of getting the clickable area/shape of an npc if it is possible. There is no other way around it.

    You could try getCenterPoint, and create a small area from that.

    I thought getModel used getAnimatedModel, but it might actually not. I'm setting getAnimatedModel to no longer be protected for the next client release. That may solve your issues, as well.

     

    Edit: For future use, to use getAnimatedModel, you should do character.getAnimatedModel(character.getModel())

    Link to comment
    Share on other sites

    28 minutes ago, Nuclear Nezz said:

    You could try getCenterPoint, and create a small area from that.

    I thought getModel used getAnimatedModel, but it might actually not. I'm setting getAnimatedModel to no longer be protected for the next client release. That may solve your issues, as well.

     

    Edit: For future use, to use getAnimatedModel, you should do character.getAnimatedModel(character.getModel())

    Ok. Thanks !

    Link to comment
    Share on other sites

    7 minutes ago, ozeki6 said:

    Ok. Thanks !

    Scrap that on the animated model, it might require some updating, I'm not sure we've used animated models in a minute. I looked at it a little bit, it doesn't seem to work.

    I"d suggest going back to just using getCenterPoint and creating a small area from that, see if that works for what you need it for.

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.