YASSE Forage (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
m (added category of "Survival")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Script
Version 1
|cat=Training, Survival
<br />
|fe=YASSE
--[[User:Hithrael|Hithrael]] 21:24, 4 November 2010 (UTC)
|auth=[[User:Hithrael|Hithrael]]
}}


==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==


<pre>
<pre>
boxmessage Run as .forage <forage item> <location to place>
boxmessage This script brought to you by Kraggur \nVersion 1, November 11 2010


prep:
prep:
set predefined on
set predefined on
setvariable style careful
counter set 0
counter set 0


setvariable item %1
setvariable boxdrop %2


#This section sets foraging to careful if guild is NOT survival tertiary
start:
match guildcareful barbarian
boxmessage Script pauses here, the first entry will set forage item, the second pause will be for the container to place the forgeable in.
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


getline
setvariable item %l
pause


guildcareful:
getline
setvariable boxdrop %l
setvariable style careful
goto start
pause


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


foragecycle:
foragecycle:
Line 33: Line 57:


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


Line 43: Line 67:
waitfor Overall state of mind
waitfor Overall state of mind
getinfo ForagingState
getinfo ForagingState
pause 2
if %result >= 30 goto report
if %result >= 30 goto report
if %result < 30
if %result < 30
Line 51: Line 76:


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



end:
end:
exit
exit

</pre>
</pre>

Latest revision as of 14:05, 23 May 2016

YASSE Forage (script)
Category Training,Survival
Front-end YASSE
Author Hithrael


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