Advertisement
Byrth

Byrth_Generic.lua

Jan 17th, 2016
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.08 KB | None | 0 0
  1. -- ******************************************************************************************** --
  2. -- This file uses very minimal GearSwap rules and puts more of the user's focus on set creation.
  3. -- In order to create sets more easily, consider using //gs export
  4. -- "//gs export" will export your currently equipped gear (with augments) to a user file stored at
  5. -- /windower/addons/GearSwap/data/export/
  6. -- You can open that file up and just copy/paste the set as you like. If your augments change,
  7. -- you would need to replace them with the new augments, which is most easily accomplished by
  8. -- exporting again while wearing the piece.
  9. --
  10. -- The file is also compatible with the Organizer addon. In order to collect your gear, make sure
  11. -- the organizer addon is loaded and then use //gs org
  12. -- ******************************************************************************************** --
  13.  
  14. include('organizer-lib')
  15.  
  16. function get_sets()
  17.    
  18.     -- Put any items in here that you want but aren't in your below sets
  19.     sets.organizer = {
  20.         weapon1 = "Vajra",
  21.         weapon2 = "Atoyac",
  22.         weapon3 = "Taming Sari"
  23.     }
  24.    
  25.    
  26.    
  27.    
  28.     -- This set will be equipped before magic is cast
  29.     sets.FastCast = {
  30.         ammo="Impatiens",
  31.         head={ name="Herculean Helm", augments={'"Fast Cast"+6','Mag. Acc.+2',}},
  32.         body={ name="Taeon Tabard", augments={'Accuracy+22','"Fast Cast"+5','Crit. hit damage +3%',}},
  33.         hands={ name="Leyline Gloves", augments={'Accuracy+14','Mag. Acc.+13','"Mag.Atk.Bns."+13','"Fast Cast"+2',}},
  34.         legs="Enif Cosciales",
  35.         feet={ name="Taeon Boots", augments={'Mag. Acc.+19','"Fast Cast"+5',}},
  36.         neck="Orunmila's Torque",
  37.         left_ear="Loquac. Earring",
  38.         right_ear="Enchntr. Earring +1",
  39.         left_ring="Rahab Ring",
  40.         right_ring="Weather. Ring",
  41.     }
  42.    
  43.    
  44.    
  45.    
  46.     sets.JA = {}
  47.     -- sets.JA["JA Name"] will be combined with sets.JA["Base"] and equipped when you use the JA
  48.     -- If no sets.JA["JA Name"] entry exists for the JA, only sets.JA["Base"] will be equipped
  49.     sets.JA["Base"] = {} -- No real point in a base JA set, thus it's an empty table, but included for consistency
  50.     sets.JA["Perfect Dodge"] = {hands="Plun. Armlets +1"}
  51.     sets.JA["Steal"] = {ammo="Barathrum",neck="Rabbit Charm",hands="Thief's Kote",
  52.         waist="Key Ring Belt",feet="Pillager's Poulaines +1"}
  53.    
  54.    
  55.    
  56.     sets.WS = {}
  57.     -- sets.WS["WS Name"] will be combined with sets.WS["Base"] and equipped when you use the WS
  58.     -- If no sets.WS["WS Name"] entry exists for the WS, only sets.WS["Base"] will be equipped
  59.     sets.WS["Base"] = {ammo="Floestone",
  60.         head="Lustratio Cap +1",
  61.         neck="Caro Necklace",
  62.         ear1="Moonshade Earring",
  63.         ear2="Jupiter's Pearl",
  64.         body={ name="Rawhide Vest", augments={'HP+50','"Subtle Blow"+7','"Triple Atk."+2',}},
  65.         hands={ name="Herculean Gloves", augments={'Accuracy+14 Attack+14','"Triple Atk."+3','Accuracy+12',}},
  66.         ring1="Ramuh Ring +1",
  67.         ring2="Ramuh Ring +1",
  68.         back="Vespid Mantle",
  69.         waist="Wanion Belt",
  70.         legs="Lustratio Subligar +1",
  71.         feet="Lustratio Leggings +1",}
  72.    
  73.     sets.WS["Evisceration"] = {
  74.         ammo="Yetshila",
  75.         head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
  76.         body="Pillager's Vest +1",
  77.         hands={ name="Taeon Gloves", augments={'Accuracy+15 Attack+15','Crit.hit rate+3','DEX+7',}},
  78.         feet={ name="Adhe. Gamashes +1", augments={'STR+12','DEX+12','Attack+20',}},
  79.         neck="Fotia Gorget",
  80.         waist="Fotia Belt",
  81.         left_ring="Begrudging Ring",
  82.         back={ name="Canny Cape", augments={'DEX+4','AGI+2','"Dual Wield"+1','Crit. hit damage +3%',}},
  83.     }
  84.    
  85.    
  86.    
  87.     sets.MA = {}
  88.     -- sets.MA["Magic Name"] will be combined with sets.MA["Base"] and equipped when you cast magic (midcast)
  89.     -- If no sets.MA["Magic Name"] entry exists for the magic, only sets.MA["Base"] will be equipped
  90.     sets.MA["Base"] = {} -- Empty table
  91.     sets.MA["Utsusemi: Ichi"] = {waist="Tempus Fugit +1"}
  92.     sets.MA["Utsusemi: Ni"] = sets.MA["Utsusemi: Ichi"] -- Same as Utsusemi: Ichi
  93.    
  94.    
  95.    
  96.     sets.TP = {}
  97.     -- You can make as many TP sets as you want and cycle through them, but you need to add the names to the TP_Set_Names table.
  98.     -- They will be cycled through in the order that they are listed in TP_Set_Names, top to bottom.
  99.     TP_Index = 1
  100.     TP_Set_Names = {
  101.         "Low Man",
  102.         "Delay Cap",
  103.         "TH",
  104.         "Acc"
  105.     }
  106.    
  107.     sets.TP["Low Man"] = {
  108.         ammo="Floestone",
  109.         head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
  110.         body={ name="Rawhide Vest", augments={'HP+50','"Subtle Blow"+7','"Triple Atk."+2',}},
  111.         hands={ name="Floral Gauntlets", augments={'Rng.Acc.+15','Accuracy+15','"Triple Atk."+3','Magic dmg. taken -4%',}},
  112.         legs={ name="Samnuha Tights", augments={'STR+9','DEX+8','"Dbl.Atk."+2','"Triple Atk."+2',}},
  113.         feet={ name="Adhe. Gamashes +1", augments={'STR+12','DEX+12','Attack+20',}},
  114.         neck="Lissome Necklace",
  115.         waist="Shetal Stone",
  116.         left_ear="Suppanomimi",
  117.         right_ear="Brutal Earring",
  118.         left_ring="Hetairoi Ring",
  119.         right_ring="Epona's Ring",
  120.         back={ name="Canny Cape", augments={'DEX+5','"Dual Wield"+5',}},
  121.     }
  122.        
  123.     sets.TP["TH"] = set_combine(sets.TP['Low Man'],{
  124.         hands={ name="Plun. Armlets +1", augments={'Enhances "Perfect Dodge" effect',}},
  125.         feet="Raid. Poulaines +2",
  126.     })
  127.        
  128.     sets.TP["Acc"] = {
  129.         ammo="Honed Tathlum",
  130.         head={ name="Dampening Tam", augments={'DEX+10','Accuracy+15','Mag. Acc.+15','Quadruple Attack +3',}},
  131.         body={ name="Rawhide Vest", augments={'HP+50','Accuracy+15','Evasion+20',}},
  132.         hands={ name="Herculean Gloves", augments={'Accuracy+14 Attack+14','"Triple Atk."+3','Accuracy+12',}},
  133.         legs={ name="Taeon Tights", augments={'Accuracy+20 Attack+20','"Triple Atk."+2','DEX+9',}},
  134.         feet={ name="Herculean Boots", augments={'Accuracy+30','"Triple Atk."+3','Attack+12',}},
  135.         neck="Combatant's Torque",
  136.         waist="Olseni Belt",
  137.         left_ear="Zennaroi Earring",
  138.         right_ear="Cessance Earring",
  139.         left_ring="Ramuh Ring +1",
  140.         right_ring="Ramuh Ring +1",
  141.         back={ name="Canny Cape", augments={'DEX+5','"Dual Wield"+5',}},
  142.     }
  143.        
  144.     sets.TP["Delay Cap"] = {
  145.         ammo="Floestone",
  146.         head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
  147.         body={ name="Rawhide Vest", augments={'HP+50','"Subtle Blow"+7','"Triple Atk."+2',}},
  148.         hands={ name="Herculean Gloves", augments={'Accuracy+14 Attack+14','"Triple Atk."+3','Accuracy+12',}},
  149.         legs={ name="Samnuha Tights", augments={'STR+9','DEX+8','"Dbl.Atk."+2','"Triple Atk."+2',}},
  150.         feet={ name="Adhe. Gamashes +1", augments={'STR+12','DEX+12','Attack+20',}},
  151.         neck="Lissome Necklace",
  152.         waist="Windbuffet Belt +1",
  153.         left_ear="Cessance Earring",
  154.         right_ear="Brutal Earring",
  155.         left_ring="Hetairoi Ring",
  156.         right_ring="Epona's Ring",
  157.         back="Bleating Mantle",
  158.     }
  159.        
  160.    
  161.     sets.Idle = {}
  162.     -- You can make as many Idle sets as you want and cycle through them, but you need to add the names to the Idle_Set_Names table.
  163.     -- They will be cycled through in the order that they are listed in Idle_Set_Names, top to bottom.
  164.     Idle_Index = 1
  165.     Idle_Set_Names = {
  166.         "Normal",
  167.         "DT"
  168.     }
  169.    
  170.     sets.Idle.Normal = {
  171.         ammo="Amar Cluster",
  172.         head="Lithelimb Cap",
  173.         body="Emet Harness +1",
  174.         hands={ name="Herculean Gloves", augments={'Accuracy+30','Damage taken-4%','STR+9','Attack+4',}},
  175.         legs={ name="Herculean Trousers", augments={'Attack+28','Damage taken-4%','STR+7',}},
  176.         feet="Skd. Jambeaux +1",
  177.         neck="Wiglen Gorget",
  178.         waist="Kasiri Belt",
  179.         left_ear="Merman's Earring",
  180.         right_ear="Genmei Earring",
  181.         left_ring="Paguroidea Ring",
  182.         right_ring="Sheltered Ring",
  183.         back={ name="Canny Cape", augments={'DEX+5','"Dual Wield"+5',}},
  184.     }
  185.                
  186.     sets.Idle.DT = {
  187.         ammo="Amar Cluster",
  188.         head={ name="Dampening Tam", augments={'DEX+10','Accuracy+15','Mag. Acc.+15','Quadruple Attack +3',}},
  189.         body="Emet Harness +1",
  190.         hands={ name="Herculean Gloves", augments={'Accuracy+30','Damage taken-4%','STR+9','Attack+4',}},
  191.         legs={ name="Herculean Trousers", augments={'Attack+28','Damage taken-4%','STR+7',}},
  192.         feet="Skd. Jambeaux +1",
  193.         neck="Twilight Torque",
  194.         waist="Wanion Belt",
  195.         left_ear="Merman's Earring",
  196.         right_ear="Genmei Earring",
  197.         left_ring="Defending Ring",
  198.         right_ring={ name="Dark Ring", augments={'Breath dmg. taken -4%','Phys. dmg. taken -6%','Magic dmg. taken -5%',}},
  199.         back="Mollusca Mantle",
  200.     }
  201.    
  202.     -- You should change this to be whatever your macro book / set are for the intended job
  203.     send_command('input /macro book 12;wait .1;input /macro set 2')
  204. end
  205.  
  206. function precast(spell)
  207.     if spell.prefix == '/jobability' or spell.prefix == '/pet' then
  208.         -- JA Usage
  209.         equip(sets.JA["Base"],sets.JA[spell.english] or {})
  210.     elseif spell.prefix == '/weaponskill' then
  211.         -- WS Usage
  212.         equip(sets.WS["Base"],sets.WS[spell.english] or {})
  213.     elseif spell.prefix == '/magic' or spell.prefix == '/ninjutsu' or spell.prefix == '/song' then
  214.         -- Magic precast
  215.         equip(sets.FastCast)
  216.     end
  217. end
  218.  
  219. function midcast(spell)
  220.     if spell.prefix == '/magic' or spell.prefix == '/ninjutsu' or spell.prefix == '/song' then
  221.         -- Magic Usage
  222.         equip(sets.MA["Base"],sets.MA[spell.english] or {})
  223.     end
  224. end
  225.  
  226. function aftercast(spell)
  227.     if player.status=='Engaged' then
  228.         equip(sets.TP[TP_Set_Names[TP_Index]])
  229.     else
  230.         equip(sets.Idle[Idle_Set_Names[Idle_Index]])
  231.     end
  232. end
  233.  
  234. function status_change(new,old)
  235.     if T{'Idle','Resting'}:contains(new) then
  236.         equip(sets.Idle[Idle_Set_Names[Idle_Index]])
  237.     elseif new == 'Engaged' then
  238.         equip(sets.TP[TP_Set_Names[TP_Index]])
  239.     end
  240. end
  241.  
  242. function self_command(command)
  243.     if command == 'toggle TP set' then
  244.         -- In order to toggle your TP set, you would put this in a macro:
  245.         -- /console gs c toggle TP set
  246.         TP_Index = TP_Index +1
  247.         if TP_Index > #TP_Set_Names then TP_Index = 1 end
  248.         send_command('@input /echo ----- TP Set changed to '..TP_Set_Names[TP_Index]..' -----')
  249.         equip(sets.TP[TP_Set_Names[TP_Index]])
  250.     elseif command == 'toggle Idle set' then
  251.         -- In order to toggle your Idle set, you would put this in a macro:
  252.         -- /console gs c toggle Idle set
  253.         Idle_Index = Idle_Index +1
  254.         if Idle_Index > #Idle_Set_Names then Idle_Index = 1 end
  255.         send_command('@input /echo ----- Idle Set changed to '..Idle_Set_Names[Idle_Index]..' -----')
  256.         equip(sets.Idle[Idle_Set_Names[Idle_Index]])
  257.     end
  258. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement