Page 1 of 1

if target rang

Posted: Sun Sep 05, 2004 2:32 pm
by jcooler
whats the way to do

if target in rang of 30

Posted: Sun Sep 05, 2004 2:41 pm
by Sparr
it starts with a R
and ends with a TFM

Posted: Sun Sep 05, 2004 11:35 pm
by jcooler
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

Posted: Mon Sep 06, 2004 12:00 am
by hiipii

Code: Select all

/if (${Target.Distance}<=30) {
|-Whatever here-|
   }

Posted: Mon Sep 06, 2004 12:19 am
by wassup
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}

Posted: Mon Sep 06, 2004 2:19 am
by Cr4zyb4rd
if target rang, say hello!

Posted: Mon Sep 06, 2004 1:25 pm
by jcooler
hehe is there a way to target the person who HAILs you ?

Posted: Mon Sep 06, 2004 2:00 pm
by TheAFKBard
/tar npc radius 30
Use a blech event to target someone who hails you. RTFM

Posted: Mon Sep 06, 2004 4:21 pm
by wassup
TheAFKBard wrote:/tar npc radius 30
Use a blech event to target someone who hails you. RTFM
heh, you say RTFM, and can't even read his request:
but i wanna target the closest PC thats not myself

Posted: Mon Sep 06, 2004 4:53 pm
by jcooler

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"

how do i target the SENDER =)

[/b]