[Fwd: Re: [TF] recasting]
Brought to you by:
kenkeys
|
From: jobs at sans.c. (jobs) - 2003-04-02 14:15:25
|
I decided to go a different route with what I was trying to do.
Rather than have a trigger to recast anything that I lose concentration on I would only have it do
it on those spells that I wanted. So i tried to this:
/def -F -ag -mregexp -t'You lost your concentration while trying to cast (.*).' casting = \
/echo -aBCyellow %P1%;\
/if %P1 == Infravision|\
Sense anger\
/then cast "%P1"
c infravision
infravision <---Failed casting and its yellow :-)
% casting: warning: statement starting with '%' in /IF condition sends text to
server, which is probably not what was intended.
% casting: macro syntax error: expected /then, found end of body.
c "sense anger"
Sorry Vitae, you can't do that. <---response from it trying recast infravision
sense anger <---Failed casting and its yellow :-)
% casting: warning: statement starting with '%' in /IF condition sends text to
server, which is probably not what was intended.
% casting: macro syntax error: expected /then, found end of body.
That is not a command. Type 'Commands' for a complete list. <---response from it trying recast
sense anger
NOTE: The different responses are just the way the mud send errors and are random and dont mean
that that is the msg i get everytime for each spell.
I tried this several diff ways
/if P1 == Infravision|\
/if (%P1 == Infravision|\
/if (%P1 == (Infravision|\
/if (P1 == Infravision|\
/if (P1 == (Infravision|\
And in all cases I get errors.
Starting to think that this is all senseless and i should stop trying to make my life easier :-(
Also pretty confused as to why it says the there was no /then command.....it's right there...
--
Jason Weiss
Technical Recruiter
SANS Consulting, Inc.
90 John street, #313
New York, NY 10038
Phone: 212-616-4800
Fax: 212-616-4805
Email: Ja...@sa...
AOL Instant Messenger: JasonWSans
|