function get_sets() TP_Index = 1 Idle_Index = 1 -- WS sets sets.WS = {} sets.WS["Evisceration"] = { head="Pill. Bonnet +1", body="Plunderer's Vest +1", feet="Plun. Poulaines +1", neck="Nefarious Collar", waist="Caudata Belt", left_ear="Moonshade Earring", right_ear="Brutal Earring", left_ring="Demonry Ring", right_ring="Epona's Ring", back="Rancorous Mantle", } sets.WS["Mercy Stroke"] = { head="Pill. Bonnet +1", body="Pillager's Vest +1", feet="Plun. Poulaines +1", neck="Justiciar's Torque", waist="Prosilio Belt", left_ear="Steelflash Earring", right_ear="Bladeborn Earring", left_ring="Pyrosoul Ring", right_ring="Epona's Ring", back="Buquwik Cape", } sets.WS["Exenterator"] = { head="Pill. Bonnet +1", body="Plunderer's Vest +1", feet="Plun. Poulaines +1", neck="Justiciar's Torque", waist="Caudata Belt", left_ear="Steelflash Earring", right_ear="Bladeborn Earring", left_ring="Stormsoul Ring", right_ring="Epona's Ring", back="Canny Cape", } sets.WS["Rudra's Storm"] = { head="Whirlpool Mask", body="Plunderer's Vest +1", legs="Manibozho Brais", feet="Plun. Poulaines +1", waist="Chiner's Belt", left_ear="Moonshade Earring", right_ear="Brutal Earring", left_ring="Rajas Ring", right_ring="Epona's Ring", back="Atheling Mantle", } -- TP sets to choose from TP_Set_Names = {"DD", "TH", "ACCTH", "ACC"} sets.TP = {} -- index 1 sets.TP['DD'] = { main="Mandau", sub="Sandung", ammo="Yetshila", head="Felistris Mask", body="Thaumas Coat", hands="Pill. Armlets +1", legs="Pill. Culottes +1", feet="Plun. Poulaines +1", neck="Asperity Necklace", waist="Patentia Sash", left_ear="Heartseeker Earring", right_ear="Dudgeon Earring", left_ring="Rajas Ring", right_ring="Epona's Ring", back="Canny Cape", } -- index 2 sets.TP['TH'] = { head="Uk'uxkaj Cap", body="Plunderer's Vest +1", hands="Plun. Armlets +1", legs="Pill. Culottes +1", feet="Raid. Poulaines +2", neck="Nefarious Collar", waist="Chaac Belt", left_ear="Heartseeker Earring", right_ear="Dudgeon Earring", left_ring="Rajas Ring", right_ring="Epona's Ring", back="Rancorous Mantle" } -- Index 3 sets.TP['ACCTH'] = { head="Whirlpool Mask", body="Pillager's Vest +1", hands="Plun. Armlets +1", legs="Plun. Culottes +1", feet="Raid. Poulaines +2", neck="Rancor Collar", waist="Chaac Belt", left_ear="Heartseeker Earring", right_ear="Dudgeon Earring", left_ring="Rajas Ring", right_ring="Epona's Ring", back="Letalis Mantle", } -- Index 4 sets.TP['ACC'] = { head="Whirlpool Mask", body="Pillager's Vest +1", hands="Plun. Armlets +1", legs="Plun. Culottes +1", feet="Pill. Poulaines +1", neck="Rancor Collar", waist="Hurch'lan Sash", left_ear="Heartseeker Earring", right_ear="Dudgeon Earring", left_ring="Rajas Ring", right_ring="Epona's Ring", back="Letalis Mantle", } -- Idle sets to choose from Idle_Set_Names ={"Normal"} sets.Idle = {} sets.Idle['Normal'] = { main="Mandau", sub="Sandung", ammo="Yetshila", head="Felistris Mask", body="Thaumas Coat", hands="Pill. Armlets +1", legs="Pill. Culottes +1", feet="Pill. Poulaines +1", neck="Asperity Necklace", waist="Patentia Sash", left_ear="Heartseeker Earring", right_ear="Dudgeon Earring", left_ring="Paguroidea Ring", right_ring="Sheltered Ring", back="Canny Cape", } end -- Gearswap argument code function precast(spell) if sets.WS[spell.english] then equip(sets.WS[spell.english]) end end function aftercast(spell) if player.status =='Engaged' then equip(sets.TP[TP_Set_Names[TP_Index]]) else equip(sets.Idle[Idle_Set_Names[Idle_Index]]) end end function status_change(new,old) if T{'Idle','Resting'}:contains(new) then equip(sets.Idle[Idle_Set_Names[Idle_Index]]) elseif new == 'Engaged' then equip(sets.TP[TP_Set_Names[TP_Index]]) end end function buff_change(name,gain) if name == "Feint" then if gain then enable("legs") equip({legs="Plun. Culottes +1"}) disable("legs") else enable("legs") end end end -- Self commands function self_command(command) if command == 'DD' then TP_Index = 1 equip(sets.TP[TP_Set_Names[TP_Index]]) send_command('@input /echo ----- changed to DD -----') end if command == 'TH' then TP_Index = 2 equip(sets.TP[TP_Set_Names[TP_Index]]) send_command('@input /echo ----- changed to TH -----') end if command == 'ACCTH' then TP_Index = 3 equip(sets.TP[TP_Set_Names[TP_Index]]) send_command('@input /echo ----- changed to ACCTH -----') end if command == 'ACC' then TP_Index = 4 equip(sets.TP[TP_Set_Names[TP_Index]]) send_command('@input /echo ----- changed to ACC -----') end end