PDA

View Full Version : Is there any way to see if a npc is on the screen?



Unfold
04-22-2015, 09:48 PM
I'm making a simple combat script.

I bot sometimes clicks on the npc that are hidden from bad camera angles. It successfully attacks the npc, but it would impossible for a human to know that an npc was there.

Is it possible to detect if the npc is on screen without using color. Or is color my only option?

Obscurity
04-22-2015, 09:54 PM
https://villavu.com/forum/showthread.php?t=112599

https://villavu.com/forum/showthread.php?t=112486

Unfold
04-23-2015, 01:51 PM
https://villavu.com/forum/showthread.php?t=112599

https://villavu.com/forum/showthread.php?t=112486

I think those are for rs3 only.

anoobis
04-23-2015, 01:55 PM
I imagine you could check the getmspoint result with something like pointinbox taken from the client window of the size you like.

Flight
04-23-2015, 01:56 PM
https://villavu.com/forum/showthread.php?t=112599

https://villavu.com/forum/showthread.php?t=112486

This question is regarding OSRS via the Reflection include.

@Unfold:
The (Lape) Reflection include does has a function to tell if an NPC is on the main screen by determining if the NPC's global tile is within the main screen. With the current set of hooks available for Reflection that's as close as you'll get. Should we ever be able to hook models then we'll have a much more accurate way of finding NPCs/Objects/Players on the main screen.

function TReflectNPC.IsOnMS: Boolean;

Unfold
04-23-2015, 08:02 PM
This question is regarding OSRS via the Reflection include.

@Unfold:
The (Lape) Reflection include does has a function to tell if an NPC is on the main screen by determining if the NPC's global tile is within the main screen. With the current set of hooks available for Reflection that's as close as you'll get. Should we ever be able to hook models then we'll have a much more accurate way of finding NPCs/Objects/Players on the main screen.

function TReflectNPC.IsOnMS: Boolean;


Thank you very much!