Magical research (script)

From Elanthipedia
Revision as of 13:57, 5 January 2017 by RY4NPW (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Magical research (script)
Category magic,training
Front-end Genie,StormFront
Author Padhg


This script uses Gauge Flow to train the specified magic skills.

Notes

  • The script will cast Gauge Flow (GAF) at the highest multiple of 10 mana you can cast it at based on DISCERN. If you want to cast GAF at a specific mana amount (or with cambrinth) then you should cast it manually before running this script.
  • You can chain magics together (from RESEARCH LIST) to research more than one topic.
  • You can PERCEIVE (Moon Mages use PERCEIVE MANA) every 61 seconds to train Attunement while researching other magics, making researching STREAM unnecessary.

Usage

.research <magic1> <magic2> ...

e.g. .research fundamental utility fundamental augmentation warding

Changelog

  • 1/11/2016: Initial version
  • 10/10/2016: Added slashes for StormFront support.
  • 1/5/2017: Added matchwait timeouts to prevent script hangs.

Script

if_1 goto discern
echo What would you like to research? (use RESEARCH LIST to see your options)
echo Usage: .research utility fundamental fundamental augmentation warding
goto quit

discern-pause:
	pause
discern:
	match discern-pause ...wait
	matchre castat100 /for a total of 1\d\d streams\./
	matchre castat90 /for a total of 9\d streams\./
	matchre castat80 /for a total of 8\d streams\./
	matchre castat70 /for a total of 7\d streams\./
	matchre castat60 /for a total of 6\d streams\./
	matchre castat50 /for a total of 5\d streams\./
	matchre castat40 /for a total of 4\d streams\./
	matchre castat30 /for a total of 3\d streams\./
	matchre castat20 /for a total of 2\d streams\./
	matchre castat10 /for a total of 1\d streams\./
	matchre castatmin /for a total of \d streams\./
	put discern gaf
	matchwait 15
	goto discern-pause

castat100:
	setvariable prep-mana 100
	goto research

castat90:
	setvariable prep-mana 90
	goto research

castat80:
	setvariable prep-mana 80
	goto research

castat70:
	setvariable prep-mana 70
	goto research

castat60:
	setvariable prep-mana 60
	goto research

castat50:
	setvariable prep-mana 50
	goto research

castat40:
	setvariable prep-mana 40
	goto research

castat30:
	setvariable prep-mana 30
	goto research

castat20:
	setvariable prep-mana 20
	goto research

castat10:
	setvariable prep-mana 10
	goto research

castatmin:
	setvariable prep-mana 5
	goto research

research-pause:
	pause
research:
	match research However, there is still more to learn
	match gaf You require some special means
	match gaf Your eyes briefly darken.
	match nextmagic Breakthrough!
	match research-pause ...wait
	match error Usage: RESEARCH
	put research %1 300
	matchwait 305
	goto research

nextmagic:
	shift
	if_1 goto research
	goto quit

gaf-pause:
	pause
gaf:
	# cast gauge flow
	match gaf-pause Roundtime
	match gaf-pause ...wait
	match cast You feel fully prepared to cast your spell.
	match cast fully prepared the Gauge Flow spell
	put prep gaf %prep-mana
	matchwait 30
	goto gaf-pause

cast:
	pause
	put cast
	goto research

error:
	echo %1 is not a valid research option.

quit:
	exit