[TF] recasting
Brought to you by:
kenkeys
|
From: jobs at sans.c. (jobs) - 2003-04-03 21:05:56
|
K, once again decided to go a diff route and this time had success I was looking for (i think)
/def -p100 -ag -mregexp -E{spellsystem} -t'You lost your concentration while trying to cast \
(acidproof|\
infravision|\
sense anger).' spellup_casting_fail=\
/echo -aBCmagenta %P1%;\
/test store_spell("c '%P1'")
/def -p1 -ag -mregexp -t'You lost your concentration while trying to cast (.*).'
nonspellup_casting_fail = /echo -aBCyellow %P1
cast acidproof
cast infravision
cast 'sense anger'
cast scry
acidproof <---failed & in magenta & stored for recasting
infravision <---failed & in magenta & stored for recasting
sense anger <---failed & in magenta & stored for recasting
scry <---failed & in yellow & NOT stored for recasting
Looks good to me. I think, as usual, i was just over complicating the obviously easy :-(
jobs wrote:
> 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 testing it like 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"
>
> I cast infravision and sense anger at the same time and get:
>
> 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
|