Study crafting book (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
Scholarship training by studying crafting book
Scholarship training by studying crafting book
Usage is .<scriptname> <crafting discipline><br/><br/>
Usage is .<scriptname> <crafting discipline><br/><br/>
Fixed issues with ..wait matches upping the counter
Fixed issues with ...wait matches upping the counter


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


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

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


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


page_next:
page_next:
counter add 1
counter add 1


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


page_study:
page_study:
match page_study ..wait
match page_study ...wait
match page_next Roundtime
match exp Roundtime
put study my book
put study my book
matchwait
matchwait


exp:
chapter_next:
matchre done /[34/34]|mind lock/i
counter set %s
match page_next EXP HELP
counter add 1
put exp schol
save %c
matchwait
counter set 0
goto chapter_turn


done:
done:
exit
put sk schol

exit
</pre>
</pre>

Revision as of 18:39, 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

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
	match exp Roundtime
	put study my book
	matchwait

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

done:
	exit