YASSE Forage (script)

From Elanthipedia
Jump to: navigation, search
YASSE Forage (script)
Category training
Front-end YASSE
Author Hithrael


Contents

Description

Trains foraging until it has exceeded 30/34 in a given cycle.

Syntax

Run as .forage <forage item> <location to place>

Updates

Last Updated:

  • 03/24/2011: Revision 1.1, cleaned up variables; added support to forage carefully based on an info query.
  • 11/04/2010: Revision 1.0

Script

boxmessage Run as .forage <forage item> <location to place>

prep:
set predefined on
counter set 0

setvariable item %1
setvariable boxdrop %2

#This section sets foraging to careful if guild is NOT survival tertiary
match guildcareful barbarian
match guildcareful empath
match guildcareful moon mage
match guildcareful necromancer
match guildcareful thief
match guildcareful trader
match guildcareful ranger
put info
matchwait 5
goto start


guildcareful:
setvariable style careful
goto start

start:
boxmessage Foraging for: $item$ \nPlacing in: $boxdrop$

foragecycle:
for forloop = 1 to 10
	begin
	pause
	gosub forage
	end

forage:
put forage $item$ $style$
waitfor roundtime
put put $item$ in $boxdrop$
return

expcheck:
pause
put exp skill foraging
waitfor Overall state of mind
getinfo ForagingState 
pause 2
if %result >= 30 goto report
if %result < 30 
	begin
		counter inc
		goto foragecycle
	end

report:
boxmessage You foraged $item$ %c cycles (10 times per cycle) to get to at least bewildering.

end:
exit

Personal tools
SUPPORT ELANTHIPEDIA