function get_sets()
-- sets
sets.TP = {
main="",
ammo="",
head="",
neck="",
ear1="",
ear2="",
body="",
hands="",
ring1="",
ring2="",
back="",
waist="",
legs="",
feet=""}
sets.WS = {
main="",
ammo="",
head="",
neck="",
ear1="",
ear2="",
body="",
hands="",
ring1="",
ring2="",
back="",
waist="",
legs="",
feet=""}
sets.Idle = {
main="",
ammo="",
head="",
neck="",
ear1="",
ear2="",
body="",
hands="",
ring1="",
ring2="",
back="",
waist="",
legs="",
feet=""}
sets.Resting = {
main="",
ammo="",
head="",
neck="",
ear1="",
ear2="",
body="",
hands="",
ring1="",
ring2="",
back="",
waist="",
legs="",
feet=""}
end
function pretarget(spell)
end
function precast(spell)
if spell.type=="WeaponSkill" then
equip(sets.WS)
end
end
function midcast(spell)
end
function aftercast(spell)
if player.status =='Engaged' then
equip(sets.TP)
else
equip(sets.Idle)
end
end
function status_change(new,old)
if new == 'Resting' then
equip(sets.Resting)
if new == 'Idle' then
equip(set.Idle)
elseif new == 'Engaged' then
equip(sets.TP)
end
end
function self_command(command)
end