if target rang
Posted: Sun Sep 05, 2004 2:32 pm
whats the way to do
if target in rang of 30
if target in rang of 30
Need to talk about MacroQuest to other MacroQuest users?
https://mq64.org/phpBB3/
Code: Select all
/if (${Target.Distance}<=30) {
|-Whatever here-|
}
jcooler wrote:but i wanna target the closest PC thats not myself
so i got
/target ID ${NearestSpawn[2, pc].ID}
just wondering how to turn that into an iff statement where i target someone within a raidus of 30 thats not myself
Code: Select all
/target pc id ${Me.NearestSpawn[2,pc radius 30].ID}
heh, you say RTFM, and can't even read his request:TheAFKBard wrote:/tar npc radius 30
Use a blech event to target someone who hails you. RTFM
but i wanna target the closest PC thats not myself
Code: Select all
#include spell_routines.inc
#chat say
#event nomanna "#*#Insufficient Mana to cast this spell!#*#"
Sub Main
:loop
/doevents
/goto :loop
/return
Sub Event_Chat[(ChatType,[b]Sender[/b],ChatText)]
/if (${String.Equal[Hail, *myname here*]}) /call target
/return
Sub Target
/target pc ?????
/delay1
/cast "blah blah blah"