|
Ice Beginner
Joined: 07 Sep 2005 Posts: 12
|
Posted: Fri Jun 22, 2007 8:35 am
Need help converting Ninjas spellup script for Aardwolf |
Hey all, I've tried to convert this spellup script to CMUD format but I haven't got it working. Commands like these are the troublesome ones:
#Alias SpellupToBeRecast {<%db(@SpellupVar,AliasSoon)>}
and together with the need for %concat() or something everywhere, I'm lost in the converting jungle.
From nothing working, I've got to the point where I get this as output:
SpellupCastSelf 'haste'
instead of the intentional
c 'haste'
where SpellupCast is an alias, Self an internal value that is NOT supposed to be sent, and 'haste' a spell that's supposed to be sent. To fix that I changed some aliases to
%concat( SpellupCast , " ", Self , " ", 'haste')
from
SpellupCast Self 'haste'
but then I get this output:
SpellupCast Self 'absorb'
meaning it won't understand that SpellupCast is an alias...
So right now I don't know what to do and would really appreciate some help. I'm posting the script in it's working zMUD form below.
//Ice |
|
|
|
Ice Beginner
Joined: 07 Sep 2005 Posts: 12
|
Posted: Fri Jun 22, 2007 8:36 am |
#CLASS {Spellup}
#ALIAS StatInt {SpellupCast Self 'true seeing';SpellupCast Self 'accelerate';SpellupCast Self 'champions strength';SpellupCast Self 'aid';SpellupCast Self 'self harmony';SpellupCast Self 'call upon faith';SpellupCast Self 'prayer of fortune';SpellupCast Self 'calculation';SpellupCast Self 'enlightenment';SpellupCast Self 'revelation';SpellupCast Self 'intellect fortress';SpellupCast Self 'awakening';SpellupCast Self 'perception'}
#ALIAS Comb {SpellupCast Self 'frenzy';SpellupCast Self 'bless';SpellupCast Self 'divine faith';SpellupCast Self 'channel energy';SpellupCast Self 'absorb';SpellupCast Self 'protection good';SpellupCast Self 'inertial barrier';SpellupCast Self 'holy aura';SpellupCast Self 'indestructible aura';SpellupCast Self 'spirit shield'}
#ALIAS AC {SpellupCast Self 'party shield';SpellupCast Self 'magic circle';SpellupCast Self 'compression';SpellupCast Self 'avoidance';SpellupCast Self 'displacement';SpellupCast Self 'mental barrier';SpellupCast Self 'flesh armor';SpellupCast Self 'darkness';SpellupCast Self 'stone skin';SpellupCast Self 'barkskin';SpellupCast Self 'armor';SpellupCast Self 'blur';SpellupCast Self 'shield';SpellupCast Self 'thought shield';SpellupCast Self 'line of protection';SpellupCast Self 'globe of invulnerability'}
#ALIAS SpellGr {sa fol me %1 (automatic msg);SpellupCancel %1;#IF (%db( @SpellupOtherSpell, infravision)) {SpellupCast %1 'Infravision'};#IF (%db( @SpellupStatInt, aid)) {SpellupCast %1 'aid'};#IF (%db( @SpellupStatInt, champions strength)) {SpellupCast %1 'champions strength'};#IF (%db( @SpellupStatInt, prayer of fortune)) {SpellupCast %1 'prayer of fortune'};#IF %db( @SpellupStatInt, enlightenment)) {SpellupCast %1 'enlightenment'};#IF (%db( @SpellupStatInt, revelation)) {SpellupCast %1 'revelation'};#IF (%db( @SpellupStatStr, rally)) {SpellupCast %1 'rally'};#IF (%db( @SpellupStatStr, harden body)) {SpellupCast %1 'harden body'};#IF (%db( @SpellupStatStr, giant strength)) {SpellupCast %1 'giant strength'};#IF (%db( @SpellupComb, frenzy)) {SpellupCast %1 'frenzy'};#IF (%db( @SpellupComb, combat mind)) {SpellupCast %1 'combat mind'};#IF (%db( @SpellupComb, divine faith)) {SpellupCast %1 'divine faith'};#IF (%db( @SpellupStatStr, lightspeed)) {SpellupCast %1 'lightspeed'};#IF (%db( @SpellupStatInt, haste)) {SpellupCast %1 'haste'};#IF (%db( @SpellupStatStr, divine swiftness)) {SpellupCast %1 'divine swiftness'};#IF (%db( @SpellupComb, absorb)) {SpellupCast %1 'absorb'};#IF (%db( @SpellupComb, indestructible aura)) {SpellupCast %1 'indestructible aura'};#IF (%db( @SpellupComb, bless)) {SpellupCast %1 'bless'};#IF (%db( @SpellupAC, magic circle)) {SpellupCast %1 'magic circle'};#IF (%db( @SpellupAC, armor)) {SpellupCast %1 'armor'};#IF (%db( @SpellupAC, shield)) {SpellupCast %1 'shield'};#IF (%db( @SpellupAC, blur)) {SpellupCast %1 'blur'};#IF (%db( @SpellupAC, darkness)) {SpellupCast %1 'darkness'};#IF (%db( @SpellupAC, barkskin)) {SpellupCast %1 'barkskin'};#IF (%db( @SpellupResist, protection from fire)) {SpellupCast %1 'protection from fire'};#IF (%db( @SpellupResist, willpower)) {SpellupCast %1 'willpower'};#IF (%db( @SpellupResist, warmth)) {SpellupCast %1 'warmth'};#IF (%db( @SpellupResist, vaccinate)) {SpellupCast %1 'vaccinate'};#IF (%db( @SpellupResist, acidproof)) {SpellupCast %1 'acidproof'};#IF (%db( @SpellupResist, energy shield)) {SpellupCast %1 'energy shield'};#IF (%db( @SpellupResist, shockproof)) {SpellupCast %1 'shockproof'};#IF (%db( @SpellupResist, holy mirror)) {SpellupCast %1 'holy mirror'};#IF (%db( @SpellupResist, toxic SpellupResistance)) {SpellupCast %1 'toxic SpellupResistance'};gr %1;#IF (%db( @SpellupStatInt, party harmony)=1 or %db( @SpellupAllSpellsOnMe, party harmony)!=2) {c 'party harmony'};#IF (%db( @SpellupAC, party shield)=1 or %db( @SpellupAllSpellsOnMe, party shield)!=2) {c 'party shield'};c 'party sanct';gr %1}
#ALIAS StatStr {SpellupCast Self 'godly embrace';SpellupCast Self 'harden body';SpellupCast Self 'power of faith';SpellupCast Self 'mystic might';SpellupCast Self 'magical rush';SpellupCast Self 'divine swiftness';SpellupCast Self 'adrenaline control';SpellupCast Self 'energy containment';SpellupCast Self 'giant strength';SpellupCast Self 'enhanced strength';SpellupCast Self 'lightspeed'}
#ALIAS OtherSpell {SpellupCast Self 'fly';SpellupCast Self 'underwater breathing';SpellupCast Self 'grey aura'}
#ALIAS SpellGr2 {SpellupCancel %1;#if (%db( @SpellupOtherSpell, infravision)) {SpellupCast %1 'Infravision'};#if (%db( @SpellupStatInt, aid)) {SpellupCast %1 'aid'};#if (%db( @SpellupStatInt, champions strength)) {SpellupCast %1 'champions strength'};#if (%db( @SpellupStatInt, prayer of fortune)) {SpellupCast %1 'prayer of fortune'};#if (%db( @SpellupStatInt, enlightenment)) {SpellupCast %1 'enlightenment'};#if (%db( @SpellupStatInt, revelation)) {SpellupCast %1 'revelation'};#if (%db( @SpellupStatStr, rally)) {SpellupCast %1 'rally'};#if (%db( @SpellupStatStr, harden body)) {SpellupCast %1 'harden body'};#if (%db( @SpellupStatStr, giant strength)) {SpellupCast %1 'giant strength'};#if (%db( @SpellupComb, frenzy)) {SpellupCast %1 'frenzy'};#if (%db( @SpellupComb, combat mind)) {SpellupCast %1 'combat mind'};#if (%db( @SpellupComb, divine faith)) {SpellupCast %1 'divine faith'};#if (%db( @SpellupStatStr, lightspeed)) {SpellupCast %1 'lightspeed'};#if (%db( @SpellupStatInt, haste)) {SpellupCast %1 'haste'};#if (%db( @SpellupStatStr, divine swiftness)) {SpellupCast %1 'divine swiftness'};#if (%db( @SpellupComb, absorb)) {SpellupCast %1 'absorb'};#if (%db( @SpellupComb, indestructible aura)) {SpellupCast %1 'indestructible aura'};#if (%db( @SpellupComb, bless)) {SpellupCast %1 'bless'};#if (%db( @SpellupAC, magic circle)) {SpellupCast %1 'magic circle'};#if (%db( @SpellupAC, armor)) {SpellupCast %1 'armor'};#if (%db( @SpellupAC, shield)) {c shiel %1};#if (%db( @SpellupAC, blur)) {SpellupCast %1 'blur'};#if (%db( @SpellupAC, darkness)) {SpellupCast %1 'darkness'};#if (%db( @SpellupAC, barkskin)) {SpellupCast %1 'barkskin'};#if (%db( @SpellupResist, protection from fire)) {SpellupCast %1 'protection from fire'};#if (%db( @SpellupResist, willpower)) {SpellupCast %1 'willpower'};#if (%db( @SpellupResist, warmth)) {SpellupCast %1 'warmth'};#if (%db( @SpellupResist, vaccinate)) {SpellupCast %1 'vaccinate'};#if (%db( @SpellupResist, acidproof)) {SpellupCast %1 'acidproof'};#if (%db( @SpellupResist, energy shield)) {SpellupCast %1 'energy shield'};#if (%db( @SpellupResist, shockproof)) {SpellupCast %1 'shockproof'};#if (%db( @SpellupResist, holy mirror)) {SpellupCast %1 'holy mirror'};#if (%db( @SpellupResist, toxic SpellupResistance)) {SpellupCast %1 'toxic SpellupResistance'};#if (%db( @SpellupStatInt, party harmony)) {c 'party harmony'};#if (%db( @SpellupAC, party shield)) {SpellupCast Self 'party shield'};c 'party sanct'}
#ALIAS SpellupReset {#LOOPDB @SpellupSkills {#IF (%val>1) {#ADDKEY SpellupSkills %key 3} {#ADDKEY SpellupSkills %key 0}};#LOOPDB @SpellupOtherSpell {#IF (%val>1) {#ADDKEY SpellupOtherSpell %key 3} {#ADDKEY SpellupOtherSpell %key 0}};#LOOPDB @SpellupStatInt {#IF (%val>1) {#ADDKEY SpellupStatInt %key 3} {#ADDKEY SpellupStatInt %key 0}};#LOOPDB @SpellupStatStr {#IF (%val>1) {#ADDKEY SpellupStatStr %key 3} {#ADDKEY SpellupStatStr %key 0}};#LOOPDB @SpellupComb {#IF (%val>1) {#ADDKEY SpellupComb %key 3} {#ADDKEY SpellupComb %key 0}};#LOOPDB @SpellupSubClass {#IF (%val>1) {#ADDKEY SpellupSubClass %key 3} {#ADDKEY SpellupSubClass %key 0}};#LOOPDB @SpellupAc {#IF (%val>1) {#ADDKEY SpellupAc %key 3} {#ADDKEY SpellupAc %key 0}};#LOOPDB @SpellupResist {#IF (%val>1) {#ADDKEY SpellupResist %key 3} {#ADDKEY SpellupResist %key 0}};#LOOPDB @SpellupAllSkillsOnMe {#ADDKEY SpellupAllSkillsOnMe %key 2};#LOOPDB @SpellupAllSpellsOnMe {#ADDKEY SpellupAllSpellsOnMe %key 2};#IF (!%null( %db( @SpellupVar, ClanSkill))) {#ADDKEY SpellupAllSkillsOnMe ClanSkill 1;#ADDKEY SpellupSkills ClanSkill 1};#T+ SpellupReset;#IF (%db( @SpellupRecastList, RecastSkills)) {#T+ SpellupResetSkills;skills all} {#T- SpellupResetSkills;Spellup spells}}
#ALIAS Resistance {SpellupCast Self 'protection from fire';SpellupCast Self 'warmth';SpellupCast Self 'vaccinate';SpellupCast Self 'acidproof';SpellupCast Self 'energy shield';SpellupCast Self 'shockproof';SpellupCast Self 'holy mirror';SpellupCast Self 'toxic resistance'}
#ALIAS Recast {SpellupRecastSkills;SpellupRecastSpells}
#ALIAS SpellupResetFull {#LOOPDB @SpellupSkills {#ADDKEY SpellupSkills %key 0};#LOOPDB @SpellupOtherSpell {#ADDKEY SpellupOtherSpell %key 0};#LOOPDB @SpellupStatInt {#ADDKEY SpellupStatInt %key 0};#LOOPDB @SpellupStatStr {#ADDKEY SpellupStatStr %key 0};#LOOPDB @SpellupComb {#ADDKEY SpellupComb %key 0};#LOOPDB @SpellupSubClass {#ADDKEY SpellupSubClass %key 0};#LOOPDB @SpellupAc {#ADDKEY SpellupAc %key 0};#LOOPDB @SpellupResist {#ADDKEY SpellupResist %key 0};#LOOPDB @SpellupAllSkillsOnMe {#ADDKEY SpellupAllSkillsOnMe %key 2};#LOOPDB @SpellupAllSpellsOnMe {#ADDKEY SpellupAllSpellsOnMe %key 2};#IF (!%null( %db( @SpellupVar, ClanSkill))) {#ADDKEY SpellupSkills ClanSkill 1;#ADDKEY SpellupAllSkillsOnMe ClanSkill 1};#T+ SpellupReset;#IF (%db( @SpellupRecastList, RecastSkills)) {#T+ SpellupResetSkills;skills all} {#T- SpellupResetSkills;Spellup spells}}
#ALIAS SpellupToggleAnti {#if (%db( @SpellupAC, "globe of invulnerability")!=0 and %db( @SpellupComb, "antimagic shell")!=0) {#ADDKEY SpellupVar EditTmpSpell %null;#if (%db( @SpellupComb, "antimagic shell")=1) {#ADDKEY SpellupVar EditTmpSpell {p:Select the spell to use|o:1|*antimagic shell|globe of invulnerability}} {#ADDKEY SpellupVar EditTmpSpell {p:Select the spell to use|o:1|antimagic shell|*globe of invulnerability}};#ADDKEY SpellupAc "globe of invulnerability" 2;#ADDKEY SpellupComb "antimagic shell" 2;#ADDKEY SpellupVar EditTmpSpell %pick( %db( @SpellupVar, EditTmpSpell));#if (%db( @SpellupVar, EditTmpSpell)="globe of invulnerability") {#ADDKEY SpellupAC "globe of invulnerability" 1;SpellupCheckComb;SpellupCheckAc} {#if (%db( @SpellupVar, EditTmpSpell)="antimagic shell") {#ADDKEY SpellupComb "antimagic shell" 1;SpellupCheckComb;SpellupCheckAc}}}}
#ALIAS SpellupCast {#ADDKEY SpellupVar LastCast {%1};#IF (%ismember( %-2, "protection good")) {#IF (%eval( %eval( %db( @SpellupAllSpellsOnMe, %-2)!=2 and %db( @SpellupComb, %-2)=1)) and %eval( !(%db( @SpellupComb, "inertial barrier")=1) or !(%db( @SpellupAllSpellsOnMe, "inertial barrier")=0))) {~c %-2;#WAIT %db( @SpellupVar, WaitTime)}} {#IF ((%db( @SpellupAllSpellsOnMe, %-2)!=2) and ((%db( @SpellupOtherSpell, %-2)=1) or (%db( @SpellupStatInt, %-2)=1) or (%db( @SpellupStatStr, %-2)=1) or (%db( @SpellupComb, %-2)=1) or (%db( @SpellupSubClass, %-2)=1) or (%db( @SpellupAC, %-2)=1) or (%db( @SpellupResist, %-2)=1) or (%db( @SpellupOtherSpell, %-2)=2) or (%db( @SpellupStatInt, %-2)=2) or (%db( @SpellupStatStr, %-2)=2) or (%db( @SpellupComb, %-2)=2) or (%db( @SpellupSubClass, %-2)=2) or (%db( @SpellupAC, %-2)=2) or (%db( @SpellupResist, %-2)=2))) {~c %-2 %if( %db( @SpellupVar, LastCast)="Self", %null, %db( @SpellupVar, LastCast));#WAIT %db( @SpellupVar, WaitTime)}}}
#ALIAS HelpSpellup {#SAY %ansi( high, white)~/~/ Spellup Script v3.3.2, Written by Ninja ~\~\;#SAY %ansi( high, Cyan)Available commands for Spellup Script Setup:;#SAY %ansi( high, green)-=: Saf :=- " "%ansi( high, yellow)Use this to reset the missing spells list, when you die/war/laser/etc;#SAY %ansi( high, green)-=: SpellupSetCancel :=- " "%ansi( high, yellow)Set ~# of times to cast cancel in spelgr/spelgr2;#SAY %ansi( high, green)-=: SpellupReset :=- " "%ansi( high, yellow)Resets spellup script, saving ignored spells.;#SAY %ansi( high, green)-=: SpellupResetFull :=- " "%ansi( high, yellow)Resets spellup script completely.;#SAY %ansi( high, green)-=: SpellupSubs :=- " "%ansi( high, yellow)Enables/Disables Spell subbing.;#SAY;#SAY %ansi( high, Cyan)Available commands for Spellup Script Casting:;#SAY %ansi( high, green)-=: Recast :=-" " %ansi( high, yellow)Recasts missing Skills/Spells;#SAY %ansi( high, green)-=: SpSkills :=-" "%ansi( high, yellow)Use for specific skill-type spellups.;#SAY %ansi( high, green)-=: OtherSpell, StatInt, StatStr, Comb, SpSubClass," "%ansi( high, yellow)Use for specific spell-type spellups.;#SAY %ansi( high, green)" AC, Resistance:=-";#SAY;#SAY %ansi( high, Cyan)Available commands for Spellup Script Spell Selection:;#SAY %ansi( high, green)-=: SpellupSetRecast :=- " "%ansi( high, yellow)Select groups of spells to recast;#SAY %ansi( high, green)-=: SpellupEdit~(aliasname~) :=- " "%ansi( high, yellow)Select spells from each group to cast;#SAY %ansi( high, red)~* This works on the above listed ~"specific~" spells' aliases. Example: SpellupEditStatStr;#SAY %ansi( high, red)~* Selecting cancel is the same as not selecting any spells.;#SAY;#SAY %ansi( high, Cyan)Available misc. commands for Spellup Script;#SAY %ansi( high, green)-=: SpellupToggleAnti :=- " "%ansi( high, yellow)Toggles the script between Antimagic and Globe;#SAY %ansi( high, green)-=: Spellgr ~(player~) :=- " "%ansi( high, yellow)Does a spellup on a player not in group;#SAY %ansi( high, green)-=: Spellgr2 ~(player~) :=- " "%ansi( high, yellow)Does a spellup on a player in your group;#SAY;#SAY %ansi( high, Cyan)Misc. Notes:;#SAY %ansi( grey)~*" " The script will cast/autorecast any spellup spell that has been practiced to at least 50~%.;#SAY %ansi( grey)~*" " You can change that value by typing ~#ADDKEY SpellupVar MinPract ~<value~>;#SAY %ansi( grey)~*~* During the spellup on the F1 macro, you'll notice there is a lag time between the different aliases;#SAY %ansi( grey)~*~* You can change that value if u find it too fast or too slow by typing ~#ADDKEY SpellupVar WaitTime ~<value~>;#SAY %ansi( grey)~*~* typical values are 500 with spellup2, 1250 with spellup1, and 2000 without any spellup wish;#SAY;#SAY %ansi( grey)To set it up with your clan skill:;#SAY %ansi( grey)Type ~#edit SpellupTriggerCS1 and put in pattern the msg you get when you cast your cs.;#SAY %ansi( grey)Type ~#edit SpellupTriggerCS2 and put in pattern the msg you get when your cs wears off.;#SAY %ansi( grey)To change ClanSkill name type SpellupSetCS ~<YourCS~> (need a full name exact same than in saff - Case sensitive);#SAY;#SAY %ansi( high, magenta)Macros:;#SAY %ansi( high, magenta)F1 ~(full spellup~) F2 ~(display missing Skills/Spells~)}
#ALIAS SpellupCancel {#if (%db( @SpellupVar, CancelTimes)!=0) {#loop 1,%db( @SpellupVar, CancelTimes) {c 'cancel' %1;#wait 1500}}}
#ALIAS SpellupSetCancel {#ADDKEY SpellupVar CancelTimes %prompt( 2, "How many you want to do in Spellgr?") _nodef Spellup}
#ALIAS SpellupSubs {#IF (%db( @SpellupVar, SubWearOffSpells) = 1) {#ADDKEY SpellupVar SubWearOffSpells 0 _nodef Spellup;#SHOW %ansi( cyan)Subs are now disabled.} {#ADDKEY SpellupVar SubWearOffSpells 1 _nodef Spellup;#SHOW %ansi( cyan)Subs are now enabled.}}
#ALIAS SpellupSkill {#IF (%1="ClanSkill") {%db( @SpellupVar, ClanSkill)} {#IF ((%db( @SpellupAllSkillsOnMe, %-1)!=2) and (%db( @SpellupSkills, %-1)=1)) {#SEND %1}}}
#ALIAS SpellupRecastSkills {#alias SpellupToBeRecast {%null};#ADDKEY SpellupVar AliasSoon %null;#loopdb @SpellupAllSkillsOnMe {#If (%val=1) {#if (%null( %db( @SpellupVar, AliasSoon))) {#ADDKEY SpellupVar AliasSoon {SpellupSkill %key}} {#ADDKEY SpellupVar AliasSoon %concat( %db( @SpellupVar, AliasSoon), ~;SpellupSkill %key)}}};#If {%null( %db( @SpellupVar, AliasSoon))} {#Alias SpellupToBeRecast {%null}} {#Alias SpellupToBeRecast {<%db(@SpellupVar,AliasSoon)>};SpellupToBeRecast}}
#ALIAS SpellupRecastSpells {#ALIAS SpellupToBeRecast {%null};#ADDKEY SpellupVar AliasSoon %null;#LOOPDB @SpellupAllSpellsOnMe {#IF (%val=1) {#IF (%null( %db( @SpellupVar, AliasSoon))) {#ADDKEY SpellupVar AliasSoon {SpellupCast Self '%key'}} {#ADDKEY SpellupVar AliasSoon %concat( %db( @SpellupVar, AliasSoon), ~;SpellupCast Self '%key')}}};#IF {%null( %db( @SpellupVar, AliasSoon))} {#ALIAS SpellupToBeRecast {%null}} {#ALIAS SpellupToBeRecast {<%db(@SpellupVar,AliasSoon)>};SpellupToBeRecast}}
#ALIAS SpSkills {SpellupSkill ClanSkill;SpellupSkill sneak}
#ALIAS SpellupSetCS {#ADDKEY SpellupVar ClanSkill %1}
#ALIAS SpSubClass {SpellupCast Self 'test of faith'}
#VAR SpellupStatInt {true seeing1accelerate1haste2champions strength1wraith form0aid1self harmony1party harmony2call upon faith1pure faith0prayer of fortune1calculation1enlightenment1revelation1intellect fortress1awakening1perception1}
#VAR SpellupComb {frenzy1combat mind0bless1divine faith1wolf spirits0channel energy1absorb1antimagic shell2protection good1inertial barrier1holy aura1indestructible aura1spirit shield1protection evil2totem guidance0totem force3}
#VAR SpellupAc {party shield1magic circle1compression1avoidance1displacement1mental barrier1flesh armor1darkness1stone skin1barkskin1armor1blur1shield1thought shield1line of protection1globe of invulnerability1}
#VAR SpellupOtherSpell {sustenance2infravision2pass door2ectoplasmic form2sense anger2detect evil2detect good2detect invis2detect hidden2detect magic2fly1levitation2sanctuary2biofeedback2underwater breathing1grey aura1}
#VAR SpellupStatStr {godly embrace1energy ball0harden body1power of faith1mystic might1magical rush1divine swiftness1adrenaline control1rally0energy containment1giant strength1enhanced strength1lightspeed1}
#VAR SpellupResist {protection from fire1willpower0warmth1vaccinate1acidproof1energy shield1shockproof1holy mirror1toxic resistance1}
#VAR SpellupVar {AliasSoonSpellNameparty shieldSaffSpellsneakLastCastSelfWaitTime600SubWearOffSpells1CancelTimes2MinPract50EditTmpSpell*RecastSkills|*RecastOtherSpell|*RecastStatInt|*RecastStatStr|*RecastComb|*RecastSubClass|*RecastAc|*RecastResistClanSkillFateSpellupSubWearOffSpells0}
#VAR SpellupSkills {ClanSkill1sneak1shadow form2pass without trace2heighten senses2berserk2}
#VAR SpellupSubClass {huntmaster0gaias revenge0test of faith1}
#TRIGGER {You lost your concentration while trying to cast %1.} {#ADDKEY SpellupVar SpellName {%lower( %1)};#if (%db( @SpellupVar, LastCast)="Self") {SpellupCast Self '<%db(@SpellupVar,SpellName)>'} {SpellupCast %db( @SpellupVar, LastCast) '<%db(@SpellupVar,SpellName)>'}}
#REGEX {^(?:Spell|Skill) (.+)\.} {#ADDKEY SpellupVar SpellName {%lower( %1)};#IF (%iskey( @SpellupAllSkillsOnMe, %db( @SpellupVar, SpellName))!=0) {#IF (%iskey( @SpellupSkills, %db( @SpellupVar, SpellName))!=0) {#IF (%db( @SpellupSkills, %db( @SpellupVar, SpellName))=0) {#ADDKEY SpellupSkills %db( @SpellupVar, SpellName) 1} {#ADDKEY SpellupSkills %db( @SpellupVar, SpellName) 2};#ADDKEY SpellupAllSkillsOnMe %db( @SpellupVar, SpellName) 2;SpellupCheckSkills}};#IF (%iskey( @SpellupAllSpellsOnMe, %db( @SpellupVar, SpellName))!=0) {#IF (%iskey( @SpellupOtherSpell, %db( @SpellupVar, SpellName))!=0) {#IF (%db( @SpellupOtherSpell, %db( @SpellupVar, SpellName))=0) {#ADDKEY SpellupOtherSpell %db( @SpellupVar, SpellName) 1} {#ADDKEY SpellupOtherSpell %db( @SpellupVar, SpellName) 2};#ADDKEY SpellupAllSpellsOnMe %db( @SpellupVar, SpellName) 2;SpellupCheckOtherSpell};#IF (%iskey( @SpellupStatInt, %db( @SpellupVar, SpellName))!=0) {#IF (%db( @SpellupStatInt, %db( @SpellupVar, SpellName))=0) {#ADDKEY SpellupStatInt %db( @SpellupVar, SpellName) 1} {#ADDKEY SpellupStatInt %db( @SpellupVar, SpellName) 2};#ADDKEY SpellupAllSpellsOnMe %db( @SpellupVar, SpellName) 2;SpellupCheckStatInt};#IF (%iskey( @SpellupStatStr, %db( @SpellupVar, SpellName))!=0) {#IF (%db( @SpellupStatStr, %db( @SpellupVar, SpellName))=0) {#ADDKEY SpellupStatStr %db( @SpellupVar, SpellName) 1} {#ADDKEY SpellupStatStr %db( @SpellupVar, SpellName) 2};#ADDKEY SpellupAllSpellsOnMe %db( @SpellupVar, SpellName) 2;SpellupCheckStatStr};#IF (%iskey( @SpellupComb, %db( @SpellupVar, SpellName))!=0) {#IF (%db( @SpellupComb, %db( @SpellupVar, SpellName))=0) {#ADDKEY SpellupComb %db( @SpellupVar, SpellName) 1} {#ADDKEY SpellupComb %db( @SpellupVar, SpellName) 2};#ADDKEY SpellupAllSpellsOnMe %db( @SpellupVar, SpellName) 2;SpellupCheckComb};#IF (%iskey( @SpellupSubClass, %db( @SpellupVar, SpellName))!=0) {#IF (%db( @SpellupSubClass, %db( @SpellupVar, SpellName))=0) {#ADDKEY SpellupSubClass %db( @SpellupVar, SpellName) 1} {#ADDKEY SpellupSubClass %db( @SpellupVar, SpellName) 2};#ADDKEY SpellupAllSpellsOnMe %db( @SpellupVar, SpellName) 2;SpellupCheckSubClass};#IF (%iskey( @SpellupAc, %db( @SpellupVar, SpellName))!=0) {#IF (%db( @SpellupAc, %db( @SpellupVar, SpellName))=0) {#ADDKEY SpellupAc %db( @SpellupVar, SpellName) 1} {#ADDKEY SpellupAc %db( @SpellupVar, SpellName) 2};#ADDKEY SpellupAllSpellsOnMe %db( @SpellupVar, SpellName) 2;SpellupCheckAc};#IF (%iskey( @SpellupResist, %db( @SpellupVar, SpellName))!=0) {#IF (%db( @SpellupResist, %db( @SpellupVar, SpellName))=0) {#ADDKEY SpellupResist %db( @SpellupVar, SpellName) 1} {#ADDKEY SpellupResist %db( @SpellupVar, SpellName) 2};#ADDKEY SpellupAllSpellsOnMe %db( @SpellupVar, SpellName) 2;SpellupCheckResist}}}
#TRIGGER {^Your new skill level in %1 is (%d)~%.} {#ADDKEY SpellupVar SpellName {%lower( %1)};#IF (%2>%db( @SpellupVar, MinPract)) {#IF (%iskey( @SpellupAllSpellsOnMe, %db( @SpellupVar, SpellName))!=0 and %db( @SpellupAllSpellsOnMe, %db( @SpellupVar, SpellName))=2) {SpellupSpellHasBeenLost %db( @SpellupVar, SpellName)}}}
#TRIGGER {^You are now an expert in %1.} {#ADDKEY SpellupVar SpellName {%lower( %1)};#IF (%iskey( @SpellupAllSpellsOnMe, %db( @SpellupVar, SpellName))!=0 and %db( @SpellupAllSpellsOnMe, %db( @SpellupVar, SpellName))=2) {SpellupSpellHasBeenLost %db( @SpellupVar, SpellName)}}
#KEY F1 {#IF (%db( @SpellupRecastList, RecastSkills)=1) {SpSkills};#IF (%db( @SpellupRecastList, RecastOtherSpell)=1) {OtherSpell};#IF (%db( @SpellupRecastList, RecastStatInt)=1) {StatInt};#IF (%db( @SpellupRecastList, RecastStatStr)=1) {StatStr};#IF (%db( @SpellupRecastList, RecastComb)=1) {Comb};#IF (%db( @SpellupRecastList, RecastSubClass)=1) {SPSubClass};#IF (%db( @SpellupRecastList, recastAc)=1) {AC};#IF (%db( @SpellupRecastList, RecastResist)=1) {Resistance}}
#CLASS 0
#CLASS {Spellup|Spellmonitoring}
#ALIAS SpellupMonitorSpell {#ADDKEY SpellupVar AliasSoon %null;#loopdb @SpellupAllSpellsOnMe {#If (%val=1) {#if (%null( %db( @SpellupVar, AliasSoon))) {#ADDKEY SpellupVar AliasSoon {SpellupCast Self '%key'}} {#ADDKEY SpellupVar AliasSoon %concat( %db( @SpellupVar, AliasSoon), ~;SpellupCast Self '%key')}}};#If (%null( %db( @SpellupVar, AliasSoon))) {#Say %ansi( green, hi)Missing Spells: none;#Alias SpellupToBeRecast {%null}} {#Alias SpellupToBeRecast {<%db(@SpellupVar,AliasSoon)>};#ADDKEY SpellupVar AliasSoon %replace( %db( @SpellupVar, AliasSoon), SpellupCast Self, c);#SAY %ansi( green, hi)Missing Spells: %db( @SpellupVar, AliasSoon)!}}
#ALIAS SpellupToBeRecast {%null}
#ALIAS saf {SpellupSetRecastClasses;#ADDKEY SpellupSpellsCriticality 0 0;#ADDKEY SpellupSpellsCriticality 1 0;#ADDKEY SpellupSpellsCriticality 2 0;#ADDKEY SpellupSpellsCriticality 3 0;#LOOPDB @SpellupAllSpellsOnMe {#IF (%val!=2) {SpellUpSpellHasBeenLost %key}};#T+ RecastSaff;saff}
#ALIAS SpellupSetRecast {#ADDKEY SpellupVar EditTmpSpell %null;#loopdb @SpellupRecastList {#if (%val= 1) {SpellupAddSpellList *%key} {SpellupAddSpellList %key};#ADDKEY SpellupRecastList %key 0};#FORALL %pick( 'p:Select spell lists you want to include in monitoring', %db( @SpellupVar, EditTmpSpell)) {#ADDKEY SpellupRecastList %i 1};SpellupSetRecastClasses}
#ALIAS SpellupSetRecastClasses {#IF {%db( @SpellupRecastList, RecastOtherSpell)=1} {#T+ RecastOtherSpellon} {#T- RecastOtherSpellon};#IF {%db( @SpellupRecastList, RecastStatInt)=1} {#T+ RecastStatInton} {#T- RecastStatInton};#IF {%db( @SpellupRecastList, RecastStatStr)=1} {#T+ RecastStatStron} {#T- RecastStatStron};#IF {%db( @SpellupRecastList, RecastComb)=1} {#T+ RecastCombon} {#T- RecastCombon};#IF {%db( @SpellupRecastList, RecastSubClass)=1} {#T+ RecastSubClasson} {#T- RecastSubClasson};#IF {%db( @SpellupRecastList, RecastAc)=1} {#T+ recastacon} {#T- recastacon};#IF {%db( @SpellupRecastList, RecastResist)=1} {#T+ RecastResiston} {#T- RecastResiston}}
#ALIAS SpellupEditStatInt {#ADDKEY SpellupVar EditTmpSpell %null;#loopdb @SpellupStatInt {#if (%val!=0 and %val!=3) {#if (%val=1) {SpellupAddSpellList *%key} {SpellupAddSpellList %key};#ADDKEY SpellupStatInt %key 2}};#FORALL %pick( 'p:Select spells you want to use', %db( @SpellupVar, EditTmpSpell)) {#if (%i!=%null) {#ADDKEY SpellupVar SpellName {%i};#ADDKEY SpellupStatInt %db( @SpellupVar, SpellName) 1}};SpellupCheckStatInt}
#ALIAS SpellupEditOtherSpell {#ADDKEY SpellupVar EditTmpSpell %null;#loopdb @SpellupOtherSpell {#if (%val!=0 and %val!=3) {#if (%val=1) {SpellupAddSpellList *%key} {SpellupAddSpellList %key};#ADDKEY SpellupOtherSpell %key 2}};#FORALL %pick( 'p:Select spells you want to use', %db( @SpellupVar, EditTmpSpell)) {#if (%i!=%null) {#ADDKEY SpellupVar SpellName {%i};#ADDKEY SpellupOtherSpell %db( @SpellupVar, SpellName) 1}};SpellupCheckOtherSpell}
#ALIAS SpellupEditStatStr {#ADDKEY SpellupVar EditTmpSpell %null;#loopdb @SpellupStatStr {#if (%val!=0 and %val!=3) {#if (%val=1) {SpellupAddSpellList *%key} {SpellupAddSpellList %key};#ADDKEY SpellupStatStr %key 2}};#FORALL %pick( 'p:Select spells you want to use', %db( @SpellupVar, EditTmpSpell)) {#if (%i!=%null) {#ADDKEY SpellupVar SpellName {%i};#ADDKEY SpellupStatStr %db( @SpellupVar, SpellName) 1}};SpellupCheckStatStr}
#ALIAS SpellupEditComb {#ADDKEY SpellupVar EditTmpSpell %null;#loopdb @SpellupComb {#if (%val!=0 and %val!=3) {#if (%val=1) {SpellupAddSpellList *%key} {SpellupAddSpellList %key};#ADDKEY SpellupComb %key 2}};#FORALL %pick( 'p:Select spells you want to use', %db( @SpellupVar, EditTmpSpell)) {#if (%i!=%null) {#ADDKEY SpellupVar SpellName {%i};#ADDKEY SpellupComb %db( @SpellupVar, SpellName) 1}};SpellupCheckComb}
#ALIAS SpellupEditAc {#ADDKEY SpellupVar EditTmpSpell %null;#loopdb @SpellupAc {#if (%val!=0 and %val!=3) {#if (%val=1) {SpellupAddSpellList *%key} {SpellupAddSpellList %key};#ADDKEY SpellupAc %key 2}};#FORALL %pick( 'p:Select spells you want to use', %db( @SpellupVar, EditTmpSpell)) {#if (%i!=%null) {#ADDKEY SpellupVar SpellName {%i};#ADDKEY SpellupAc %db( @SpellupVar, SpellName) 1}};SpellupCheckAc}
#ALIAS SpellupEditResist {#ADDKEY SpellupVar EditTmpSpell %null;#loopdb @SpellupResist {#if (%val!=0 and %val!=3) {#if (%val=1) {SpellupAddSpellList *%key} {SpellupAddSpellList %key};#ADDKEY SpellupResist %key 2}};#FORALL %pick( 'p:Select spells you want to use', %db( @SpellupVar, EditTmpSpell)) {#if (%i!=%null) {#ADDKEY SpellupVar SpellName {%i};#ADDKEY SpellupResist %db( @SpellupVar, SpellName) 1}};SpellupCheckResist}
#ALIAS SpellupAddSpellList {#ADDKEY SpellupVar EditTmpSpell %if( %null( %db( @SpellupVar, EditTmpSpell)), %-1 , %concat( %db( @SpellupVar, EditTmpSpell), |%-1))}
#ALIAS SpellupEditSkills {#ADDKEY SpellupVar EditTmpSpell %null;#loopdb @SpellupSkills {#if (%val!=0 and %val!=3) {#if (%val=1) {SpellupAddSpellList *%key} {SpellupAddSpellList %key};#ADDKEY SpellupSkills %key 2}};#FORALL %pick( 'p:Select skills you want to use', %db( @SpellupVar, EditTmpSpell)) {#if (%i!=%null) {#ADDKEY SpellupVar SpellName {%i};#ADDKEY SpellupSkills %db( @SpellupVar, SpellName) 1}};SpellupCheckSkills}
#ALIAS SpellupMonitorSkills {#ADDKEY SpellupVar AliasSoon %null;#loopdb @SpellupAllSkillsOnMe {#If (%val=1) {#if (%null( %db( @SpellupVar, AliasSoon))) {#ADDKEY SpellupVar AliasSoon {SpellupSkill '%key'}} {#ADDKEY SpellupVar AliasSoon %concat( %db( @SpellupVar, AliasSoon), ~;SpellupSkill '%key')}}};#If (%null( %db( @SpellupVar, AliasSoon))) {#Say %ansi( green, hi)Missing Skills: none;#Alias SpellupToBeRecast {%null}} {#Alias SpellupToBeRecast {<%db(@SpellupVar,AliasSoon)>};#ADDKEY SpellupVar AliasSoon %replace( %db( @SpellupVar, AliasSoon), "SpellupSkill ", "");#SAY %ansi( green, hi)Missing Skills: %db( @SpellupVar, AliasSoon)!}}
#ALIAS SpellUpSpellHasBeenLost {#ADDKEY SpellUpAllSpellsOnMe %1 1;#ADDKEY SpellUpSpellsCriticality %db( @SpellUpSpellsCriticality, %1) %eval( %int( %db( @SpellUpSpellsCriticality, %db( @SpellUpSpellsCriticality, %1))) + 1)}
#ALIAS SpellUpSpellHasBeenCast {#ADDKEY SpellUpAllSpellsOnMe %1 0;#ADDKEY SpellUpSpellsCriticality %db( @SpellUpSpellsCriticality, %1) %eval( %int( %db( @SpellUpSpellsCriticality, %db( @SpellUpSpellsCriticality, %1))) - 1) //#SHOW %eval( %int( %db( @SpellupSpellsCriticality, 0)) + %int( %db( @SpellupSpellsCriticality, 1)) + %int( %db( @SpellupSpellsCriticality, 2)) + %int( %db( @SpellupSpellsCriticality, 3)))}
#ALIAS SpellupEditSubClass {#ADDKEY SpellupVar EditTmpSpell %null;#LOOPDB @SpellupSubClass {#IF (%val!=0 and %val!=3) {#IF (%val=1) {SpellupAddSpellList *%key} {SpellupAddSpellList %key};#ADDKEY SpellupSubClass %key 2}};#FORALL %pick( 'p:Select spells you want to use', %db( @SpellupVar, EditTmpSpell)) {#IF (%i!=%null) {#ADDKEY SpellupVar SpellName {%i};#ADDKEY SpellupSubClass %db( @SpellupVar, SpellName) 1}};SpellupCheckSubClass}
#VAR SpellupRecastList {RecastSkills1RecastOtherSpell1RecastStatInt1RecastStatStr1RecastComb1RecastSubClass1RecastAc1RecastResist1}
#VAR SpellupAllSpellsOnMe {sustenance0infravision0pass door0ectoplasmic form0sense anger0detect evil0detect good0detect invis0detect hidden0detect magic0fly0levitation0sanctuary0biofeedback0true seeing0accelerate0haste0champions strength0wraith form2aid0self harmony0party harmony0call upon faith0pure faith2prayer of fortune0calculation0enlightenment0revelation0intellect fortress0awakening0perception0godly embrace0energy ball2harden body0power of faith0mystic might0magical rush0divine swiftness0adrenaline control1rally2energy containment0giant strength0enhanced strength0lightspeed0frenzy0combat mind2bless0divine faith0wolf spirits2channel energy0absorb0antimagic shell0underwater breathing0protection good0inertial barrier0holy aura0indestructible aura0grey aura0spirit shield0protection evil0party shield0totem guidance2totem force2gaias revenge2test of faith0huntmaster2magic circle0compression0avoidance0displacement0mental barrier0flesh armor0darkness0stone skin0barkskin0armor0blur0shield0thought shield0line of protection0globe of invulnerability0protection from fire0willpower2warmth0vaccinate0acidproof0energy shield0shockproof0holy mirror0toxic resistance0}
#VAR SpellupSetColor {%if( %numwords( %1)>1, @SpellupSetColor(%word( %1, 1)) @SpellupSetColor(%remove( " ", %remove( %word( %1, 1), %1))), %insert( %ansi( Red, hi), %insert( %ansi( red), %proper( %1), 2), 1))}
#VAR SpellupAllSkillsOnMe {ClanSkill0sneak0shadow form0pass without trace0heighten senses0berserk0}
#VAR SpellupSpellsCriticality {sustenance0infravision0pass door0ectoplasmic form0sense anger0detect evil0detect good0detect invis0detect hidden0detect magic0fly0levitation0sanctuary0biofeedback0true seeing0accelerate2haste2champions strength0wraith form0aid0self harmony0party harmony0call upon faith0pure faith0prayer of fortune0calculation0enlightenment0revelation0intellect fortress0awakening0perception0godly embrace0energy ball0harden body0power of faith0mystic might0magical rush0divine swiftness0adrenaline control0rally0energy containment0giant strength0enhanced strength0lightspeed2frenzy0combat mind0bless0divine faith0wolf spirits0channel energy0absorb0antimagic shell1underwater breathing0protection good3inertial barrier3holy aura0indestructible aura0grey aura0spirit shield0protection evil0party shield0magic circle0compression0avoidance0displacement0mental barrier0flesh armor0darkness0stone skin0barkskin0armor0blur0shield0thought shield0line of protection0globe of invulnerability1protection from fire0willpower0warmth0vaccinate0acidproof0energy shield0shockproof0holy mirror0toxic resistance001102030}
#VAR SpellupRecoveryList {HuntmasterSpellupSubClass#huntmasterGaiaSpellupSubClass#gaias revenge$testTotem AidSpellupComb#totem force$totem guidanceFaithSpellupSubClass#test of faith}
#TRIGGER {^## You may now use %1 abilities.} {#PRIORITY {#IF (%iskey( @SpellupRecoveryList, %1)!=0) {#FORALL %replace( %word( %db( @SpellupRecoveryList, %1), 2, "#"), "$", "|") {#IF (%db( %eval( @%word( %db( @SpellupRecoveryList, %1), 1, "#")), %i)=1) {SpellUpSpellHasBeenLost "%i";#IF (%db( @SpellupVar, SubWearOffSpells)=1) {#SUBSTITUTE {%ansi(Yellow,hi)-=: %ansi(cyan)Spell @SpellupSetColor(%i) %ansi(cyan)can be recast! %ansi(Yellow,hi):=-}}}}}}}
#TRIGGER {^You are affected by the following:} {#PRIORITY {SpellupSetRecastClasses;#ADDKEY SpellupSpellsCriticality 0 0;#ADDKEY SpellupSpellsCriticality 1 0;#ADDKEY SpellupSpellsCriticality 2 0;#ADDKEY SpellupSpellsCriticality 3 0;#LOOPDB @SpellupAllSkillsOnMe {#IF (%val!=2) {#ADDKEY SpellupAllSkillsOnMe %key 1}};#LOOPDB @SpellupAllSpellsOnMe {#IF (%val!=2) {SpellUpSpellHasBeenLost %key}};#T+ RecastSaff}}
#KEY F2 {SpellupMonitorSkills;SpellupMonitorSpell}
#CLASS 0
#CLASS {Spellup|Spellmonitoring|RecastAC}
#TRIGGER {^You conjure forth a globe of physical resistance around you.} {#if (%db( @SpellupAC, globe of invulnerability)=1 and %db( @SpellupAllSpellsOnMe, globe of invulnerability)!=2) {SpellUpSpellHasBeenCast "globe of invulnerability"}}
#TRIGGER {^{%1 forms a magical circle of protection|A magical circle of protection forms} around you.} {#if (%db( @SpellupAC, magic circle)=1 and %db( @SpellupAllSpellsOnMe, magic circle)!=2) {SpellUpSpellHasBeenCast "magic circle"}}
#TRIGGER {^You are surrounded by {%1's|a} force shield.} {#if (%db( @SpellupAC, shield)=1 and %db( @SpellupAllSpellsOnMe, shield)!=2) {SpellUpSpellHasBeenCast "shield"}}
#TRIGGER {^You call upon * to grant you a force field of divine protection.} {#if (%db( @SpellupAC, line of protection)=1 and %db( @SpellupAllSpellsOnMe, line of protection)!=2) {SpellUpSpellHasBeenCast "line of protection"}}
#TRIGGER {^{You cast a protective armor around yourself.|You feel %1 protecting you.}} {#if (%db( @SpellupAC, armor)=1 and %db( @SpellupAllSpellsOnMe, armor)!=2) {SpellUpSpellHasBeenCast "armor"}}
#TRIGGER {^You compress your body to increase durability.} {#if (%db( @SpellupAC, compression)=1 and %db( @SpellupAllSpellsOnMe, compression)!=2) {SpellUpSpellHasBeenCast "compression"}}
#TRIGGER {^%1 create? a shield around {the whole party!|his party.|her party.}} {#IF (%db( @SpellupAC, party shield)=1 and %db( @SpellupAllSpellsOnMe, party shield)=1) {SpellUpSpellHasBeenCast "party shield"}}
#TRIGGER {^You erect a mental barrier around yourself.} {#if (%db( @SpellupAC, mental barrier)=1 and %db( @SpellupAllSpellsOnMe, mental barrier)!=2) {SpellUpSpellHasBeenCast "mental barrier"}}
#TRIGGER {^You have created a shield around yourself.} {#if (%db( @SpellupAC, thought shield)=1 and %db( @SpellupAllSpellsOnMe, thought shield)!=2) {SpellUpSpellHasBeenCast "thought shield"}}
#TRIGGER {^{%1 makes|You make} your appearance look blurred.} {#if (%db( @SpellupAC, blur)=1 and %db( @SpellupAllSpellsOnMe, blur)!=2) {SpellUpSpellHasBeenCast "blur"}}
#TRIGGER {^You now possess magical powers of avoidance.} {#if (%db( @SpellupAC, avoidance)=1 and %db( @SpellupAllSpellsOnMe, avoidance)!=2) {SpellUpSpellHasBeenCast "avoidance"}}
#TRIGGER {^{%1|You} twiddle{s his|s her| your} fingers and {conjures|summon} a globe of darkness around {yourself|you}.} {#if (%db( @SpellupAC, darkness)=1 and %db( @SpellupAllSpellsOnMe, darkness)!=2) {SpellUpSpellHasBeenCast "darkness"}}
#TRIGGER {^Your flesh turns to steel.} {#if (%db( @SpellupAC, flesh armor)=1 and %db( @SpellupAllSpellsOnMe, flesh armor)!=2) {SpellUpSpellHasBeenCast "flesh armor"}}
#TRIGGER {^Your form shimmers and you appear displaced.} {#if (%db( @SpellupAC, displacement)=1 and %db( @SpellupAllSpellsOnMe, displacement)!=2) {SpellUpSpellHasBeenCast "displacement"}}
#TRIGGER {^Your skin becomes tough like the bark of a tree.} {#if (%db( @SpellupAC, barkskin)=1 and %db( @SpellupAllSpellsOnMe, barkskin)!=2) {SpellUpSpellHasBeenCast "barkskin"}}
#TRIGGER {^Your skin turns to stone.} {#if (%db( @SpellupAC, stone skin)=1 and %db( @SpellupAllSpellsOnMe, stone skin)!=2) {SpellUpSpellHasBeenCast "stone skin"}}
#CLASS 0
#CLASS {Spellup|Spellmonitoring|RecastAC|recastacon}
#TRIGGER {^Your globe of invulnerability shimmers and fades.} {#if (%db( @SpellupAC, globe of invulnerability)=1 and %db( @SpellupAllSpellsOnMe, globe of invulnerability)!=2) {SpellUpSpellHasBeenLost "globe of invulnerability"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Globe of Invulnerability) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^The bark surrounding your skin peels away, leaving you more vulnerable.} {#if (%db( @SpellupAC, barkskin)=1 and %db( @SpellupAllSpellsOnMe, barkskin)!=2) {SpellUpSpellHasBeenLost "barkskin"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Barkskin) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^The magic circle around you shimmers and fades away.} {#if (%db( @SpellupAC, magic circle)=1 and %db( @SpellupAllSpellsOnMe, magic circle)!=2) {SpellUpSpellHasBeenLost "magic circle"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Magic Circle) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^The texture of your skin returns to normal.} {#if (%db( @SpellupAC, flesh armor)=1 and %db( @SpellupAllSpellsOnMe, flesh armor)!=2) {SpellUpSpellHasBeenLost "flesh armor"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Flesh Armor) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^You are no longer blurred.} {#if (%db( @SpellupAC, blur)=1 and %db( @SpellupAllSpellsOnMe, blur)!=2) {SpellUpSpellHasBeenLost "blur"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Blur) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^You are no longer displaced.} {#if (%db( @SpellupAC, displacement)=1 and %db( @SpellupAllSpellsOnMe, displacement)!=2) {SpellUpSpellHasBeenLost "displacement"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Displacement) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^You are no longer surrounded by your party shield.} {#if (%db( @SpellupAC, party shield)=1 and %db( @SpellupAllSpellsOnMe, party shield)!=2) {SpellUpSpellHasBeenLost "party shield"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Party Shield) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^You can no longer avoid some attacks.} {#if (%db( @SpellupAC, avoidance)=1 and %db( @SpellupAllSpellsOnMe, avoidance)!=2) {SpellUpSpellHasBeenLost "avoidance"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Avoidance) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^You no longer feel compressed.} {#if (%db( @SpellupAC, compression)=1 and %db( @SpellupAllSpellsOnMe, compression)!=2) {SpellUpSpellHasBeenLost "compression"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Compression) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^Your force field wavers and dissipates.} {#if (%db( @SpellupAC, line of protection)=1 and %db( @SpellupAllSpellsOnMe, line of protection)!=2) {SpellUpSpellHasBeenLost "line of protection"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Line of Protection) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^Your force shield shimmers then fades away.} {#if (%db( @SpellupAC, shield)=1 and %db( @SpellupAllSpellsOnMe, shield)!=2) {SpellUpSpellHasBeenLost "shield"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Shield) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^Your globe of darkness vanishes.} {#if (%db( @SpellupAC, darkness)=1 and %db( @SpellupAllSpellsOnMe, darkness)!=2) {SpellUpSpellHasBeenLost "darkness"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Darkness) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^Your magical armor wears away.} {#if (%db( @SpellupAC, armor)=1 and %db( @SpellupAllSpellsOnMe, armor)!=2) {SpellUpSpellHasBeenLost "armor"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Armor) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^Your mental barrier breaks down.} {#if (%db( @SpellupAC, mental barrier)=1 and %db( @SpellupAllSpellsOnMe, mental barrier)!=2) {SpellUpSpellHasBeenLost "mental barrier"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Mental Barrier) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^Your skin feels soft again.} {#if (%db( @SpellupAC, stone skin)=1 and %db( @SpellupAllSpellsOnMe, stone skin)!=2) {SpellUpSpellHasBeenLost "stone skin"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Stone Skin) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#TRIGGER {^A momentary lapse of concentration causes your thought shield to fade away.} {#if (%db( @SpellupAC, thought shield)=1 and %db( @SpellupAllSpellsOnMe, thought shield)!=2) {SpellUpSpellHasBeenLost "thought shield"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(Magenta,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Thought Shield) %ansi(cyan)wore off! %ansi(Magenta,hi):=-}}}
#CLASS 0
#CLASS {Spellup|Spellmonitoring|RecastStatInt}
#VAR SpellupTrueSeeing {You now detect the presence of those hidden.|You now detect the presence of those invisible.|You now sense magical properties held within artifacts.|You now detect the presence of those who walk in shadow.|You now detect the presence of those who walk in the light.|You can already sense the hidden. |You can already see invisible.|You can already sense magical auras.|You can already sense evil.|You can already sense good.}
#TRIGGER {^%1 answers your call!} {#if (%db( @SpellupStatInt, call upon faith)=1 and %db( @SpellupAllSpellsOnMe, call upon faith)!=2) {SpellUpSpellHasBeenCast "call upon faith"}}
#TRIGGER {^You feel yourself moving more quickly.} {#if (%db( @SpellupStatInt, accelerate)=1 and %db( @SpellupAllSpellsOnMe, accelerate)!=2) {SpellUpSpellHasBeenCast "accelerate"};#if (%db( @SpellupStatInt, haste)=1 and %db( @SpellupAllSpellsOnMe, haste)!=2) {SpellUpSpellHasBeenCast "haste"}}
#TRIGGER {^You are granted the strength of %1.} {#if (%db( @SpellupStatInt, champions strength)=1 and %db( @SpellupAllSpellsOnMe, champions strength)!=2) {SpellUpSpellHasBeenCast "champions strength"}}
#TRIGGER {^You enter the borders of the realm of undeath.} {#if (%db( @SpellupStatInt, wraith form)=1 and %db( @SpellupAllSpellsOnMe, wraith form)!=2) {SpellUpSpellHasBeenCast "wraith form"}}
#TRIGGER {^%1 lends a hand to aid you.} {#if (%db( @SpellupStatInt, aid)=1 and %db( @SpellupAllSpellsOnMe, aid)!=2) {SpellUpSpellHasBeenCast "aid"}}
#TRIGGER {^A virtual fortress forms around you.} {#if (%db( @SpellupStatInt, intellect fortress)=1 and %db( @SpellupAllSpellsOnMe, intellect fortress)!=2) {SpellUpSpellHasBeenCast "intellect fortress"}}
#TRIGGER {^You are blessed with good fortune from *.} {#if (%db( @SpellupStatInt, prayer of fortune)=1 and %db( @SpellupAllSpellsOnMe, prayer of fortune)!=2) {SpellUpSpellHasBeenCast "prayer of fortune"}}
#TRIGGER {^You are completely focused on your inner power.} {#if (%db( @SpellupStatInt, self harmony)=1 and %db( @SpellupAllSpellsOnMe, self harmony)!=2) {SpellUpSpellHasBeenCast "self harmony"}}
#TRIGGER {^You are granted the knowledge of the ages.} {#if (%db( @SpellupStatInt, revelation)=1 and %db( @SpellupAllSpellsOnMe, revelation)!=2) {SpellUpSpellHasBeenCast "revelation"}}
#TRIGGER {^You begin to calculate your odds with great precision.} {#if (%db( @SpellupStatInt, calculation)=1 and %db( @SpellupAllSpellsOnMe, calculation)!=2) {SpellUpSpellHasBeenCast "calculation"}}
#TRIGGER {^{%1 enlightens you.|You feel enlightened.}} {#if (%db( @SpellupStatInt, enlightenment)=1 and %db( @SpellupAllSpellsOnMe, enlightenment)!=2) {SpellUpSpellHasBeenCast "enlightenment"}}
#TRIGGER {^You feel your concentration increase.} {#if (%db( @SpellupStatInt, perception)=1 and %db( @SpellupAllSpellsOnMe, perception)!=2) {SpellUpSpellHasBeenCast "perception"}}
#TRIGGER {^Your mind feels like a sponge as its power is awakened.} {#if (%db( @SpellupStatInt, awakening)=1 and %db( @SpellupAllSpellsOnMe, awakening)!=2) {SpellUpSpellHasBeenCast "awakening"}}
#REGEX {^(You now sense magical properties held within artifacts\.|You now detect the presence of those who walk in the light\.|You now detect the presence of those who walk in shadow\.|You now detect the presence of those invisible\.|You now detect the presence of those hidden\.|You can already sense the hidden\. |You can already sense magical auras\.|You can already sense good\.|You can already sense evil\.|You can already see invisible\.)$} {}
#COND {^(You now sense magical properties held within artifacts\.|You now detect the presence of those who walk in the light\.|You now detect the presence of those who walk in shadow\.|You now detect the presence of those invisible\.|You now detect the presence of those hidden\.|You can already sense the hidden\. |You can already sense magical auras\.|You can already sense good\.|You can already sense evil\.|You can already see invisible\.)$} {} {within|param=1|regex}
#COND {^(You now sense magical properties held within artifacts\.|You now detect the presence of those who walk in the light\.|You now detect the presence of those who walk in shadow\.|You now detect the presence of those invisible\.|You now detect the presence of those hidden\.|You can already sense the hidden\. |You can already sense magical auras\.|You can already sense good\.|You can already sense evil\.|You can already see invisible\.)$} {} {within|param=1|regex}
#COND {^(You now sense magical properties held within artifacts\.|You now detect the presence of those who walk in the light\.|You now detect the presence of those who walk in shadow\.|You now detect the presence of those invisible\.|You now detect the presence of those hidden\.|You can already sense the hidden\. |You can already sense magical auras\.|You can already sense good\.|You can already sense evil\.|You can already see invisible\.)$} {} {within|param=1|regex}
#COND {^(You now sense magical properties held within artifacts\.|You now detect the presence of those who walk in the light\.|You now detect the presence of those who walk in shadow\.|You now detect the presence of those invisible\.|You now detect the presence of those hidden\.|You can already sense the hidden\. |You can already sense magical auras\.|You can already sense good\.|You can already sense evil\.|You can already see invisible\.)$} {#IF (%db( @SpellupStatInt, "true seeing")=1 and %db( @SpellupAllSpellsOnMe, "true seeing")!=2) {SpellUpSpellHasBeenCast "true seeing"}} {within|param=1|regex}
#COND {^You are already true seeing!} {#ADDKEY SpellUpSpellsCriticality %db( @SpellUpSpellsCriticality, "true seeing") %eval( %int( %db( @SpellUpSpellsCriticality, %db( @SpellUpSpellsCriticality, "true seeing"))) + 1)} {within|param=1|regex}
#TRIGGER {^%1 grants you the strength of %2.} {#if (%db( @SpellupStatInt, champions strength)=1 and %db( @SpellupAllSpellsOnMe, champions strength)!=2) {SpellUpSpellHasBeenCast "champions strength"}}
#TRIGGER {^You are now in complete harmony with the party.} {#if (%db( @SpellupStatInt, party harmony)=1 and %db( @SpellupAllSpellsOnMe, party harmony)!=2) {SpellUpSpellHasBeenCast "party harmony"} {#if (%db( @SpellupStatInt, self harmony)=1 and %db( @SpellupAllSpellsOnMe, self harmony)!=2) {SpellUpSpellHasBeenCast "self harmony"}}}
#TRIGGER {^You are empowered by the purity of your faith.} {#if (%db( @SpellupStatInt, pure faith)=1 and %db( @SpellupAllSpellsOnMe, pure faith)!=2) {SpellUpSpellHasBeenCast "pure faith"}}
#CLASS 0
#CLASS {Spellup|Spellmonitoring|RecastStatInt|RecastStatInton}
#TRIGGER {^You feel less protected.} {#if (%db( @SpellupStatInt, aid)=1 and %db( @SpellupAllSpellsOnMe, aid)!=2) {SpellUpSpellHasBeenLost "aid"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Aid) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You feel yourself slow down.} {#if (%db( @SpellupStatInt, accelerate)=1 and %db( @SpellupAllSpellsOnMe, accelerate)!=2) {SpellUpSpellHasBeenLost "accelerate"};#if (%db( @SpellupStatInt, haste)=1 and %db( @SpellupAllSpellsOnMe, haste)!=2) {SpellUpSpellHasBeenLost "haste"};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Haste) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You feel less powerful.} {#if (%db( @SpellupStatInt, call upon faith)=1 and %db( @SpellupAllSpellsOnMe, call upon faith)!=2) {SpellUpSpellHasBeenLost "call upon faith"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Call Upon Faith) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You no longer feel enlightened.} {#if (%db( @SpellupStatInt, enlightenment)=1 and %db( @SpellupAllSpellsOnMe, enlightenment)!=2) {SpellUpSpellHasBeenLost "enlightenment"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Enlightenment) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^Your prayer of fortune weakens.} {#if (%db( @SpellupStatInt, prayer of fortune)=1 and %db( @SpellupAllSpellsOnMe, prayer of fortune)!=2) {SpellUpSpellHasBeenLost "prayer of fortune"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Prayer of Fortune) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^Your intellectual fortress crumbles.} {#if (%db( @SpellupStatInt, intellect fortress)=1 and %db( @SpellupAllSpellsOnMe, intellect fortress)!=2) {SpellUpSpellHasBeenLost "intellect fortress"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Intellect Fortress) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You feel less perceptive.} {#if (%db( @SpellupStatInt, perception)=1 and %db( @SpellupAllSpellsOnMe, perception)!=2) {SpellUpSpellHasBeenLost "perception"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Perception) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You feel the loss of your champion strength.} {#if (%db( @SpellupStatInt, champions strength)=1 and %db( @SpellupAllSpellsOnMe, champions strength)!=2) {SpellUpSpellHasBeenLost "champions strength"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Champions Strength) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You no longer feel so intelligent.} {#if (%db( @SpellupStatInt, revelation)=1 and %db( @SpellupAllSpellsOnMe, revelation)!=2) {SpellUpSpellHasBeenLost "revelation"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Revelation) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You return to the living world.} {#if (%db( @SpellupStatInt, wraith form)=1 and %db( @SpellupAllSpellsOnMe, wraith form)!=2) {SpellUpSpellHasBeenLost "wraith form"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Wraith Form) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You feel almost blind at the loss of your magical sight.} {#if (%db( @SpellupStatInt, "true seeing")=1 and %db( @SpellupAllSpellsOnMe, "true seeing")!=2) {SpellUpSpellHasBeenLost "true seeing"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(True Seeing) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You are no longer in harmony with your party.} {#if (%db( @SpellupStatInt, party harmony)=1) {#if (%db( @SpellupAllSpellsOnMe, party harmony)!=2) {SpellUpSpellHasBeenLost "party harmony"}} {#if (%db( @SpellupStatInt, self harmony)=1 and %db( @SpellupAllSpellsOnMe, self harmony)!=2) {SpellUpSpellHasBeenLost "self harmony"}};#if (%db( @SpellupVar, SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Party Harmony) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You are no longer in harmony with yourself.} {#if (%db( @SpellupStatInt, self harmony)=1 and %db( @SpellupAllSpellsOnMe, self harmony)!=2) {SpellUpSpellHasBeenLost "self harmony"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Self Harmony) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^You are no longer quite so calculating.} {#if (%db( @SpellupStatInt, calculation)=1 and %db( @SpellupAllSpellsOnMe, calculation)!=2) {SpellUpSpellHasBeenLost "calculation"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Calculation) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^Your mind feels less awake.} {#if (%db( @SpellupStatInt, awakening)=1 and %db( @SpellupAllSpellsOnMe, awakening)!=2) {SpellUpSpellHasBeenLost "awakening"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Awakening) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#TRIGGER {^Your faith is no longer so pure.} {#if (%db( @SpellupStatInt, pure faith)=1 and %db( @SpellupAllSpellsOnMe, pure faith)!=2) {SpellUpSpellHasBeenLost "pure faith"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(red,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Pure Faith) %ansi(cyan)wore off! %ansi(Red,hi):=-}}}
#CLASS 0
#CLASS {Spellup|Spellmonitoring|RecastStatStr}
#TRIGGER {^You feel yourself moving at the speed of light!} {#if (%db( @SpellupStatStr, lightspeed)=1 and %db( @SpellupAllSpellsOnMe, lightspeed)!=2) {SpellUpSpellHasBeenCast "lightspeed"}}
#TRIGGER {^You feel your body surge with extra power.} {#if (%db( @SpellupStatStr, mystic might)=1 and %db( @SpellupAllSpellsOnMe, mystic might)!=2) {SpellUpSpellHasBeenCast "mystic might"}}
#TRIGGER {^{%1 blesses you|You are blessed} with divine swiftness{.|!}} {#if (%db( @SpellupStatStr, divine swiftness)=1 and %db( @SpellupAllSpellsOnMe, divine swiftness)!=2) {SpellUpSpellHasBeenCast "divine swiftness"}}
#TRIGGER {^You are embraced by the might of *.} {#if (%db( @SpellupStatStr, godly embrace)=1 and %db( @SpellupAllSpellsOnMe, godly embrace)!=2) {SpellUpSpellHasBeenCast "godly embrace"}}
#TRIGGER {^You are HUGE!} {#if (%db( @SpellupStatStr, enhanced strength)=1 and %db( @SpellupAllSpellsOnMe, enhanced strength)!=2) {SpellUpSpellHasBeenCast "enhanced strength"}}
#TRIGGER {^You are surrounded by a ball of energy.} {#if (%db( @SpellupStatStr, energy ball)=1 and %db( @SpellupAllSpellsOnMe, energy ball)!=2) {SpellUpSpellHasBeenCast "energy ball"}}
#TRIGGER {^You can now absorb some forms of energy.} {#if (%db( @SpellupStatStr, energy containment)=1 and %db( @SpellupAllSpellsOnMe, energy containment)!=2) {SpellUpSpellHasBeenCast "energy containment"}}
#TRIGGER {^You feel your adrenaline pump as your body speeds up.} {#if (%db( @SpellupStatStr, magical rush)=1 and %db( @SpellupAllSpellsOnMe, magical rush)!=2) {SpellUpSpellHasBeenCast "magical rush"}}
#TRIGGER {^You feel your body harden.} {#if (%db( @SpellupStatStr, harden body)=1 and %db( @SpellupAllSpellsOnMe, harden body)!=2) {SpellUpSpellHasBeenCast "harden body"}}
#TRIGGER {^You have given yourself an adrenaline rush!} {#if (%db( @SpellupStatStr, adrenaline control)=1 and %db( @SpellupAllSpellsOnMe, adrenaline control)!=2) {SpellUpSpellHasBeenCast "adrenaline control"}}
#TRIGGER {^{You rally yourself with the power of %2.|%1 channels the power of %2 to rally you!}} {#if (%db( @SpellupStatStr, rally)=1 and %db( @SpellupAllSpellsOnMe, rally)!=2) {SpellUpSpellHasBeenCast "rally"}}
#TRIGGER {^Your faith drives you to strength beyond your means.} {#if (%db( @SpellupStatStr, power of faith)=1 and %db( @SpellupAllSpellsOnMe, power of faith)!=2) {SpellUpSpellHasBeenCast "power of faith"}}
#TRIGGER {^Your muscles surge with heightened power!} {#if (%db( @SpellupStatStr, giant strength)=1 and %db( @SpellupAllSpellsOnMe, giant strength)!=2) {SpellUpSpellHasBeenCast "giant strength"}}
#CLASS 0
#CLASS {Spellup|Spellmonitoring|RecastStatStr|RecastStatStron}
#TRIGGER {^Your mystic might fades away.} {#if (%db( @SpellupStatStr, mystic might)=1 and %db( @SpellupAllSpellsOnMe, mystic might)!=2) {SpellUpSpellHasBeenLost "mystic might"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Mystic Might) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^You no longer move at the speed of light.} {#if (%db( @SpellupStatStr, lightspeed)=1 and %db( @SpellupAllSpellsOnMe, lightspeed)!=2) {SpellUpSpellHasBeenLost "lightspeed"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Lightspeed) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^The adrenaline rush wears off.} {#if (%db( @SpellupStatStr, adrenaline control)=1 and %db( @SpellupAllSpellsOnMe, adrenaline control)!=2) {SpellUpSpellHasBeenLost "adrenaline control"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Adrenaline Control) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^The ball of energy around you disappears.} {#if (%db( @SpellupStatStr, energy ball)=1 and %db( @SpellupAllSpellsOnMe, energy ball)!=2) {SpellUpSpellHasBeenLost "energy ball"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Energy Ball) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^You feel weaker as you question your faith.} {#if (%db( @SpellupStatStr, power of faith)=1 and %db( @SpellupAllSpellsOnMe, power of faith)!=2) {SpellUpSpellHasBeenLost "power of faith"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Power of Faith) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^You feel weaker.} {#if (%db( @SpellupStatStr, giant strength)=1 and %db( @SpellupAllSpellsOnMe, giant strength)!=2) {SpellUpSpellHasBeenLost "giant strength"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Giant Strength) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^You feel yourself calm down.} {#if (%db( @SpellupStatStr, rally)=1 and %db( @SpellupAllSpellsOnMe, rally)!=2) {SpellUpSpellHasBeenLost "rally"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Rally) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^You no longer absorb energy.} {#if (%db( @SpellupStatStr, energy containment)=1 and %db( @SpellupAllSpellsOnMe, energy containment)!=2) {SpellUpSpellHasBeenLost "energy containment"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Energy Containment) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^You no longer feel so HUGE.} {#if (%db( @SpellupStatStr, enhanced strength)=1 and %db( @SpellupAllSpellsOnMe, enhanced strength)!=2) {SpellUpSpellHasBeenLost "enhanced strength"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Enhanced Strength) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^Your body softens.} {#if (%db( @SpellupStatStr, harden body)=1 and %db( @SpellupAllSpellsOnMe, harden body)!=2) {SpellUpSpellHasBeenLost "harden body"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Harden Body) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^Your divine swiftness slows to a halt.} {#if (%db( @SpellupStatStr, divine swiftness)=1 and %db( @SpellupAllSpellsOnMe, divine swiftness)!=2) {SpellUpSpellHasBeenLost "divine swiftness"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Divine Swiftness) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^Your godly embrace relaxes.} {#if (%db( @SpellupStatStr, godly embrace)=1 and %db( @SpellupAllSpellsOnMe, godly embrace)!=2) {SpellUpSpellHasBeenLost "godly embrace"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Godly Embrace) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#TRIGGER {^Your pulse slows to a normal rate.} {#if (%db( @SpellupStatStr, magical rush)=1 and %db( @SpellupAllSpellsOnMe, magical rush)!=2) {SpellUpSpellHasBeenLost "magical rush"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Green,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Magical Rush) %ansi(cyan)wore off! %ansi(Green,hi):=-}}}
#CLASS 0
#CLASS {Spellup|Spellmonitoring|RecastComb}
#TRIGGER {^You feel a strong magical force surround your body.} {#if (%db( @SpellupComb, absorb)=1 and %db( @SpellupAllSpellsOnMe, absorb)!=2) {SpellUpSpellHasBeenCast "absorb"}}
#TRIGGER {^A warm glowing aura forms around you.} {#if (%db( @SpellupComb, indestructible aura)=1 and %db( @SpellupAllSpellsOnMe, indestructible aura)!=2) {SpellUpSpellHasBeenCast "indestructible aura"}}
#TRIGGER {^An inertial barrier forms around you.} {#if (%db( @SpellupComb, inertial barrier)=1 and %db( @SpellupAllSpellsOnMe, inertial barrier)!=2) {SpellUpSpellHasBeenCast "inertial barrier"}}
#TRIGGER {^Finally! You are at one with the wolves.} {#if (%db( @SpellupComb, wolf spirits)=1 and %db( @SpellupAllSpellsOnMe, wolf spirits)!=2) {SpellUpSpellHasBeenCast "wolf spirits"}}
#TRIGGER {^You are filled with holy wrath!} {#if (%db( @SpellupComb, frenzy)=1 and %db( @SpellupAllSpellsOnMe, frenzy)!=2) {SpellUpSpellHasBeenCast "frenzy"}}
#TRIGGER {^You begin to focus your energy into your weapon.} {#if (%db( @SpellupComb, channel energy)=1 and %db( @SpellupAllSpellsOnMe, channel energy)!=2) {SpellUpSpellHasBeenCast "channel energy"}}
#TRIGGER {^You conjure forth an anti-magic shell about you.} {#if (%db( @SpellupComb, antimagic shell)=1 and %db( @SpellupAllSpellsOnMe, antimagic shell)!=2) {SpellUpSpellHasBeenCast "antimagic shell"}}
#TRIGGER {^You feel a weave of awesome spirits surround your body.} {#if (%db( @SpellupComb, spirit shield)=1 and %db( @SpellupAllSpellsOnMe, spirit shield)!=2) {SpellUpSpellHasBeenCast "spirit shield"}}
#TRIGGER {^You feel aligned with darkness.} {#if (%db( @SpellupComb, protection good)=1 and %db( @SpellupAllSpellsOnMe, protection good)!=2) {SpellUpSpellHasBeenCast "protection good"}}
#TRIGGER {^You feel faithful to *.} {#if (%db( @SpellupComb, divine faith)=1 and %db( @SpellupAllSpellsOnMe, divine faith)!=2) {SpellUpSpellHasBeenCast "divine faith"}}
#TRIGGER {^You gain a keen understanding of battle tactics.} {#if (%db( @SpellupComb, combat mind)=1 and %db( @SpellupAllSpellsOnMe, combat mind)!=2) {SpellUpSpellHasBeenCast "combat mind"}}
#TRIGGER {^%1 grant? {you|yourself} the favor of *.} {#if (%db( @SpellupComb, bless)=1 and %db( @SpellupAllSpellsOnMe, bless)!=2) {SpellUpSpellHasBeenCast "bless"}}
#TRIGGER {^You feel holy and pure.} {#if (%db( @SpellupComb, protection evil)=1 and %db( @SpellupAllSpellsOnMe, protection evil)!=2) {SpellUpSpellHasBeenCast "protection evil"}}
#TRIGGER {^You feel protected by *.} {#if (%db( @SpellupComb, holy aura)=1 and %db( @SpellupAllSpellsOnMe, holy aura)!=2) {SpellUpSpellHasBeenCast "holy aura"}}
#TRIGGER {^You are blessed with totem force.} {#IF (%db( @SpellupComb, totem force)=1 and %db( @SpellupAllSpellsOnMe, totem force)!=2) {SpellUpSpellHasBeenCast "totem force"}}
#TRIGGER {^You are blessed with totem guidance.} {#IF (%db( @SpellupComb, totem guidance)=1 and %db( @SpellupAllSpellsOnMe, totem guidance)!=2) {SpellUpSpellHasBeenCast "totem guidance"}}
#CLASS 0
#CLASS {Spellup|Spellmonitoring|RecastComb|RecastCombon}
#TRIGGER {^You no longer absorb magical attacks.} {#if (%db( @SpellupComb, absorb)=1 and %db( @SpellupAllSpellsOnMe, absorb)!=2) {SpellUpSpellHasBeenLost "absorb"};#if (%db(@SpellupVar,SubWearOffSpells)=1) {#SUB {%ansi(Yellow,hi)-=: %ansi(cyan)Spell @SpellupSetColor(Absorb) %ansi(cyan)wore off! %ansi(Yellow,hi):=-}}}
#TRIGGER {^You are no longer channelling energy.} {#if (%db( @SpellupComb, channel energy)=1 |
|
|
|
Ice Beginner
Joined: 07 Sep 2005 Posts: 12
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Jun 22, 2007 8:43 am |
Read through this section of the CMUD help files if you haven't already. It explains the ways in which CMUD differs from zMUD. Your first example with the <>, I assume is intended to execute the command stored in the database. You'll want something like this:
#Alias SpellupToBeRecast {#exec %db(@SpellupVar,AliasSoon)}
because CMUD doesn't automatically execute returns from functions as commands and the <> characters have been removed.
For your second example, you probably don't need a %concat at all. It's likely that the SpellupCast alias (or whatever it is that's calling the SpellupCast alias) isn't compiling, and that's why it's failing. Check the compiled code tab of both to make sure there're no syntax errors.
It could also be an issue with scope. The alias name SpellupCast should be blue and underlined in the package editor, and if you double-click on it, it'll take you to the alias object and let you see what code that's running. If it's not blue then whatever's trying to call the SpellupCast alias can't see it - you need to check that it's enabled and in the same package and so on.
EDIT: Dear sweet Jesus, that's a hell of a lot of script for something that sounds so simple :|
EDIT2: To save other people the trouble of reading through that morass, we narrowed the problem down. It's due to the way the script is using a stringlist separated with semicolons and implicitly concating items onto the list. Lots of work fixing that one! Why the author didn't use a string list I'll never know. |
|
|
|
Thinjon100 Apprentice
Joined: 12 Jul 2004 Posts: 190 Location: Canada
|
Posted: Fri Jun 22, 2007 2:55 pm |
I'm soon to undertake the task of writing my own Aardwolf spellup script from scratch in CMud, and I know from writing one in zMud before, it's no picnic... there are so many spells and some can't be used concurrently, and most people want them automatically recast when they wear off.... a good, all-round spellup script is always a good thing to get ahold of. :)
|
|
_________________ If you're ever around Aardwolf, I'm that invisible guy you can never see. Wizi ftw! :) |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|