|
wulv Newbie
Joined: 01 Oct 2004 Posts: 9
|
Posted: Tue Oct 05, 2004 9:28 am
Spell Capture |
Good Day,
I am trying to set up a routine that will capture what spells I currently have memmed and place them in a set of variables so taht I can simply "relearn" upon death and it will mem all the spells I have set.
Here is the output from the mud:
You have memorized the following spells:
( 3rd circle) 1 - jar the soul
( 2nd circle) 1 - bless
1 - cure serious
4 - spiritknife
( 1st circle) 3 - cure light
4 - totem darts
You can pray no more spells.
What I am trying to make is somethign that will allow me to type "relearn" and it will mem all these spells. I can do this now but I have to enter it manually...was thinking it shoudl be easy enough to do it by triggers. But so far I'm coming up short.
Thanks ALOT! |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Oct 05, 2004 3:01 pm Re: Spell Capture |
#TR ms {You have memorized the following spells:} {#VAR memspells {}}
#COND {(%d) - (*)} {#ADDK memspells {%2} {%1}} {Looplines|Param=99}
#TR {You can pray no more spells} {#STATE ms 0}
#AL relearn {#LOOPDB @memspells {#LOOP %val {pray %key}}} |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
|
|