Study crafting book (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
No edit summary
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


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


get:
get:
match get ..wait
match get ..wait
matchre chapter_turn /You get|You are already/i
match chapter You get
match chapter You are already
put get my %1 book
put get my %1 book
matchwait
matchwait


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


page_next:
turnpg:
counter add 1
counter add 1

match chapter ..wait
page_turn:
match study You turn
match page_turn ..wait
match nextchp This chapter does not
match page_study You turn
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:
study:
match study ..wait
match page_study ..wait
match turnpg Roundtime
match page_next Roundtime
put study my book
put study my book
matchwait
matchwait


chapter_next:
nextchp:
counter set %s
counter set %s
counter add 1
counter add 1
save %c
save %c
counter set 0
goto chapter
goto chapter_turn


done:
done:

Revision as of 15:28, 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

begin:
counter set 1
save %c
counter set 0

get:
match get ..wait
matchre chapter_turn /You get|You are already/i
put get my %1 book
matchwait

chapter_turn:
match chapter_turn ..wait
matchre page_next /You turn|The book is already/i
match done 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 page_next Roundtime
put study my book
matchwait

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

done:
put sk schol
exit