Auto Dress by demlar
#Author: Demlar
# Set automatic dress rather than having to setup dress everytime
# ONLY REQUIREMENT is there is items on you to requip it. This will not work if you run this script for the first time naked
# THIS WILL MOST LIKELY REQUIRE RUNNING EVERYTIME YOU START A SESSION.
#version 1.0
# 1.0:
# 1) Initial setup will add more if I forgot one.
#reach out on discord Demlar if you'd like this updated.
#glove wear
if findlayer self gloves as item
getlabel item igloves
overhead "Set: {{igloves}}"
@setvar! currentGloves item
else
if varexist currentGloves
getlabel currentGloves cgloves
overhead "Wearing: {{cgloves}}"
lift currentGloves
drop self gloves
endif
endif
#body wear
if findlayer self innertorso as item
getlabel item iinnertorso
overhead "Set: {{iinnertorso}}"
@setvar! currentInnerTorso item
else
if varexist currentInnerTorso
getlabel currentInnerTorso cinnertorso
overhead "Wearing: {{cinnertorso}}"
lift currentInnerTorso
drop self innertorso
endif
endif
if findlayer self outertorso as item
getlabel item ioutertorso
overhead "Set: {{ioutertorso}}"
@setvar! currentOuterTorso item
else
if varexist currentOuterTorso
getlabel currentOuterTorso coutertorso
overhead "Wearing: {{coutertorso}}"
lift currentOuterTorso
drop self outertorso
endif
endif
#headwear
if findlayer self head as item
getlabel item ihead
overhead "Set: {{ihead}}"
@setvar! currentHead item
else
if varexist currentHead
getlabel currentHead chead
overhead "Wearing: {{chead}}"
lift currentHead
drop self head
endif
endif
if findlayer self neck as item
getlabel item ineck
overhead "Set: {{ineck}}"
@setvar! currentNeck item
else
if varexist currentNeck
getlabel currentNeck cneck
overhead "Wearing: {{cneck}}"
lift currentNeck
drop self neck
endif
endif
if findlayer self innerlegs as item
getlabel item iinnerlegs
overhead "Set: {{iinnerlegs}}"
@setvar! currentInnerLegs item
else
if varexist currentInnerLegs
getlabel currentInnerLegs clegs
overhead "Wearing: {{clegs}}"
lift currentInnerLegs
drop self innerlegs
endif
endif
if findlayer self outerlegs as item
getlabel item iouterlegs
overhead "Set: {{iouterlegs}}"
@setvar! currentOuterLegs item
else
if varexist currentOuterLegs
getlabel currentOuterLegs couterlegs
overhead "Wearing: {{counterlegs}}"
lift currentOuterLegs
drop self outerlegs
endif
endif
if findlayer self arms as item
getlabel item iarms
overhead "Set: {{iarms}}"
@setvar! currentArms item
else
if varexist currentArms
getlabel currentArms carms
overhead "Wearing: {{carms}}"
lift currentArms
drop self arms
endif
endif
if findlayer self righthand as item
getlabel item iRhand
overhead "Set: {{iRhand}}"
@setvar! currentRhand item
else
if varexist currentRhand
getlabel currentRhand cRhand
overhead "Wearing: {{cRhand}}"
lift currentRhand
drop self righthand
endif
endif
if findlayer self lefthand as item
getlabel item iLhand
overhead "Set: {{iLhand}}"
@setvar! currentLhand item
else
if varexist currentLhand
getlabel currentLhand cLhand
overhead "Wearing: {{cLhand}}"
lift currentLhand
drop self lefthand
endif
endif
if findlayer self shoes as item
getlabel item ishoes
overhead "Set: {{ishoes}}"
@setvar! currentShoes item
else
if varexist currentShoes
getlabel currentShoes cshoes
overhead "Wearing: {{cshoes}}"
lift currentShoes
drop self shoes
endif
endif
if findlayer self pants as item
getlabel item ipants
overhead "Set: {{ipants}}"
@setvar! currentPants item
else
if varexist currentPants
getlabel currentPants cpants
overhead "Wearing: {{cpants}}"
lift currentPants
drop self pants
endif
endif
if findlayer self cloak as item
getlabel item icloak
overhead "Set: {{icloak}}"
@setvar! currentCloak item
else
if varexist currentCloak
getlabel currentCloak ccloak
overhead "Wearing: {{ccloak}}"
lift currentCloak
drop self cloak
endif
endif
#Mastery Chain
if findlayer self Talisman as item
getlabel item iTalisman
overhead "Set: {{iTalisman}}"
@setvar! currentTalisman item
else
if varexist currentTalisman
getlabel currentTalisman cTalisman
overhead "Wearing: {{cTalisman}}"
lift currentTalisman
drop self Talisman
endif
endif