BranchTrading (script)

From Elanthipedia
Revision as of 22:23, 11 January 2012 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
BranchTrading (script)
Category training
Front-end StormFront
Author Tjorlando


A Script for novice Traders. Gains trading exp by foraging branches and selling them to Mags in Crossing. Stops teaching around 10 ranks.
If_1 starts the script in front of Mags, otherwise it starts at NE Gate.

# Replace backpack with container you're keeping branches in
save backpack

If_1 goto 2
1:
put forage branch
  match 1 ...wait
  match foundone branch
  match 1 roundtime
 matchwait

foundone:
pause 1
put put my branch in my %s
  match foundone ...wait
  match 1 you put your branch
  match 1 What were you referring to?
  match branchdone That's too heavy to go in there!
 matchwait

branchdone:
pause 1
put put my branch in bucket
pause 1
pause 1
move go gate
move w
move w
move s
move s
move w
move w
move s
move w
move s
move s
pause 1
move go baz
pause 1
put remove my %s
wait
put drop my %s
wait
put guard %s
wait

2:
put get branch in %s
  match 2 ...wait
  match gotbranch you get a
  match gotbranch you are already holding that
  match donesell What were you referring to?
 matchwait

gotbranch:
put give mags
  match 2 Mags clucks her tongue, takes your branch, 
  match nomore Mags chuckles and pats your hand affectionately.
 matchwait

donesell:
pause 1
put get %s
wait
put wear my %s
wait
move n
move n
move n
move e
move n
move e
move e
move n
move n
move e
move e
move go gate
goto 1


nomore:
put get %s
wait
put wear my %s
Echo ***** 
Echo ***** YOU HAVE SOLD ALL THE BRANCHES YOU CAN.  TIME TO START TRADING FOR REAL
Echo ***** 
Echo ***** 
Echo ***** 
Echo *****