Page 1 of 1

Targeting

Posted: Thu Nov 18, 2004 11:43 pm
by tadaka
Im trying to figure out how to target what ever is close to me that I can cast on. Every thing I try ends up with targeting mobs behind walls and such any help would be great thanks.

Posted: Fri Nov 19, 2004 12:04 am
by ieatacid
F8? :roll:

or

/keypress f8

from within a macro.

Posted: Fri Nov 19, 2004 9:12 am
by eqjoe
You could create an event when you get the line of sight message, then take that mob's spawn id out of your targeting array.

-j

Posted: Fri Nov 19, 2004 10:26 am
by blueninja
Spawn.LineOfSight

Posted: Fri Nov 19, 2004 11:00 am
by A_Druid_00
That's how I ended up doing it in my Assist healing portion of my druid mac. Feel free to butcher it to your liking. I'm not sure if there's a way to check LoS without actually targetting the mob.

Code: Select all

/varset NPCsInRange ${SpawnCount[npc radius 200 zradius 20]} 
/for index ${NPCsInRange} downto 1 
/if (${index}<=0) /goto :HealCycle 
/varset NPCArray[${index}] ${NearestSpawn[${index}, npc].ID} 
/next index 
/for index ${NPCsInRange} downto 1 
/squelch /target id ${NPCArray[${index}]} 
/if (${Target.LineOfSight}) { 
  /assist 
  /delay 5 
  /call ShouldIHeal 
} 

Re: Targeting

Posted: Fri Jan 02, 2026 10:25 pm
by xyilla

Re: Targeting

Posted: Fri Jan 02, 2026 10:26 pm
by xyilla

Re: Targeting

Posted: Fri Jan 02, 2026 10:30 pm
by xyilla

Re: Targeting

Posted: Fri Jan 02, 2026 10:31 pm
by xyilla

Re: Targeting

Posted: Fri Jan 02, 2026 10:32 pm
by xyilla

Re: Targeting

Posted: Fri Jan 02, 2026 10:33 pm
by xyilla

Re: Targeting

Posted: Fri Jan 02, 2026 10:35 pm
by xyilla

Re: Targeting

Posted: Fri Jan 02, 2026 10:36 pm
by xyilla

Re: Targeting

Posted: Fri Jan 02, 2026 10:38 pm
by xyilla