Study crafting book (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 3: Line 3:
}}
}}
Scholarship training by studying crafting book
Scholarship training by studying crafting book
Usage is .<scriptname> <crafting discipline>
Usage is .<scriptname> <crafting discipline><br/><br/>
Fixed issues with ...wait matches upping the counter as well as pages that don't have roundtimes


<pre>
<pre>
start:
begin:
save 0
counter set 2
save %c


get_book:
get:
match get ..wait
match get_book ...wait
matchre chapter_next /You get|You are already/i
match chapter You get
matchre done /could not find|referring to/i
match chapter You are already
put get %1 book
put get my %1 book
matchwait
matchwait


chapter_next:
chapter:
counter set 0
counter set %s
counter add 1
match chapter ..wait
save %c
match turnpg You turn
counter set 0
match turnpg The book is already
match done does not have
put turn book to chapter %s
matchwait


chapter_turn:
turnpg:
match chapter_turn ...wait
counter add 1
matchre page_next /You turn|The book is already/i
match chapter ..wait
match study You turn
match start does not have
put turn my book to chapter %s
match nextchp This chapter does not
matchwait
put turn book to page %c
matchwait


page_next:
study:
counter add 1
match study ..wait
match turnpg Roundtime
put study my book
matchwait


page_turn:
nextchp:
match page_turn ...wait
counter set %s
match page_study You turn
counter add 1
match chapter_next This chapter does not
save %c
put turn my book to page %c
goto chapter
matchwait

page_study:
match page_study ...wait
matchre exp /Roundtime|You (read|peruse|scan|review)/i
put study my book
matchwait

exp:
matchre done /(34/34)|mind lock/i
match page_next EXP HELP
put exp schol
matchwait


done:
done:
exit
put sk schol

exit
</pre>
</pre>

Latest revision as of 19:45, 12 June 2015

Study crafting book (script)
Category Training
Front-end Unknown
Author Unknown

Scholarship training by studying crafting book Usage is .<scriptname> <crafting discipline>

Fixed issues with ...wait matches upping the counter as well as pages that don't have roundtimes

start:
	save 0

get_book:
	match get_book ...wait
	matchre chapter_next /You get|You are already/i
	matchre done /could not find|referring to/i
	put get my %1 book
	matchwait

chapter_next:
	counter set %s
	counter add 1
	save %c
	counter set 0

chapter_turn:
	match chapter_turn ...wait
	matchre page_next /You turn|The book is already/i
	match start does not have
	put turn my book to chapter %s
	matchwait

page_next:
	counter add 1

page_turn:
	match page_turn ...wait
	match page_study You turn
	match chapter_next This chapter does not
	put turn my book to page %c
	matchwait

page_study:
	match page_study ...wait
	matchre exp /Roundtime|You (read|peruse|scan|review)/i
	put study my book
	matchwait

exp:
	matchre done /(34/34)|mind lock/i
	match page_next EXP HELP
	put exp schol
	matchwait

done:
	exit