Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets() --Contains all set declarations
- -- Index Declarations
- Idle_Index = 1
- TP_Index = 1
- -- Idle sets
- Idle_Set_Names = {'speed'}
- sets.idle = {}
- sets.idle.speed = {
- head="lithelimb cap",neck="twilight torque",ear1="Dudgeon earring",ear2="Heartseeker earring",
- body="mekosu. harness",hands="umuthi gloves",ring1="Shneddick Ring",ring2="Paguroidea Ring",
- back="Mecisto. Mantle",waist="flume Belt",legs="Ighwa Trousers",feet="qaaxo leggings"
- }
- sets.idle.current = sets.idle.speed
- -- TP sets
- TP_Set_Names = {'normal','accuracy','PDT','CP','TH'}
- sets.TP = {}
- sets.TP.normal = {
- head="Skulker's Bonnet +1",neck="Asperity Necklace",ear1="steelflash earring",ear2="bladeborn earring",
- body="Skulker's Vest +1",hands="Skulk. Armlets +1",ring1="Rajas Ring",ring2="Epona's Ring",
- back="Canny Cape",waist="anguinus belt",legs="taeon tights",feet="taeon boots"
- }
- sets.TP.accuracy = {
- head="Skulker's Bonnet +1",neck="Iqabi Necklace",ear1="steelflash earring",ear2="bladeborn earring",
- body="Skulker's Vest +1",hands="Skulk. Armlets +1",ring1="Beeline Ring",ring2="Patricius Ring",
- back="Canny Cape",waist="anguinus belt",legs="taeon tights",feet="taeon boots"
- }
- sets.TP.PDT = {
- head="lithelimb cap",neck="twilight torque",ear1="Dudgeon earring",ear2="Heartseeker earring",
- body="qaaxo harness",hands="umuthi gloves",ring1="Beeline Ring",ring2="Patricius Ring",
- back="mollusca mantle",waist="flume belt",legs="qaaxo tights",feet="qaaxo leggings"
- }
- sets.TP.CP = {
- head="Skulker's Bonnet +1",neck="Asperity Necklace",ear1="Dudgeon earring",ear2="Heartseeker earring",
- body="Skulker's Vest +1",hands="Skulk. Armlets +1",ring1="Rajas Ring",ring2="Epona's Ring",
- back="Mecisto. Mantle",waist="nusku's sash",legs="taeon tights",feet="taeon boots"
- }
- sets.TP.TH = set_combine(sets.TP.normal,{hands="Plun. Armlets +1",feet="Skulk. Poulaines +1"})
- -- WS sets
- sets.WS = {}
- sets.WS.SA = {}
- sets.WS.TA = {}
- sets.WS.SATA = {}
- sets.WS.Evisceration = {
- head="Skulker's Bonnet +1",neck="fotia gorget",ear1="dawn earring",ear2="Moonshade earring",
- body="Plunderer's Vest +1",hands="Skulk. Armlets +1",ring1="Rajas Ring",ring2="Thundersoul Ring",
- back="Vespid mantle",waist="fotia belt",legs="Skulk. Culottes +1",feet="Plun. Poulaines +1"
- }
- sets.WS.SA.Evisceration = set_combine(sets.WS.Evisceration,
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Skulk. Armlets +1",legs="Pill. Culottes +1"})
- sets.WS.TA.Evisceration = set_combine(sets.WS.Evisceration,
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Pill. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
- sets.WS.SATA.Evisceration = set_combine(sets.WS.Evisceration,
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Skulk. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
- sets.WS['Mandalic Stab'] = {
- head="Skulker's Bonnet +1",neck="fotia gorget",ear1="dawn earring",ear2="Moonshade earring",
- body="Skulker's Vest +1",hands="Skulk. Armlets +1",ring1="Rajas Ring",ring2="Thundersoul Ring",
- back="Vespid mantle",waist="fotia belt",legs="taeon tights",feet="Plun. Poulaines +1"
- }
- sets.WS.SA['Mandalic Stab'] = set_combine(sets.WS['Mandalic Stab'],
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Skulk. Armlets +1",legs="Pill. Culottes +1"})
- sets.WS.TA['Mandalic Stab'] = set_combine(sets.WS['Mandalic Stab'],
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Pill. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
- sets.WS.SATA['Mandalic Stab'] = set_combine(sets.WS['Mandalic Stab'],
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Skulk. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
- sets.WS["Rudra's Storm"] = {
- head="Skulker's Bonnet +1",neck="fotia gorget",ear1="dawn earring",ear2="Moonshade earring",
- body="Skulker's Vest +1",hands="Skulk. Armlets +1",ring1="Rajas Ring",ring2="Thundersoul Ring",
- back="Vespid mantle",waist="fotia belt",legs="taeon tights",feet="Plun. Poulaines +1"
- }
- sets.WS.SA["Rudra's Storm"] = set_combine(sets.WS["Rudra's Storm"],
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Skulk. Armlets +1",legs="Pill. Culottes +1"})
- sets.WS.TA["Rudra's Storm"] = set_combine(sets.WS["Rudra's Storm"],
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Pill. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
- sets.WS.SATA["Rudra's Storm"] = set_combine(sets.WS["Rudra's Storm"],
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Skulk. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
- sets.WS.Exenterator = {
- head="Lithelimb Cap",neck="fotia gorget",ear1="dawn earring",ear2="Moonshade earring",
- body="dread jupon",hands="Pill. Armlets +1",ring1="Rajas Ring",ring2="Candent Ring",
- back="Vespid mantle",waist="fotia belt",legs="taeon tights",feet="Plun. Poulaines +1"
- }
- sets.WS.SA.Exenterator = set_combine(sets.WS.Exenterator,{hands="Skulk. Armlets +1"})
- sets.WS.TA.Exenterator = set_combine(sets.WS.Exenterator,
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Pill. Armlets +1",legs="Pill. Culottes +1"})
- sets.WS.SATA.Exenterator = set_combine(sets.WS.Exenterator,
- {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
- hands="Pill. Armlets +1",legs="Pill. Culottes +1"})
- sets.WS["Last Stand"] = {
- head="pill. bonnet +1",neck="Iqabi Necklace",ear1="dawn earring",ear2="Moonshade earring",
- body="mekosu. harness",hands="Plun. Armlets +1",ring1="arewe ring +1",ring2="arewe ring +1",
- back="canny cape",waist="chaac belt",legs="feast hose",feet="Pill. Poulaines +1"
- }
- -- precast sets
- sets.precast = {}
- sets.precast.JA = {}
- sets.precast.MA = {}
- -- JA precast sets
- sets.precast.JA['Perfect Dodge'] = {body = "Plun. Armlets +1"}
- sets.precast.JA.Steal = {head = "Plun. Bonnet +1",hands="Pill. Armlets +1",legs="Pill. Culottes +1",feet="Pill. Poulaines +1"}
- sets.precast.JA.Mug = {head = "Plun. Bonnet +1"}
- sets.precast.JA.Despoil = {legs = "Skulk. Culottes +1", feet = "Skulk. Poulaines +1"}
- sets.precast.JA['Trick Attack'] = {hands = "Pill. Armlets +1"}
- sets.precast.JA['Sneak Attack'] = {hands = "Skulk. Armlets +1"}
- sets.precast.JA.Collaborator = {head = "Skulker's Bonnet +1"}
- sets.precast.JA.Accomplice = {head = "Skulker's Bonnet +1"}
- sets.precast.JA.Conspirator = {body = "Skulker's Vest +1"}
- sets.precast.JA.Flee = {feet="Pill. Poulaines +1"}
- sets.precast.JA.Hide = {body="Pillager's Vest +1"}
- sets.precast.JA.Feint = {legs="Plun. Culottes +1"}
- sets.precast.JA.Larceny = {}
- sets.precast.JA.Waltz = {}
- sets.precast.JA.Bully = sets.TP.TH
- sets.precast.JA.Provoke = sets.TP.TH
- sets.precast.JA.Step = sets.TP.TH
- sets.precast.JA.Flourish = sets.TP.TH
- -- Fastcast
- sets.precast.MA.utsu = {body="dread jupon",ring1="prolix ring"}
- --RA precast sets
- sets.precast.RA = {}
- sets.precast.RA.Shoot = {
- head="pill. bonnet +1",neck="Iqabi Necklace",ear1="Dudgeon earring",ear2="Heartseeker earring",
- body="mekosu. harness",hands="iuitl wristbands +1",ring1="arewe ring +1",ring2="arewe ring +1",
- back="canny cape",waist="chaac belt",legs="nahtirah Trousers",feet="Pill. Poulaines +1"
- }
- -- Midcast sets
- sets.midcast = {}
- --sets.midcast.MA.utsu = {
- --head="Felistris Mask",neck="Asperity Necklace",ear1="Dudgeon earring",ear2="Heartseeker earring",
- --body="Pillager's Vest +1",hands="Plun. Armlets +1",ring1="Rajas Ring",ring2="Epona's Ring",
- --back="Canny Cape",waist="windbuffet belt",legs="Pill. Culottes +1",feet="Plun. Poulaines +1"
- --}
- sets.midcast.JA = {}
- sets.midcast.MA = {}
- --RA midcast sets
- sets.midcast.RA = {}
- sets.midcast.RA.Shoot = {
- head="pill. bonnet +1",neck="Iqabi Necklace",ear1="Dudgeon earring",ear2="Heartseeker earring",
- body="mekosu. harness",hands="Plun. Armlets +1",ring1="arewe ring +1",ring2="arewe ring +1",
- back="canny cape",waist="chaac belt",legs="feast hose Trousers",feet="Skulk. Poulaines +1"
- }
- --/RDM TH pulling
- sets.midcast.MA = {}
- sets.midcast.MA.Diaga = sets.TP.TH
- -- Aftercast sets
- sets.aftercast = {}
- sets.aftercast.JA = {}
- sets.aftercast.MA = {}
- sets.aftercast.RA = {}
- end
- function precast(spell)
- if buffactive['Feint'] then equip(sets.precast.JA.Feint)
- elseif sets.precast.JA[spell.english] then equip(sets.precast.JA[spell.english])
- elseif spell.type=="WeaponSkill" then
- if buffactive['sneak attack'] and buffactive['trick attack']
- and sets.WS.SATA[spell.english] then equip(sets.WS.SATA[spell.english])
- elseif buffactive['sneak attack'] and sets.WS.SA[spell.english] then equip(sets.WS.SA[spell.english])
- elseif buffactive['trick attack'] and sets.WS.TA[spell.english] then equip(sets.WS.TA[spell.english])
- elseif sets.WS[spell.english] then equip(sets.WS[spell.english])
- end
- elseif string.find(spell.english,'Waltz') then
- equip(sets.precast.JA.Waltz)
- elseif string.find(spell.english,'Flourish') then
- equip(sets.precast.JA.Flourish)
- elseif string.find(spell.english,'Step') then
- equip(sets.precast.JA.Step)
- elseif string.find(spell.english,'Utsusemi:') then
- equip(sets.precast.MA.utsu)
- elseif (sets.precast.MA[spell.english]) then equip(sets.precast.MA[spell.english])
- elseif spell.english == 'Ranged' then equip(sets.precast.RA.Shoot)
- end
- end
- function midcast(spell)
- if spell.english == 'Ranged' then equip(sets.midcast.RA.Shoot)
- elseif spell.english == 'Diaga' then equip(sets.TP.TH)
- elseif (sets.midcast.MA[spell.english]) then equip(sets.midcast.MA[spell.english])
- elseif (sets.midcast.JA[spell.english]) then equip(sets.midcast.JA[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 new == 'Engaged' then
- equip(sets.TP[TP_Set_Names[TP_Index]])
- elseif new == 'Resting' then
- equip(sets.idle.resting)
- else equip(sets.idle[Idle_Set_Names[Idle_Index]])
- end
- end
- function self_command(command)
- if command == 'toggle idle' then
- Idle_Index = Idle_Index +1
- if Idle_Index > #Idle_Set_Names then Idle_Index = 1 end
- send_command('@input /echo ----- Idle Set changed to '..Idle_Set_Names[Idle_Index]..' -----')
- equip(sets.idle[Idle_Set_Names[Idle_Index]])
- end
- if command == 'toggle tp' then
- TP_Index = TP_Index +1
- if TP_Index > #TP_Set_Names then TP_Index = 1 end
- send_command('@input /echo ----- TP Set changed to '..TP_Set_Names[TP_Index]..' -----')
- equip(sets.TP[TP_Set_Names[TP_Index]])
- end
- if command == 'toggle speed' then
- equip(sets.idle.speed)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment