SRL Archive - Help

Is there any way to see if a npc is on the screen?


Unfold

2015-04-22 17:48:23

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

2015-04-22 17:54:58

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

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

Unfold

2015-04-23 09:51:24

From: Obscurity
https://villavu.com/forum/showthread.php?t=112599

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


I think those are for rs3 only.

anoobis

2015-04-23 09:55:39

I imagine you could check the getmspoint result with something like pointinbox taken from the client window of the size you like.

Flight

2015-04-23 09:56:43

From: Obscurity
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

2015-04-23 16:02:18

From: Flight
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!