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

YASSE Armor (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (Created page with '{{Script |cat=utility |fe=YASSE |auth=Hithrael }} ==Description== Wears or unwears armor. Values determined by YASSE Global Variables (script). ==Syntax=…')
 
m (updated to 2.2)
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
==Updates==
==Updates==
Last Updated:
Last Updated:
*'''04/16/2011''': Correctly handles leg and eye armor.
*'''04/12/2011''': 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
*'''03/30/2011''': Revision 2


Line 19: Line 21:


<pre>
<pre>
set predefined on

action [can't fit over] put [stow right]
action [can't fit over] put [stow right]
setvariable status %1


goto %1
goto $status$


off:
off:
Line 28: Line 33:
put rem my $armorhead$
put rem my $armorhead$
put stow my $armorhead$
put stow my $armorhead$
pausetext 05 You put
pause
pause
put rem my $armormain$
put rem my $armormain$
put stow my $armormain$
put stow my $armormain$
pausetext 05 You put
pause
pause
put rem my $armorhand$
put rem my $armorhand$
put stow my $armorhand$
put stow my $armorhand$
pausetext 05 You put
pause
put rem my $armorleg$
put stow my $armorleg$
pause
put rem my $armoreye$
put stow my $armoreye$
pause
pause
put rem my $shield$
put rem my $shield$
put stow my $shield$
put stow my $shield$
pausetext 05 You put
pause
ifexists $armorleg$ gosub armorleg
pause
ifexists $armoreyes$ gosub armoreyes
pause
goto end
goto end


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

armorleg:
if $status$ eq off
begin
put rem my $armorleg$
put stow my $armorleg$
pausetext 05 You put
end
if $status$ eq on
begin
put get my $armorleg$
put wear my $armorleg$
end
pause
return

armoreyes:
if %s eq off
begin
put rem my $armoreye$
put stow my $armoreye$
pausetext 05 You take
end
if %s eq on
begin
put get my $armoreye$
put wear my $armoreye$
pausetext 05 You put
end
pause
return


end:
end:

Latest revision as of 16:22, 16 April 2011

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/16/2011: Correctly handles leg and eye armor.
  • 04/12/2011: 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)
set predefined on

action [can't fit over] put [stow right]
setvariable status %1

goto $status$

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
put rem my $shield$
put stow my $shield$
pausetext 05 You put
pause
ifexists $armorleg$ gosub armorleg
pause
ifexists $armoreyes$ gosub armoreyes
pause
goto end

on:
save 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$ gosub armorleg
pause
ifexists $armoreyes$ gosub armoreyes
pause
goto end

armorleg:
if $status$ eq off
	begin
	put rem my $armorleg$
	put stow my $armorleg$
	pausetext 05 You put
	end
if $status$ eq on
	begin
	put get my $armorleg$
	put wear my $armorleg$
	end
pause
return

armoreyes:
if %s eq off
	begin
	put rem my $armoreye$
	put stow my $armoreye$
	pausetext 05 You take
	end
if %s eq on
	begin
	put get my $armoreye$
	put wear my $armoreye$
	pausetext 05 You put
	end
pause
return

end:
pause
put sort auto headtotoe
echo [Done]