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
  • Entity clickable shape/points


    ozeki6

    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

    Archived

    This topic is now archived and is closed to further replies.

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