Branch (script)

From Elanthipedia
Jump to navigation Jump to search
Branch (script)
Category utility
Front-end StormFront
Author Mothra


This StormFront script forages for branches outside the Northeast Gate of Crossing and trains attunement by powerwalking to and from Mags. It assumes you have an empty backpack sized container and are standing in the room directly outside the NE Gate. It will forage branches until your 'backpack' is full and then travel to Mags to sell them to her.

This script is designed for Magic Users. Non-Magic Users will need to edit out the lines containing Per (perceive) and the waitfor roundtime commands immediately following 'Per'.

This script is not intended for AFK scripting. Please stay ATK (at the keyboard) if for nothing else than self preservation as invasions can and will occur on the streets of Crossing and particularly outside the Northeast Gate of Crossing.

When you reach the 5 gold limit Mags will pay out; the script ends.

Syntax: .branch <container you're using>

ie; .branch backpack or .branch knapsack or .branch haversack
start:
echo *** Foraging Branches ***
goto branch

branch:
pause .5
put fora branch
match put Roundtime
match branch ...wait
matchwait

put:
pause .5
put put my branch in my %1
match branch What were you referring to?
match going You just can't get the
match going There isn't any more room
match branch You put your
match going That's too heavy to go in there!
match put ...wait
matchwait

going:
echo ***All full***
echo
echo ***Going to Mags***
goto go

go:
put per
waitfor roundtime
pause 
put go gate
pause 
put per
waitfor roundtime
pause 
move w
put per
waitfor roundtime
pause 
move w
put per
waitfor roundtime
pause 
move s
put per
waitfor roundtime
pause 
move s
put per
waitfor roundtime
pause 
move w
put per
waitfor roundtime
pause 
move w
put per
waitfor roundtime
pause 
move s
put per
waitfor roundtime
pause 
move w
put per
waitfor roundtime
pause 
move s
put per
waitfor roundtime
pause 
move s
put per
waitfor roundtime
pause 
put go baz
pause 
put per
waitfor roundtime
pause
goto mags

mags:
echo *** Selling Branches ***
put give mags
match backpack Mags clucks her tongue, takes your branch
match end Mags chuckles and pats your hand affectionately
match mags ...wait
matchwait

backpack:
pause .5
put remove my %1
pause .5
put give my %1 to mags
match end Mags chuckles and pats your hand affectionately
match wearback You hand Mags your 
match backpack ..wait
matchwait

wearback:
pause .5
put wear my %1
pause .5
goto gate

gate:
echo *** Heading to the NE gate ***
move n
pause 
put per
waitfor roundtime
pause 
move n
pause 
put per
waitfor roundtime
pause 
move n
pause 
put per
waitfor roundtime
pause 
move e
pause 
put per
waitfor roundtime
pause 
move n
pause 
put per
waitfor roundtime
pause 
move e
pause 
put per
waitfor roundtime
pause 
move n
pause 
put per
waitfor roundtime
pause 
move n
pause 
put per
waitfor roundtime
pause 
move e
pause 
put per
waitfor roundtime
pause 
move e
pause 
put per
waitfor roundtime
pause 
move e
pause 
put per
waitfor roundtime
pause 
put go gate
pause 
put per
waitfor roundtime
pause 
goto start

end:
echo ***You've Sold All The Firewood Mags Will Buy From You***
echo
echo 
echo ***Time To Move Onto Other Sources of Income***
exit