Magic Training *KS* (script)

From Elanthipedia
Revision as of 14:10, 1 May 2019 by KASHNA (talk | contribs) (minor exp check bugfix)
Jump to navigation Jump to search
Magic Training *KS* (script)
Category Magic
Front-end StormFront
Author Kashna

What This Script Does

This script trains Augmentation, Utility and Warding magics until they are mind locked. The first page of the script is designed for you to input the variables relevant to your character's cambrinth use, spell choices, and mana to utilize.

Once you've set it up with which spells to cast, and for how much mana, it will then cycle through casting the three chosen spells. Before it prepares each spell it does a quick exp check to verify if it needs to cast this spell or if it should move to the next spell in the cycle. All three magic skills are trained as uniformly as possible, rather than train one skill at a time.

It is designed to be as universal as possible, but isn't fit for all guilds (sorry barbs and thieves, not for you).

Note: unfortunately, if a spell backfires, the script does not detect it yet. I intend to work on that in the future.

Options

1. Do you wish to use 1 cambrinth item or 2?

  • You also define how to interact with the cambrinth that you are going to use. This script assumes that your cambrinth is worn and there is an option to remove/wear it or not as necessary. If it is not worn, you can manually edit the script fairly easily at the top and bottom.

2. What is your easiest spell to cast?

  • If you strain to cast, or to charge a cambrinth, there's a release built in to drain cambrinth of mana so that you don't backfire on your next cast, but we have to define which spell to use to drain the mana.

3. What spell do you wish to use to train each of the three magic skills?

  • After defining the spells to use, you also state how much mana to prepare the spell for, and how much to charge each cambrinth for.

4. Lastly, I discovered that battle spells do not permit enough time to charge more than one cambrinth. As a result, you must tell the script if any of the spells are battle spells or not. If one IS a battle spell, then that spell will ignore the 2nd cambrinth and only utilize the the first cambrinth defined.

Keeping it up-to-date

Last Updated: 5-1-2019:

  • Script created and added to the Elanthipedia
  • May or may not work for Necromancers - when preparing the spell it looks for specific messaging that changes according to one's guild.. and I don't have that for necros.

Magic (Script)

# Do you want to use 1 or 2 cambrinth items?
setvariable CAMBTotal 2

# What is the description of your first cambrinth?
setvariable CAMB1Desc cambrinth
setvariable CAMB1Item armband

# What is the description of your second cambrinth?
setvariable CAMB2Desc cambrinth
setvariable CAMB2Item wristc

# This script assumes that cambrinth is worn.  Must your cambrinth be removed or no?  Respond with "yes" or "no"
setvariable CAMBRemove no

# To clear cambrinth of mana (in case of strain/low mana)
# this script uses an easy-to-cast-spell, pauses for a time
# then continues the loop.
# What is the easiest spell in your spellbook to cast?
setvariable MyEasiestSpell bless

# Use the following sets of variables to determine
# which spells to cast as the mana used.
# If only using 1 cambrinth, you may leave the second blank

# Note: Battle Spells may only use 1 cambrinth
# Otherwise roundtimes are too long.  Note here
# if any of the spells used are Battle Spells (yes/no)
# If yes, then only Camb1 will be used for that spell
setvariable AUGBattle no
setvariable UTILBattle no
setvariable WARDBattle yes

# Augmentation:
setvariable AUGSpell auspice
setvariable AUGMana 17
setvariable AUGCamb1 17
setvariable AUGCamb2 15
# Utility:
setvariable UTILITYSpell dr
setvariable UTILMana 11
setvariable UTILCamb1 10
setvariable UTILCamb2 10
# Warding:
setvariable WARDSpell pfe
setvariable WARDMana 15
setvariable WARDCamb1 14
setvariable WARDCamb2 14

goto GetCamb%CAMBRemove

GetCambYes:
put remove my %CAMB1Desc %CAMB1Item
goto RemoveSecondCamb%CAMBTotal

RemoveSecondCamb2:
put remove my %CAMB2Desc %CAMB2Item

RemoveSecondCamb1:
GetCambNo:
goto Start%1

Start:
StartAug:
StartAugment:
AUGPrep:
put exp augment
match StartUtility 33/34
match StartUtility 34/34
match AUGGo /3
matchwait

AUGGo:
pause 1
setvariable SPELL Augmentation
put prep %AUGSpell %AUGMana
match AUGPrep ...wait
match AUGCharge you raise your arms
match AUGCharge you trace a geometric
match AUGCharge you trace an angular
match AUGCharge you begin chanting
match AUGCharge with meditative movements
match AUGCharge you raise your head
matchwait

AUGCharge:
pause 1
put charg my %CAMB1Desc %CAMB1Item %AUGCamb1
match AUGCharge%CAMBTotal absorbs
match Ugh2 while the rest dissipates harmlessly
match Ugh strain
match AUGCharge ...wait
matchwait

AUGCharge2:
goto AUGBattleCharge%AUGBattle

AUGBattleChargeNo:
pause 1
put charg my %CAMB2Desc %CAMB2Item %AUGCamb2
match AUGInvoke absorbs
match Ugh2 while the rest dissipates harmlessly
match Ugh strain
match AUGBattleChargeNo ...wait
matchwait

AUGBattleChargeYes:
AUGCharge1:
AUGInvoke:
put invoke my %CAMB1Desc %CAMB1Item 
match AUGInvoke%CAMBTotal Roundtime
match AUGInvoke ...wait
matchwait

AUGInvoke2:
goto AUGBattleInvoke%AUGBattle

AUGBattleInvokeNo:
put invoke my %CAMB2Desc %CAMB2Item 
match AUGCast Roundtime
match AUGBattleInvokeNo ...wait
matchwait

AUGBattleInvokeYes:
AUGInvoke1:
AUGCast:
waitfor fully prepared to cast your
put cast
match Backfire backfires
match AUGCastwait ...wait
match Ugh but are too mentally fatigued
match UTILPrep You gesture
matchwait

StartUt:
StartUtil:
StartUtility:
UTILPrep:
put exp utility
match StartWarding 33/34
match StartWarding 34/34
match UTILGo /3
matchwait

UTILGo:
setvariable SPELL Utility
pause 1
put prep %UTILITYSpell %UTILMana
match UTILPrep ...wait
match UTILCharge you raise your arms
match UTILCharge you trace a geometric
match UTILCharge you trace an angular
match UTILCharge you begin chanting
match UTILCharge with meditative movements
match UTILCharge you raise your head
matchwait

UTILCharge:
pause 1
put charg my %CAMB1Desc %CAMB1Item %UTILCamb1
match UTILCharge%CAMBTotal absorbs
match Ugh2 while the rest dissipates harmlessly
match Ugh strain
match UTILCharge ...wait
matchwait

UTILCharge2:
goto UTILBattleCharge%UTILBattle

UTILBattleChargeNo:
pause 1
put charg my %CAMB2Desc %CAMB2Item %UTILCamb2
match UTILInvoke absorbs
match Ugh2 while the rest dissipates harmlessly
match Ugh strain
match UTILBattleChargeNo ...wait
matchwait

UTILBattleChargeYes:
UTILCharge1:
UTILInvoke:
put invoke my %CAMB1Desc %CAMB1Item
match UTILInvoke%CAMBTotal Roundtime
match UTILInvoke ...wait
matchwait

UTILInvoke2:
goto UTILBattleInvoke%UTILBattle

UTILBattleInvokeNo:
put invoke my %CAMB2Desc %CAMB2Item
match UTILCast Roundtime
match UTILBattleInvokeNo ...wait
matchwait

UTILBattleInvokeYes:
UTILInvoke1:
UTILCast:
waitfor fully prepared to cast your
put cast
match Backfire backfires
match UTILCastwait ...wait
match Ugh but are too mentally fatigued
match StartWarding You gesture
matchwait

StartWard:
StartWarding:
WARDPrep:
put exp warding
match EXPCheck 33/34
match EXPCheck 34/34
match WARDGo /3
matchwait

WARDGo:
setvariable SPELL Warding
pause 1
put prep %WARDSpell %WARDMana
match WARDPrep ...wait
match WARDCharge you raise your arms
match WARDCharge you trace a geometric
match WARDCharge you trace an angular
match WARDCharge you begin chanting
match WARDCharge with meditative movements
match WARDCharge you raise your head
matchwait

WARDCharge:
pause 1
put charg my %CAMB1Desc %CAMB1Item %WARDCamb1
match WARDCharge%CAMBTotal absorbs
match Ugh2 while the rest dissipates harmlessly
match Ugh strain
match WARDCharge ...wait
matchwait

WARDCharge2:
goto WARDBattleCharge%WARDBattle

WARDBattleChargeNo:
pause 1
put charg my %CAMB2Desc %CAMB2Item %WARDCamb2
match WARDInvoke absorbs
match Ugh2 while the rest dissipates harmlessly
match Ugh strain
match WARDBattleChargeNo ...wait
matchwait

WARDBattleChargeYes:
WARDCharge1:
WARDInvoke:
put invoke my %CAMB1Desc %CAMB1Item
match WARDInvoke%CAMBTotal Roundtime
match WARDInvoke ...wait
matchwait

WARDInvoke2:
goto WARDBattleInvoke%WARDBattle

WARDBattleInvokeNo:
put invoke my %CAMB2Desc %CAMB2Item
match WARDCast Roundtime
match WARDBattleInvokeNo ...wait
matchwait

WARDBattleInvokeYes:
WARDInvoke1:
WARDCast:
waitfor fully prepared to cast your
put cast
match Backfire Backfires
match WARDCastwait ...wait
match Ugh but are too mentally fatigued
match ExpCheck You gesture
matchwait
AUGCastwait:
pause 1
goto AUGCast

UTILCastwait:
pause 1
goto UTILCast

WARDCastwait:
pause 1
goto WARDCast

ExpCheck:
put exp augment
match CheckUtility 33/34
match CheckUtility 34/34
match AUGGo /3
matchwait

CheckUtility:
put exp utility
match CheckWarding 33/34
match CheckWarding 34/34
match UTILGo /3
matchwait

CheckWarding:
put exp ward
match Done 33/34
match Done 34/34
match WardGo /3
matchwait

Done:
pause 1
echo
echo   ***************************************
echo   ***  Augmentation, Utility, and Warding mind locked
echo   ***************************************
echo
pause 10
goto WearCamb%CAMBRemove

Backfire:
pause 1
echo
echo   ************************************
echo   ***  Backfire - must adjust %SPELL mana
echo   ************************************
echo
pause 10
goto WearCamb%CAMBRemove

Ugh2:
setvariable UGHWait no
goto UGHSpell

Ugh:
setvariableUGHWait yes
goto UGHSpell

UGHSpell:
pause 5
put release spell
put prep %MyEasiestSpell
UghInvoke:
pause 1
put invok my %CAMB1Desc %CAMB1Item
match UghInvoke2 Roundtime
match UghInvoke ...wait
matchwait
UghInvoke2:
pause 1
put invok my %CAMB2Desc %CAMB2Item
match UghCastWait Roundtime
match UghInvoke2 ...wait
matchwait
UghCastWait:
waitfor fully prepared to cast your
UghCast:
pause 1
put cast
goto UGHWait%UGHWait

UGHWaitYes:
pause 150
goto EXPCheck

UGHWaitNo:
goto Start%SPELL

WearCambyes:
put wear my %CAMB1Desc %CAMB1Item
put wear my %CAMB2Desc %CAMB2Item
WearCambno: