Vapes Foraging Task (script)

From Elanthipedia
Revision as of 12:58, 23 May 2016 by KASHNA (talk | contribs) (added category of "survival")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Vapes Foraging Task (script)
Category utility,Survival
Front-end genie
Author Vapes


This script was made primarily to help low level traders lock trading via the TASK system. As outdoormanship increases the difficulty of the tasks increases. This only has been setup for up to about 70 Outdoorsmanship which will be fine if you start using it right away. It also skips some seasonal items which you can change up if it's not winter.


echo ***************************************************************************
echo Start at Mags in Crossing
echo Usage: .taskforage [Optional: appraisal item]
echo ***************************************************************************

GetTask:
if $Trading.LearningRate > 33 then goto End
matchre TaskAvailable I need (\d+) (.*?)\.
matchre TaskWait I am sorry
matchre AlreadyOnTask You are already on a task.
put ask mags for task
matchwait

TaskWait:
if_1 goto Appraise
pause 10
goto GetTask

Appraise:
put appraise my %1
waitfor Roundtime
goto GetTask

AlreadyOnTask:
put ask mags for task cancel
put ask mags for task cancel
pause 1
goto TaskWait

DeclineTask:
put decline task
goto TaskWait

AcceptTask:
put accept task
counter set 0
goto %item

TaskAvailable:
eval item replacere($2, " ", ".")
var needed $1
if %item = berries then goto DeclineTask
goto AcceptTask

leaves:
var item leaf
goto ToOutside

roots:
var item root
goto ToOutside

branches:
var item branch
goto ToOutside

sticks:
var item stick
goto ToOutside

logs:
var item log
goto ToOutside

limbs:
var item limb
goto ToOutside

grasses:
var item grass
goto ToOutside

bits.of.sap:
var item sap
goto ToOutside

bits.of.dirt:
var item dirt
goto ToOutside

rusty.nails:
var item rusty nail
save GiveItems
goto ForageItem

rocks:
var item rock
goto ToOutside

shoe.tacks:
var item shoe tack
goto ToInside

twigs:
var item twig
goto ToOutside

acorns:
var item acorn
goto ToOutside

stems:
var item stem
goto ToOutside

pieces.of.wild.corn:
var item corn
goto ToNorthGate

ToNorthGate:
move n
move n
move n
move e
move n
move w
move n
move w
move n
move w
move w
move go arch
save FromNorthGate
goto ForageItem

FromNorthGate:
move go arch
move e
move e
move s
move e
move s
move e
move s
move w
move s
move s
move go bazaar
goto GiveItems

ToOutside:
// Travel to NE Gate
move n
move n
move n
move e
move n
move e
move n
move n
move e
move e
move e
move go northeast gate
save FromOutside
goto ForageItem

ToInside:
// Travel to Inside
move se
move go tent
save FromInside
goto ForageItem

FromOutside:
// Travel from outside to Mags
move go gate
move w
move w
move w
move s
move s
move w
move s
move w
move s
move s
move go bazaar
goto GiveItems

FromInside:
// Travel from inside to Mags
move go flap
move go arch
goto GiveItems

ForageItem:
put forage %item
match GotItem You manage
match ForageItem Roundtime
match StowAll You really need to have at least one hand free to forage properly.
matchwait

StowAll:
put stow left
waitfor You put
put stow right
waitfor You put
goto ForageItem


GotItem:
counter add 1
put stow %item
waitfor You put
if %c < %needed then goto ForageItem
goto %s

GiveItems:
put get %item
put give %item to mags
match GiveItems "Thanks,
match GetTask "Thank you very much,
matchwait

End:
exit