Locate *KS* (script)

From Elanthipedia
Revision as of 19:42, 27 April 2019 by KASHNA (talk | contribs) (created page / added script to Elanthipedia)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Locate *KS* (script)
Category Moon Mage,Locate,Magic
Front-end StormFront
Author Kashna

What This Script Does

There are 5 different spells included in the following script. They are cast in order and the first two (CV and PG) are double checked via PERCEIVE PERSON before the mana is wasted on casting them. The spells, in order, are:

1. Clear Vision
2. Piercing Gaze
3. Focus Moonbeam
4. Locate
5. Shift Moonbeam (along with moving the moonbeam to the located individual)

The script is designed so that you can start it with the name of the person you intend to locate as the first variable, and the name of the spell to start at as the second. Examples:

  • .locate Kashna - runs all spells, locating Kashna, casting moonbeam and moving the moonbeam to his location
  • .locate Kashna FM - skips CV and PG casts
  • .locate Kashna locate - skips CV, PG, and FM casts
  • .locate Kashna SM - only casts SM on the moonbeam belonging to the first moon shown via the Observe Moons verb

Using It For The First Time

This script makes fair use of variables.

Be sure to edit the first portion of the script to adjust the necessary variables. These include: (1) character name, (2) cambrinth item, (3) mana to prepare each spell at, (3) mana to charge your cambrinth for each spell. After initial setup these should remain constant until you've gained a significant amount of magic experience, at which point you will likely want to update the values.

Latest Update: 4-27-2019

  • Added script to Elanthipedia.

Locate (Script)

# What is the name of your Moon Mage?

setvariable MYNAME Kashna

# The two variables below identify the cambrinth item you will utilize:
# CAMBDESC is the description of the item
# CAMBITEM is the item's name itself

setvariable CAMBDESC cambrinth
setvariable CAMBITEM armband

# Remove the following line if you don't need to hold cambrinth.
# There is another line at the bottom to wear it after all is completed as well.

put remove my %CAMBDESC %CAMBITEM

# Use the following set of variables to determine how much mana to prepare each spell for.
# the CAMB version determines how much mana your cambrinth item is charged for.

# Clear Vision
setvariable CVMANA 5
setvariable CVCAMB 10
# Piercing Gaze
setvariable PGMANA 5
setvariable PGCAMB 10
# Focus Moonbeam
setvariable FMMANA 5
setvariable FMCAMB 10
# Locate
setvariable LOCATEMANA 15
setvariable LOCATECAMB 5
# Shift Moonbeam
setvariable SMMANA 15
setvariable SMCAMB 5

# END VARIABLE SETTINGS  Script begins here:

LocateNote:
echo
echo ****************************
echo
echo ** First Variable: Name of person to locate
echo 
echo ** Second Variable:  Spell to Start with
echo **   Options: CV, PG, FM, Locate or SM
echo
echo ****************************
echo
pause 3
goto CheckMoons

CheckMoons:
put obs moons
match Xibar Xibar lurking
match Yavash Yavash lurking
match Katamba katamba lurking
match NoMoons Roundtime
matchwait

Xibar:
setvariable MOON Xibar
goto Start%2

Yavash:
setvariable MOON Yavash
goto Start%2

Katamba:
setvariable MOON Katamba
goto Start%2

NoMoons:
pause 2
echo
echo *************************
echo **  There are no moons available.
echo *************************
echo
pause 2
put .exp

Start:
StartCV:
CVCheck:
pause 1
put power %MYNAME
match PGCheck sense the Clear Vision spell
match CVPrep Roundtime
match CVCheck ...wait
matchwait

CVPrep:
pause 1
put prep cv %CVMANA
match CVPrep ...wait
match CVCharge you raise your arms
matchwait

CVCharge:
pause 1
put charg my %CAMBDESC %CAMBITEM %CVCAMB
match CVInvoke absorbs
match CVUgh strain
match CVCharge ...wait
matchwait

CVInvoke:
put invoke my %CAMBDESC %CAMBITEM 
match CVCast Roundtime
match CVInvoke ...wait
matchwait

CVCast:
waitfor fully prepared to cast your
CVCast2:
put cast
match CVCastwait ...wait
match PGCheck You gesture
match CVUgh strain
matchwait

StartPG:
PGCheck:
pause 1
put power %MYNAME
match FMPrep sense the Piercing Gaze spell
match PGPrep Roundtime
match PGCheck ...wait
matchwait

PGPrep:
pause 1
put prep PG %PGMANA
match PGPrep ...wait
match PGCharge you raise your arms
matchwait

PGCharge:
pause 1
put charg my %CAMBDESC %CAMBITEM %PGCAMB
match PGInvoke absorbs
match PGUgh strain
match PGCharge ...wait
matchwait

PGInvoke:
put invoke my %CAMBDESC %CAMBITEM 
match PGCast Roundtime
match PGInvoke ...wait
matchwait

PGCast:
waitfor fully prepared to cast your
PGCast2:
put cast
match PGCastwait ...wait
match FMPrep You gesture
match PGUgh strain
matchwait

StartFM:
FMPrep:
pause 1
put prep fm %FMMANA
match FMPrep ...wait
match FMCharge you raise your arms
matchwait

FMCharge:
pause 1
put charg my %CAMBDESC %CAMBITEM %FMCAMB
match FMInvoke absorbs
match FMUgh strain
match FMCharge ...wait
matchwait

FMInvoke:
put invoke my %CAMBDESC %CAMBITEM 
match FMCast Roundtime
match FMInvoke ...wait
matchwait

FMCast:
waitfor fully prepared to cast your
FMCast2:
put cast %MOON
match FMCastwait ...wait
match LocatePrep You gesture
match FMUgh strain
matchwait

StartLo:
StartLoc:
StartLoca:
StartLocat:
StartLocate:
LocatePrep:
pause 1
put prep locate %LOCATEMANA
match LocatePrep ...wait
match LocateCharge you raise your arms
matchwait

LocateCharge:
pause 1
put charg my %CAMBDESC %CAMBITEM %LOCATECAMB
match LocateInvoke absorbs
match LocateUgh strain
match LocateCharge ...wait
matchwait

LocateInvoke:
put invoke my %CAMBDESC %CAMBITEM 
match LocateCast Roundtime
match LocateInvoke ...wait
matchwait

LocateCast:
waitfor fully prepared to cast your
LocateCast2:
put cast %1
match LocateCastwait ...wait
match SMPrep You gesture
match LocateUgh strain
matchwait

StartSM:
SMPrep:
pause 1
put prep SM %SMMANA
match SMPrep ...wait
match SMCharge you raise your arms
matchwait

SMCharge:
pause 1
put charg my %CAMBDESC %CAMBITEM %SMCAMB
match SMInvoke absorbs
match SMUgh strain
match SMCharge ...wait
matchwait

SMInvoke:
put invoke my %CAMBDESC %CAMBITEM 
match SMCast Roundtime
match SMInvoke ...wait
matchwait

SMCast:
waitfor fully prepared to cast your
SMCast2:
put cast
match SMCastwait ...wait
match SMGesture You gesture
match SMUgh strain
matchwait

SMGesture:
pause 2
put gesture %MOON %1
goto MoonbeamReady

SMCastWait:
pause 1
goto SMCast2

LocateCastWait:
pause 1
goto LocateCast2

CVCastwait:
pause 1
goto CVCast2

PGCastwait:
pause 1
goto PGCast2

FMCastwait:
pause 1
goto FMCast2

CVUgh:
pause 2
echo
echo ************************
echo **  Low mana - failed to cast Clear Vision
echo ************************
echo
pause 2
goto ReleaseSpell

PGUgh:
pause 2
echo
echo ************************
echo **  Low mana - failed to cast Piercing Gaze
echo ************************
echo
pause 2
goto ReleaseSpell

FMUgh:
pause 2
echo
echo ************************
echo **  Low mana - failed to cast Focus Moonbeam
echo ************************
echo
pause 2
goto ReleaseSpell

LocateUgh:
pause 2
echo
echo ************************
echo **  Low mana - failed to cast Locate.
echo ************************
echo
pause 2
goto ReleaseSpell

SMUgh:
pause 2
echo
echo ************************
echo **  Low mana - failed to cast Shift Moonbeam.
echo ************************
echo
pause 2
goto ReleaseSpell

ReleaseSpell:
put release spell
put prep cv
put invok my %CAMBDESC %CAMBITEM 
pause 2
put wear my %CAMBDESC %CAMBITEM 
waitfor fully prepared to cast your
pause 1
put cast
pause 5
goto End

MoonbeamReady:
pause 2
put wear my %CAMBDESC %CAMBITEM
pause 1
echo
echo **************************************
echo **  %MOON moonbeam has been moved to %1 ... hopefully.
echo **************************************
echo
pause 5
goto End

End: