|
Motient Beginner
Joined: 14 Mar 2004 Posts: 18 Location: USA
|
Posted: Wed Aug 18, 2004 4:02 pm
Autoprac Trigger help |
I have a autoprac trigger like this that works I am trying to find a way to place variables that if it hits a certain number for when it is maxed it would then go to the next one on a specified list any ideas? IE Armor 90, Meteor Showers 77
#ALARM "castSpell" {1} {cast Spell}
#TRIGGER {You haven't the energy to cast that spell.} {#ALARM "castSpell" {1} {prac 'spell'};w}
#TRIGGER {^2852hp 2913m 832mv~>} {e;#ALARM "castSpell" {1} {cast Spell}} "" {nocr|prompt}
The alarm casts the spell once a second, in order to eventually run you out of mana.
Thanks |
|
|
|
Falan Wanderer
Joined: 17 Aug 2004 Posts: 98 Location: OK, USA
|
Posted: Thu Aug 19, 2004 11:04 am |
I know it's quaint, but would something like this work?
Code: |
#CLASS CastSpellAlarm {0|disable}
#ALARM {1} {cast %item( @SpellList, @SpellCount)}
#CLASS 0
#CLASS PracSpellAlarm {0|disable}
#ALARM {1} {prac %item( @SpellList, @SpellCount)}
#CLASS 0
#VAR SpellList {Armor|Meteor Showers}
#VAR SpellMax {90|77}
#VAR SpellCount {1} {1}
#AL learnspells {#T+ CastSpellAlarm}
#AL stoplearn {#T- CastSpellAlarm; #T- PracSpellAlarm; SpellCount=1}
#TR {You haven't the energy to cast that spell.} {#T- CastSpellAlarm; #T+ PracSpellAlarm; w}
#TR {^2852hp 2913m 832mv~>} {e; #T- PracSpellAlarm; #T+ CastSpellAlarm} "" {nocr|prompt}
#TR {pattern to match max number (%d)} {
#IF (%item( @SpellMax, @SpellCount)=%1) {#ADD SpellCount 1}
}
|
|
|
_________________ zMUD 7.05a |
|
|
|
Motient Beginner
Joined: 14 Mar 2004 Posts: 18 Location: USA
|
Posted: Thu Aug 19, 2004 5:39 pm Autoprac trigger completed |
This is what it looks finished all are in classes so when you the stop triggers it won't interfere when you move back to the healers for when you have completed practicing
For non offensive spells use this
Code: |
#CLASS CastSpellAlarm {0|disable}
#ALARM {3} {cast '%item( @SpellList, @SpellCount)'}
#TR {You haven't the energy to cast that spell!} {#T- CastSpellAlarm; #T+ PracSpellAlarm; e}
#CLASS 0
#CLASS PracSpellAlarm {0|disable}
#ALARM {15} {prac %item( @SpellList, @SpellCount)}
#TR {5770m 1843mv~>} {w; #T- PracSpellAlarm; #T+ CastSpellAlarm} "" {nocr|prompt}
#TR {%item(*)(%d)} {#IF (%item( @SpellMax, @SpellCount)=%1) {#ADD SpellCount 1}}
#CLASS 0
#VAR SpellList {enchant armor|dispell magic|wind wall}
#VAR SpellMax {61|61|55}
#VAR SpellCount {1} {1}
#AL learnspells {#T+ CastSpellAlarm}
#AL stoplearn {#T- CastSpellAlarm; #T- PracSpellAlarm; SpellCount=1} |
For offensive spells use
Code: |
#CLASS CastSpellAlarm {0|disable}
#ALARM {5} {cast '%item( @SpellList, @SpellCount)'dummy}
#TR {You haven't the energy to cast that spell!} {#T- CastSpellAlarm; #T+ PracSpellAlarm; flee}
#CLASS 0
#CLASS PracSpellAlarm {0|disable}
#TR {PANIC! You couldn't escape!} {flee}
#ALARM {15} {prac %item( @SpellList, @SpellCount)}
#TR {5770m 1843mv~>} {w; #T- PracSpellAlarm; #T+ CastSpellAlarm} "" {nocr|prompt}
#TR {%item(*)(%d)} {#IF (%item( @SpellMax, @SpellCount)=%1) {#ADD SpellCount 1}}
#CLASS 0
#VAR SpellList {enchant armor|dispell magic|wind wall}
#VAR SpellMax {61|61|55}
#VAR SpellCount {1} {1}
#AL learnspells {#T+ CastSpellAlarm}
#AL stoplearn {#T- CastSpellAlarm; #T- PracSpellAlarm; SpellCount=1} |
|
|
Last edited by Motient on Tue Sep 07, 2004 1:25 pm; edited 1 time in total |
|
|
|
Motient Beginner
Joined: 14 Mar 2004 Posts: 18 Location: USA
|
Posted: Mon Sep 06, 2004 3:10 am Autoprac Trigger opinions? |
what does everyone think of this
|
|
|
|
|
|