ozeki6 32 Share Posted October 25, 2019 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 More sharing options...
Defiled 424 Share Posted October 26, 2019 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 More sharing options...
ozeki6 32 Author Share Posted October 26, 2019 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 More sharing options...
Nuclear Nezz 2061 Share Posted October 26, 2019 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 More sharing options...
ozeki6 32 Author Share Posted October 26, 2019 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 More sharing options...
Nuclear Nezz 2061 Share Posted October 26, 2019 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.