Don't forget, you can log in with your Play.net account

YASSE Armor (script)

From Elanthipedia
Revision as of 12:50, 12 April 2011 by Maintenance script (talk | contribs) (updated to 2.1)
Jump to navigation Jump to search
YASSE Armor (script)
Category utility
Front-end YASSE
Author Hithrael


Description

Wears or unwears armor. Values determined by YASSE Global Variables (script).

Syntax

Run as .scriptname <on/off>, where on is to put on armor, and off is to remove it.

Updates

Last Updated:

  • 04/12/2011: Revision 2.1, skips leg and eye armor if the variables are not set under global, put in pausetext strings to skip armor if an armor is worn that is not from the default.
  • 03/30/2011: Revision 2

Script

(Select All)
action [can't fit over] put [stow right]

goto %1

off:
echo [Removing armor]
pause
put rem my $armorhead$
put stow my $armorhead$
pausetext 05 You put
pause
put rem my $armormain$
put stow my $armormain$
pausetext 05 You put
pause
put rem my $armorhand$
put stow my $armorhand$
pausetext 05 You put
pause
ifexists $armorleg$
	begin
	put rem my $armorleg$
	put stow my $armorleg$
	pausetext 05 You put
	end
pause
ifexists $armoreyes$
	begin
	put rem my $armoreye$
	put stow my $armoreye$
	pausetext 05 You take
	end
pause
put rem my $shield$
put stow my $shield$
pausetext 05 You put
goto end

on:
echo [Donning armor]
pause
put get my $armorhead$
put wear my $armorhead$
pausetext 05 on your head
pause
put get my $armormain$
put wear my $armormain$
pausetext 05 You work
pause
put get my $armorhand$
put wear my $armorhand$
pausetext 05 You slip
pause
put get my $shield$
put wear my $shield$
pausetext 05 You slide
pause
ifexists $armorleg$
	begin
	put get my $armorleg$
	put wear my $armorleg$
	end
pause
ifexists $armoreyes$
	begin
	put get my $armoreye$
	put wear my $armoreye$
	pausetext 05 You put
	end
pause
goto end

end:
pause
put sort auto headtotoe
echo [Done]