Guest User

Untitled

a guest
Jun 7th, 2015
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.68 KB | None | 0 0
  1. function get_sets() --Contains all set declarations
  2.     -- Index Declarations
  3.      Idle_Index = 1
  4.      TP_Index = 1
  5.    
  6.     -- Idle sets
  7.     Idle_Set_Names = {'speed'}
  8.     sets.idle = {}
  9.    
  10.     sets.idle.speed = {
  11.     head="lithelimb cap",neck="twilight torque",ear1="Dudgeon earring",ear2="Heartseeker earring",
  12.     body="mekosu. harness",hands="umuthi gloves",ring1="Shneddick Ring",ring2="Paguroidea Ring",
  13.     back="Mecisto. Mantle",waist="flume Belt",legs="Ighwa Trousers",feet="qaaxo leggings"
  14.     }
  15.        
  16.     sets.idle.current = sets.idle.speed
  17.    
  18.     -- TP sets
  19.     TP_Set_Names = {'normal','accuracy','PDT','CP','TH'}
  20.     sets.TP = {}
  21.     sets.TP.normal = {
  22.     head="Skulker's Bonnet +1",neck="Asperity Necklace",ear1="steelflash earring",ear2="bladeborn earring",
  23.     body="Skulker's Vest +1",hands="Skulk. Armlets +1",ring1="Rajas Ring",ring2="Epona's Ring",
  24.     back="Canny Cape",waist="anguinus belt",legs="taeon tights",feet="taeon boots"
  25.     }
  26.     sets.TP.accuracy = {
  27.     head="Skulker's Bonnet +1",neck="Iqabi Necklace",ear1="steelflash earring",ear2="bladeborn earring",
  28.     body="Skulker's Vest +1",hands="Skulk. Armlets +1",ring1="Beeline Ring",ring2="Patricius Ring",
  29.     back="Canny Cape",waist="anguinus belt",legs="taeon tights",feet="taeon boots"
  30.     }
  31.     sets.TP.PDT = {
  32.     head="lithelimb cap",neck="twilight torque",ear1="Dudgeon earring",ear2="Heartseeker earring",
  33.     body="qaaxo harness",hands="umuthi gloves",ring1="Beeline Ring",ring2="Patricius Ring",
  34.     back="mollusca mantle",waist="flume belt",legs="qaaxo tights",feet="qaaxo leggings"
  35.     }
  36.     sets.TP.CP = {
  37.     head="Skulker's Bonnet +1",neck="Asperity Necklace",ear1="Dudgeon earring",ear2="Heartseeker earring",
  38.     body="Skulker's Vest +1",hands="Skulk. Armlets +1",ring1="Rajas Ring",ring2="Epona's Ring",
  39.     back="Mecisto. Mantle",waist="nusku's sash",legs="taeon tights",feet="taeon boots"
  40.     }
  41.     sets.TP.TH  = set_combine(sets.TP.normal,{hands="Plun. Armlets +1",feet="Skulk. Poulaines +1"})
  42.    
  43.    
  44.     -- WS sets
  45.     sets.WS = {}
  46.     sets.WS.SA = {}
  47.     sets.WS.TA = {}
  48.     sets.WS.SATA = {}
  49.    
  50.     sets.WS.Evisceration = {
  51.     head="Skulker's Bonnet +1",neck="fotia gorget",ear1="dawn earring",ear2="Moonshade earring",
  52.     body="Plunderer's Vest +1",hands="Skulk. Armlets +1",ring1="Rajas Ring",ring2="Thundersoul Ring",
  53.     back="Vespid mantle",waist="fotia belt",legs="Skulk. Culottes +1",feet="Plun. Poulaines +1"
  54.     }
  55.    
  56.     sets.WS.SA.Evisceration = set_combine(sets.WS.Evisceration,
  57.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  58.             hands="Skulk. Armlets +1",legs="Pill. Culottes +1"})
  59.     sets.WS.TA.Evisceration = set_combine(sets.WS.Evisceration,
  60.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  61.             hands="Pill. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
  62.     sets.WS.SATA.Evisceration = set_combine(sets.WS.Evisceration,
  63.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  64.             hands="Skulk. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
  65.    
  66.     sets.WS['Mandalic Stab'] = {
  67.     head="Skulker's Bonnet +1",neck="fotia gorget",ear1="dawn earring",ear2="Moonshade earring",
  68.     body="Skulker's Vest +1",hands="Skulk. Armlets +1",ring1="Rajas Ring",ring2="Thundersoul Ring",
  69.     back="Vespid mantle",waist="fotia belt",legs="taeon tights",feet="Plun. Poulaines +1"
  70.     }
  71.    
  72.     sets.WS.SA['Mandalic Stab'] = set_combine(sets.WS['Mandalic Stab'],
  73.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  74.             hands="Skulk. Armlets +1",legs="Pill. Culottes +1"})
  75.     sets.WS.TA['Mandalic Stab'] = set_combine(sets.WS['Mandalic Stab'],
  76.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  77.             hands="Pill. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
  78.     sets.WS.SATA['Mandalic Stab'] = set_combine(sets.WS['Mandalic Stab'],
  79.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  80.             hands="Skulk. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
  81.    
  82.     sets.WS["Rudra's Storm"] = {
  83.     head="Skulker's Bonnet +1",neck="fotia gorget",ear1="dawn earring",ear2="Moonshade earring",
  84.     body="Skulker's Vest +1",hands="Skulk. Armlets +1",ring1="Rajas Ring",ring2="Thundersoul Ring",
  85.     back="Vespid mantle",waist="fotia belt",legs="taeon tights",feet="Plun. Poulaines +1"
  86.     }
  87.    
  88.     sets.WS.SA["Rudra's Storm"] = set_combine(sets.WS["Rudra's Storm"],
  89.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  90.             hands="Skulk. Armlets +1",legs="Pill. Culottes +1"})
  91.     sets.WS.TA["Rudra's Storm"] = set_combine(sets.WS["Rudra's Storm"],
  92.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  93.             hands="Pill. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
  94.     sets.WS.SATA["Rudra's Storm"] = set_combine(sets.WS["Rudra's Storm"],
  95.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  96.             hands="Skulk. Armlets +1",ring1="Dumakulem's Ring",legs="Pill. Culottes +1"})
  97.    
  98.     sets.WS.Exenterator = {
  99.     head="Lithelimb Cap",neck="fotia gorget",ear1="dawn earring",ear2="Moonshade earring",
  100.     body="dread jupon",hands="Pill. Armlets +1",ring1="Rajas Ring",ring2="Candent Ring",
  101.     back="Vespid mantle",waist="fotia belt",legs="taeon tights",feet="Plun. Poulaines +1"
  102.     }
  103.    
  104.     sets.WS.SA.Exenterator = set_combine(sets.WS.Exenterator,{hands="Skulk. Armlets +1"})
  105.     sets.WS.TA.Exenterator = set_combine(sets.WS.Exenterator,
  106.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  107.             hands="Pill. Armlets +1",legs="Pill. Culottes +1"})
  108.     sets.WS.SATA.Exenterator = set_combine(sets.WS.Exenterator,
  109.             {head = "Pill.Bonnet +1",body="Pillager's Vest +1",
  110.             hands="Pill. Armlets +1",legs="Pill. Culottes +1"})
  111.    
  112.     sets.WS["Last Stand"] = {
  113.     head="pill. bonnet +1",neck="Iqabi Necklace",ear1="dawn earring",ear2="Moonshade earring",
  114.     body="mekosu. harness",hands="Plun. Armlets +1",ring1="arewe ring +1",ring2="arewe ring +1",
  115.     back="canny cape",waist="chaac belt",legs="feast hose",feet="Pill. Poulaines +1"
  116.     }
  117.    
  118.    
  119.     -- precast sets
  120.     sets.precast = {}
  121.     sets.precast.JA = {}
  122.     sets.precast.MA = {}
  123.    
  124.     -- JA precast sets
  125.     sets.precast.JA['Perfect Dodge'] = {body = "Plun. Armlets +1"}
  126.     sets.precast.JA.Steal = {head = "Plun. Bonnet +1",hands="Pill. Armlets +1",legs="Pill. Culottes +1",feet="Pill. Poulaines +1"}
  127.     sets.precast.JA.Mug = {head = "Plun. Bonnet +1"}
  128.     sets.precast.JA.Despoil = {legs = "Skulk. Culottes +1", feet = "Skulk. Poulaines +1"}
  129.     sets.precast.JA['Trick Attack'] = {hands = "Pill. Armlets +1"}
  130.     sets.precast.JA['Sneak Attack'] = {hands = "Skulk. Armlets +1"}
  131.     sets.precast.JA.Collaborator = {head = "Skulker's Bonnet +1"}
  132.     sets.precast.JA.Accomplice = {head = "Skulker's Bonnet +1"}
  133.     sets.precast.JA.Conspirator = {body = "Skulker's Vest +1"}
  134.     sets.precast.JA.Flee = {feet="Pill. Poulaines +1"}
  135.     sets.precast.JA.Hide = {body="Pillager's Vest +1"}
  136.     sets.precast.JA.Feint = {legs="Plun. Culottes +1"}
  137.     sets.precast.JA.Larceny = {}
  138.     sets.precast.JA.Waltz = {}
  139.    
  140.     sets.precast.JA.Bully = sets.TP.TH
  141.     sets.precast.JA.Provoke = sets.TP.TH
  142.     sets.precast.JA.Step = sets.TP.TH
  143.     sets.precast.JA.Flourish = sets.TP.TH
  144.    
  145.    
  146.     -- Fastcast
  147.     sets.precast.MA.utsu = {body="dread jupon",ring1="prolix ring"}
  148.    
  149.     --RA precast sets
  150.     sets.precast.RA = {}
  151.     sets.precast.RA.Shoot = {
  152.     head="pill. bonnet +1",neck="Iqabi Necklace",ear1="Dudgeon earring",ear2="Heartseeker earring",
  153.     body="mekosu. harness",hands="iuitl wristbands +1",ring1="arewe ring +1",ring2="arewe ring +1",
  154.     back="canny cape",waist="chaac belt",legs="nahtirah Trousers",feet="Pill. Poulaines +1"
  155.     }
  156.    
  157.    
  158.    
  159.     -- Midcast sets
  160.     sets.midcast = {}
  161.     --sets.midcast.MA.utsu = {
  162.     --head="Felistris Mask",neck="Asperity Necklace",ear1="Dudgeon earring",ear2="Heartseeker earring",
  163.     --body="Pillager's Vest +1",hands="Plun. Armlets +1",ring1="Rajas Ring",ring2="Epona's Ring",
  164.     --back="Canny Cape",waist="windbuffet belt",legs="Pill. Culottes +1",feet="Plun. Poulaines +1"
  165.     --}
  166.     sets.midcast.JA = {}
  167.     sets.midcast.MA = {}
  168.        
  169.     --RA midcast sets
  170.     sets.midcast.RA = {}
  171.     sets.midcast.RA.Shoot = {
  172.     head="pill. bonnet +1",neck="Iqabi Necklace",ear1="Dudgeon earring",ear2="Heartseeker earring",
  173.     body="mekosu. harness",hands="Plun. Armlets +1",ring1="arewe ring +1",ring2="arewe ring +1",
  174.     back="canny cape",waist="chaac belt",legs="feast hose Trousers",feet="Skulk. Poulaines +1"
  175.     }
  176.    
  177.     --/RDM TH pulling
  178.     sets.midcast.MA = {}
  179.     sets.midcast.MA.Diaga = sets.TP.TH
  180.    
  181.     -- Aftercast sets
  182.     sets.aftercast = {}
  183.     sets.aftercast.JA = {}
  184.     sets.aftercast.MA = {}
  185.     sets.aftercast.RA = {}
  186.    
  187.    
  188.        
  189. end
  190.  
  191.  
  192. function precast(spell)
  193.     if buffactive['Feint'] then equip(sets.precast.JA.Feint)
  194.     elseif sets.precast.JA[spell.english] then equip(sets.precast.JA[spell.english])
  195.     elseif spell.type=="WeaponSkill" then
  196.             if buffactive['sneak attack'] and buffactive['trick attack']
  197.                 and sets.WS.SATA[spell.english] then equip(sets.WS.SATA[spell.english])
  198.             elseif buffactive['sneak attack'] and sets.WS.SA[spell.english] then equip(sets.WS.SA[spell.english])
  199.             elseif buffactive['trick attack'] and sets.WS.TA[spell.english] then equip(sets.WS.TA[spell.english])
  200.             elseif sets.WS[spell.english] then equip(sets.WS[spell.english])
  201.             end
  202.     elseif string.find(spell.english,'Waltz') then
  203.         equip(sets.precast.JA.Waltz)
  204.     elseif string.find(spell.english,'Flourish') then
  205.         equip(sets.precast.JA.Flourish)
  206.     elseif string.find(spell.english,'Step') then
  207.         equip(sets.precast.JA.Step)
  208.     elseif string.find(spell.english,'Utsusemi:') then
  209.         equip(sets.precast.MA.utsu)
  210.     elseif (sets.precast.MA[spell.english]) then equip(sets.precast.MA[spell.english])
  211.     elseif spell.english == 'Ranged' then equip(sets.precast.RA.Shoot)
  212.     end
  213. end
  214.  
  215. function midcast(spell)
  216.     if spell.english == 'Ranged' then equip(sets.midcast.RA.Shoot)
  217.     elseif spell.english == 'Diaga' then equip(sets.TP.TH)
  218.     elseif (sets.midcast.MA[spell.english]) then equip(sets.midcast.MA[spell.english])
  219.     elseif (sets.midcast.JA[spell.english]) then equip(sets.midcast.JA[spell.english])
  220.     end
  221. end
  222.  
  223.  
  224.  
  225.  
  226. function aftercast(spell)
  227.     if player.status == 'Engaged' then
  228.         equip(sets.TP[TP_Set_Names[TP_Index]])
  229.     else equip(sets.idle[Idle_Set_Names[Idle_Index]])
  230.     end
  231. end
  232.  
  233. function status_change(new,old)
  234.     if new == 'Engaged' then
  235.         equip(sets.TP[TP_Set_Names[TP_Index]])
  236.     elseif new == 'Resting' then
  237.         equip(sets.idle.resting)
  238.     else equip(sets.idle[Idle_Set_Names[Idle_Index]])
  239.     end
  240. end
  241.  
  242. function self_command(command)
  243.     if command == 'toggle idle' then
  244.         Idle_Index = Idle_Index +1
  245.         if Idle_Index > #Idle_Set_Names then Idle_Index = 1 end
  246.         send_command('@input /echo ----- Idle Set changed to '..Idle_Set_Names[Idle_Index]..' -----')
  247.         equip(sets.idle[Idle_Set_Names[Idle_Index]])
  248.     end
  249.     if command == 'toggle tp' then
  250.         TP_Index = TP_Index +1
  251.         if TP_Index > #TP_Set_Names then TP_Index = 1 end
  252.         send_command('@input /echo ----- TP Set changed to '..TP_Set_Names[TP_Index]..' -----')
  253.         equip(sets.TP[TP_Set_Names[TP_Index]])
  254.     end
  255.     if command == 'toggle speed' then
  256.         equip(sets.idle.speed)
  257.     end
  258.    
  259. end
Advertisement
Add Comment
Please, Sign In to add comment