Advertisement
Guest User

RUN

a guest
Mar 15th, 2016
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.43 KB | None | 0 0
  1. function get_sets()
  2.     --Idle Sets--
  3.     sets.Idle = {
  4.         ammo="Homiliary",
  5.         head="Futhark Bandeau +1",
  6.         neck="Twilight Torque",
  7.         ear1="Hearty Earring",ear2="Ethereal Earring",
  8.         body="Futhark coat +1",
  9.         hands="Erilaz Gauntlets +1",
  10.         ring1="Patricius Ring",ring2="Defending Ring",
  11.         back="Evasionist's Cape",
  12.         waist="Flume Belt",
  13.         legs="Erilaz Leg Guards +1",
  14.         feet="Skadi's Jambeaux +1"}
  15.     --TP Sets--
  16.     sets.TP = {}
  17.     sets.TP.index = {'Standard', 'Accuracy', 'DT', 'MDTacc'}
  18.     TP_ind = 1
  19.     --offensive melee set
  20.     sets.TP.Standard = {
  21.         ammo="Ginsen",
  22.         head="Dampening Tam",
  23.         neck="Asperity Necklace",
  24.         ear1="Brutal Earring",ear2="Ethereal Earring",
  25.         body="Rawhide Vest",
  26.         hands="Erilaz Gauntlets +1",
  27.         ring1="Epona's Ring",ring2="Rajas Ring",
  28.         back="Evasionist's Cape",
  29.         waist="Chaac Belt",
  30.         legs="Taeon Tights",
  31.         feet="Futhark Boots +1"}
  32.     --high accuracy/DT hybrid set
  33.     sets.TP.Accuracy = {
  34.         ammo="Falcon Eye",
  35.         head="Dampening Tam",
  36.         neck="Twilight Torque",
  37.         ear1="Steelflash Earring",ear2="Zennaroi Earring",
  38.         body="Emet Harness +1",
  39.         hands="Erilaz Gauntlets +1",
  40.         ring1="Patricius Ring",ring2="Defending Ring",
  41.         back="Evasionist's Cape",
  42.         waist="Olseni Belt",
  43.         legs="Taeon Tights",
  44.         feet="Taeon Boots"}
  45.     --full DT melee set
  46.     sets.TP.DT = {
  47.         ammo="Falcon Eye",
  48.         head="Dampening Tam",
  49.         neck="Twilight Torque",
  50.         ear1="Hearty Earring",ear2="Zennaroi Earring",
  51.         body="Futhark coat +1",
  52.         hands="Erilaz Gauntlets +1",
  53.         ring1="Patricius Ring",ring2="Defending Ring",
  54.         back="Evasionist's Cape",
  55.         waist="Flume Belt",
  56.         legs="Erilaz Leg Guards +1",
  57.         feet="Erilaz Greaves +1"}
  58.     --MDT melee set
  59.     sets.TP.MDTacc = {
  60.         ammo="Falcon Eye",
  61.         head="Dampening Tam",
  62.         neck="Twilight Torque",
  63.         ear1="Steelflash Earring",ear2="Zennaroi Earring",
  64.         body="Rawhide Vest",
  65.         hands="Erilaz Gauntlets +1",
  66.         ring1="Shadow Ring",ring2="Defending Ring",
  67.         back="Evasionist's Cape",
  68.         waist="Olseni Belt",
  69.         legs="Runeist Trousers +1",
  70.         feet="Taeon Boots"}
  71.     --Weaponskill Sets--
  72.     sets.WS = {}    
  73.     --multi, carries FTP
  74.     sets.Resolution = {
  75.         ammo="Seething Bomblet +1",            
  76.         head="Dampening Tam",
  77.         neck="Fotia Gorget",
  78.         ear1="Brutal earring",ear2="Moonshade Earring",
  79.         body="Rawhide Vest",
  80.         hands="Rawhide Gloves",
  81.         ring1="Epona's Ring",ring2="Rajas Ring",
  82.         back="Evasionist's Cape",
  83.         waist="Fotia Belt",
  84.         legs="Lustratio Subligar +1",
  85.         feet="Lustratio Leggings +1"}
  86.     --single, doesn't carry FTP
  87.     sets.Single = {
  88.         ammo="Seething Bomblet +1",            
  89.         head="Dampening Tam",
  90.         neck="Fotia Gorget",
  91.         ear1="Ishvara earring",ear2="Moonshade Earring",
  92.         body="Rawhide Vest",
  93.         hands="Rawhide Gloves",
  94.         ring1="Ramuh Ring +1",ring2="Rajas Ring",
  95.         back="Evasionist's Cape",
  96.         waist="Fotia Belt",
  97.         legs="Lustratio Subligar +1",
  98.         feet="Lustratio Leggings +1"}  
  99.     --single hit, benefits from DA
  100.     sets.Cleave = {
  101.         ammo="Seething Bomblet +1",
  102.         head="Dampening Tam",
  103.         neck="Fotia Gorget",
  104.         ear1="Brutal earring",ear2="Zennaroi Earring",
  105.         body="Rawhide Vest",
  106.         hands="Rawhide Gloves",
  107.         ring1="Epona's Ring",ring2="Ramuh Ring +1",
  108.         back="Evasionist's Cape",
  109.         waist="Fotia Belt",
  110.         legs="Lustratio Subligar +1",
  111.         feet="Lustratio Leggings +1"}
  112.     --added effect
  113.     sets.Shockwave = {
  114.         ammo="Falcon Eye",
  115.         head="Dampening Tam",
  116.         neck="Fotia Gorget",
  117.         ear1="Brutal earring",ear2="Zennaroi Earring",
  118.         body="Samnuha Coat",
  119.         hands="Leyline Gloves",
  120.         ring1="Epona's Ring",ring2="Ramuh Ring +1",
  121.         back="Evasionist's Cape",
  122.         waist="Eschan Stone",
  123.         legs="Lustratio Subligar +1",
  124.         feet="Taeon Boots"}                                
  125.     --Requiescat
  126.     sets.Req = {
  127.         ammo="Seething Bomblet +1",
  128.         head="Dampening Tam",
  129.         neck="Fotia Gorget",
  130.         ear1="Brutal earring",ear2="Moonshade Earring",
  131.         body="Rawhide Vest",
  132.         hands="Rawhide Gloves",
  133.         ring1="Epona's Ring",ring2="Rajas Ring",
  134.         back="Evasionist's Cape",
  135.         waist="Fotia Belt",
  136.         legs="Taeon Tights",
  137.         feet="Taeon Boots"}                                        
  138.     --crit based
  139.     sets.Vorp = {
  140.         ammo="Qirmiz Tathlum",
  141.         head="Dampening Tam",
  142.         neck="Fotia Gorget",
  143.         ear1="Brutal earring",ear2="Moonshade Earring",
  144.         body="Rawhide Vest",
  145.         hands="Rawhide Gloves",
  146.         ring1="Epona's Ring",ring2="Rajas Ring",
  147.         back="Evasionist's Cape",
  148.         waist="Fotia Belt",
  149.         legs="Lustratio Subligar +1",
  150.         feet="Lustratio Leggings +1"}
  151.     --magic WS
  152.     sets.HercSlash = {
  153.         ammo="Seething Bomblet +1",
  154.         head="Highwing Helm",
  155.         neck="Deviant Necklace",
  156.         ear1="Hecate's Earring",ear2="Friomisi earring",
  157.         body="Samnuha Coat",
  158.         hands="Leyline Gloves",
  159.         ring1="Acumen Ring",
  160.         back="Argochampsa Mantle",
  161.         waist="Eschan Stone",
  162.         legs="Limbo Trousers",
  163.         feet="Adhemar Gamashes"}
  164.     sets.Utility = {}  
  165.     --full PDT set for when stunned, etc.
  166.     sets.Utility.PDT = {
  167.         ammo="Vanir Battery",
  168.         head="Erilaz Galea +1",
  169.         neck="Twilight Torque",
  170.         ear1="Hearty Earring",ear2="Ethereal Earring",
  171.         body="Futhark coat +1",
  172.         hands="Erilaz Gauntlets +1",
  173.         ring1="Patricius Ring",ring2="Defending Ring",
  174.         back="Evasionist's Cape",
  175.         waist="Flume Belt",
  176.         legs="Erilaz Leg Guards +1",
  177.         feet="Erilaz Greaves +1"}
  178.     --full MDT set for when stunned, etc
  179.     sets.Utility.MDT = {
  180.         ammo="Vanir Battery",
  181.         head="Dampening Tam",
  182.         neck="Twilight Torque",
  183.         ear1="Hearty Earring",ear2="Zennaroi Earring",
  184.         body="Rawhide Vest",
  185.         hands="Erilaz Gauntlets +1",
  186.         ring1="Shadow Ring",ring2="Defending Ring",
  187.         back="Engulfer Cape +1",
  188.         waist="Olseni Belt",
  189.         legs="Runeist Trousers +1",
  190.         feet="Erilaz Greaves +1"}
  191.     --Job Ability Sets--
  192.     sets.JA = {}
  193.     sets.JA.Lunge = {
  194.         ammo="Seething Bomblet +1",
  195.         head="Highwing Helm",
  196.         neck="Deviant Necklace",
  197.         ear1="Hecate's Earring",ear2="Friomisi earring",      
  198.         body="Samnuha Coat",
  199.         hands="Leyline Gloves",
  200.         ring1="Acumen Ring",                        
  201.         back="Argochampsa Mantle",
  202.         waist="Eschan Stone",
  203.         legs="Limbo Trousers",
  204.         feet="Adhemar Gamashes"}  
  205.     sets.JA.Vallation = {body="Runeist Coat +1",legs="Futhark Trousers +1"}      
  206.     sets.JA.Gambit = {hands="Runeist mitons +1"}
  207.     sets.JA.Rayke = {feet="Futhark bottes +1"}  
  208.     sets.JA.Battuta = {head="Futhark bandeau +1"}      
  209.     sets.JA.Pflug = {feet="Runeist bottes +1"}              
  210.     sets.JA.Pulse = {head="Erilaz Galea +1",legs="Runeist Trousers +1"}
  211.                    
  212.     --Precast Sets--
  213.     --Fast Cast set
  214.     sets.precast = {
  215.         head="Runeist bandeau +1",
  216.         body="Samnuha Coat",
  217.         hands="Leyline Gloves",
  218.         legs="Limbo Trousers"}
  219.     sets.Phalanx = {
  220.         head="Futhark bandeau +1",
  221.         body="Taeon Tabard",
  222.         legs="Futhark Trousers +1"}                                      
  223.     --Enmity set for high hate generating spells and JAs                
  224.     sets.Enmity =  {
  225.         head="Highwing Helm",
  226.         neck="Unmoving Collar +1",
  227.         ear2="Friomisi earring",        
  228.         body="Emet Harness +1",
  229.         hands="Nilas Gloves",                                    
  230.         back="Earthcry Mantle",
  231.         legs="Erilaz Leg Guards",
  232.         feet="Erilaz Greaves +1"}  
  233.     --Magic acc for enfeebles, handy for VW
  234.     sets.MagicAcc = {
  235.         head="Dampening Tam",
  236.         ear1="Gwati Earring",
  237.         body="Samnuha Coat",
  238.         hands="Leyline Gloves",
  239.         waist="Salire Belt",
  240.         legs="Runeist Trousers +1",
  241.         feet="Iuitl Gaiters +1"}            
  242.      
  243.     --Toggle TP sets button, change if you want; currently ALT+F9 toggles forward, CTRL+F9 toggles backwards
  244.     send_command('bind !f9 gs c toggle TP set')
  245.     send_command('bind ^f9 gs c reverse TP set')
  246.     --other stuff, don't touch
  247.     ShadowType = 'None'
  248. end
  249.  
  250. --the following section looks at the weather/day to see if the Hachirin-no-Obi is worth using
  251. --add the following line to a section to have it check the element and equip the obi:
  252. -->>>  mid_obi(spell.element,spell.name)
  253. function mid_obi(spelement,spellname)
  254.     if spelement == nil then
  255.         spelement = "Light"
  256.     end
  257.     if spellname == nil then
  258.         spellname = "Cure"
  259.     end  
  260.     elements = {}
  261.         elements.list = S{'Fire','Ice','Wind','Earth','Lightning','Water','Light','Dark'}
  262.         elements.number = {[0]="Fire",[1]="Ice",[2]="Wind",[3]="Earth",[4]="Lightning",[5]="Water",[6]="Light",[7]="Dark"}
  263.         elements.weak = {['Light']='Dark', ['Dark']='Light', ['Fire']='Water', ['Ice']='Fire', ['Wind']='Ice', ['Earth']='Wind',
  264.     ['Lightning']='Earth', ['Water']='Lightning'}
  265.         weather = world.weather_element
  266.         intensity = 1 + (world.weather_id % 2)
  267.         day = world.day
  268.         boost = 0
  269.         obi = nil
  270.        
  271.        for _,buff in pairs (windower.ffxi.get_player().buffs) do
  272.             if buff > 177 and buff < 186 then
  273.                 weather = elements.number[(buff - 178)]
  274.                 intensity = 1
  275.             elseif buff > 588 and buff < 597 then
  276.                 weather = elements.number[(buff - 589)]
  277.                 intensity = 2
  278.             end
  279.             if spellname == "Swipe" or spellname == "Lunge" or spellname == "Vivacious Pulse" then
  280.                 if buff > 522 and buff < 531 then
  281.                     spelement = elements.number[(buff - 523)]
  282.                 end
  283.             end
  284.         end
  285.         if weather == spelement then
  286.             boost = boost + intensity
  287.         elseif weather == elements.weak[spelement] then
  288.             boost = boost - intensity
  289.         end
  290.         if day == spelement then
  291.             boost = boost + 1
  292.         elseif day == elements.weak[spelement] then
  293.             boost = boost - 1
  294.         end
  295.         if boost > 0 then
  296.             if player.inventory["Hachirin-no-Obi"] or player.wardrobe["Hachirin-no-Obi"] then
  297.                 equip({waist="Hachirin-no-Obi"})
  298.             end
  299.         end
  300. end
  301.                
  302. function precast(spell,abil)
  303.     --equips favorite weapon if disarmed
  304.     if player.equipment.main == "empty" or player.equipment.sub == "empty" then
  305.         equip({main="Epeolatry",sub="Bloodrain Strap"})
  306.     end
  307.     if spell.action_type == 'Magic' then
  308.         equip(sets.Utility.PDT,sets.precast)            
  309.     end  
  310.     if spell.skill == 'Enhancing Magic' then
  311.         equip({legs="Futhark Trousers +1"})
  312.     end
  313.     if string.find(spell.name,'Utsusemi') then
  314.         equip({neck="Magoraga Beads"})
  315.     end  
  316.     if spell.name == 'Lunge' or spell.name == 'Swipe' then
  317.         equip(sets.JA.Lunge)
  318.         mid_obi(spell.element,spell.name)
  319.     end      
  320.     --prevents Valiance/Vallation/Liement from being prevented by each other (cancels whichever is active)
  321.     if spell.name == 'Valiance' or spell.name == 'Vallation' or spell.name == 'Liement' then
  322.         if buffactive['Valiance'] then
  323.             cast_delay(0.2)
  324.             windower.ffxi.cancel_buff(535)
  325.         elseif buffactive['Vallation'] then
  326.             cast_delay(0.2)
  327.             windower.ffxi.cancel_buff(531)
  328.         elseif buffactive['Liement'] then
  329.             cast_delay(0.2)
  330.             windower.ffxi.cancel_buff(537)
  331.         end
  332.     end
  333.     if spell.name == 'Vallation' or spell.name == 'Valiance' then
  334.         equip(sets.Enmity,sets.JA.Vallation)
  335.     end  
  336.     if spell.name == 'Pflug' then
  337.         equip(sets.Enmity,sets.JA.Pflug)
  338.     end      
  339.     if spell.name == 'Elemental Sforzo' or spell.name == 'Liement' then
  340.         equip(sets.Enmity,{body="Futhark Coat +1"})
  341.     end      
  342.     if spell.name == 'Gambit' then
  343.         equip(sets.Enmity,sets.JA.Gambit)
  344.     end
  345.     if spell.name == 'Rayke' then
  346.         equip(sets.Enmity,sets.JA.Rayke)
  347.     end
  348.     if spell.name == 'Battuta' then
  349.         equip(sets.Enmity,sets.JA.Battuta)
  350.     end
  351.     if spell.name == 'Vivacious Pulse' then
  352.         equip(sets.Enmity,sets.JA.Pulse)
  353.         mid_obi(spell.element,spell.name)
  354.     end
  355.     if spell.name == 'One for All' or spell.name == 'Embolden' or spell.name == 'Odyllic Subterfuge' or spell.name == 'Warcry'
  356.     or spell.name == 'Swordplay' or spell.name == 'Rayke' or spell.name == 'Meditate' or spell.name == 'Provoke' then  
  357.         equip(sets.Enmity)
  358.     end
  359.     if spell.name == 'Resolution' or spell.name == 'Ruinator'  then
  360.         equip(sets.Resolution)
  361.     end
  362.     if spell.name == 'Spinning Slash'
  363.     or spell.name == 'Ground Strike'
  364.     or spell.name == 'Upheaval'
  365.     or spell.name == 'Dimidiation'
  366.     or spell.name == 'Steel Cyclone'    
  367.     or spell.name == 'Savage Blade' then
  368.         equip(sets.Single)
  369.     end
  370.     if spell.name == 'Shockwave' then
  371.         equip(sets.Shockwave)
  372.     end
  373.     if spell.name == 'Fell Cleave' or spell.name == 'Circle Blade' then
  374.         equip(sets.Cleave)
  375.     end
  376.     if spell.name == 'Requiescat' then
  377.         equip(sets.Req)
  378.     end
  379.     if spell.name == 'Vorpal Blade' or spell.name == 'Rampage' then
  380.         equip(sets.Vorp)
  381.     end
  382.     if spell.name == 'Herculean Slash'
  383.     or spell.name == 'Freezebite'  
  384.     or spell.name == 'Sanguine Blade'
  385.     or spell.name == 'Red Lotus Blade'
  386.     or spell.name == 'Seraph Blade' then
  387.         equip(sets.HercSlash)
  388.         mid_obi(spell.element,spell.name)
  389.     end
  390.     --prevents casting Utsusemi if you already have 3 or more shadows
  391.     if spell.name == 'Utsusemi: Ichi' and ShadowType == 'Ni' and (buffactive['Copy Image (3)'] or buffactive['Copy Image (4+)']) then
  392.         cancel_spell()
  393.     end
  394.     if buffactive['terror'] or buffactive['petrification'] or buffactive['stun'] or buffactive['sleep'] then
  395.         if TP_ind == 4 then
  396.             equip(sets.Utility.MDT) else
  397.             equip(sets.Utility.PDT)
  398.         end
  399.     end
  400.     if buffactive.sleep and player.hp > 100 and player.status == "Engaged" then
  401.         equip({head="Frenzy Sallet"})
  402.     end
  403. end            
  404.  
  405. function midcast(spell,act,arg)
  406.     if spell.action_type == 'Magic' then
  407.         equip(sets.Utility.PDT,{head="Runeist bandeau +1"})        
  408.     end  
  409.     if spell.skill == 'Enhancing Magic' then
  410.         equip({head="Erilaz Galea +1",legs="Futhark Trousers +1"})
  411.         if spell.name == "Blink" or spell.name == "Stoneskin" or string.find(spell.name,'Utsusemi') then
  412.             equip(sets.Utility.PDT,{head="Runeist bandeau +1",hands="Leyline Gloves"})
  413.         elseif string.find(spell.name,'Bar') or spell.name=="Temper" then
  414.             equip({hands="Runeist Mitons +1"})
  415.         end
  416.         if buffactive.embolden then
  417.             equip({back="Evasionist's Cape"})
  418.         end
  419.     end
  420.     if spell.name == 'Foil' or spell.name == 'Flash' or spell.name == "Stun" then
  421.         equip(sets.Enmity,{head="Runeist bandeau +1"})
  422.     end
  423.     if spell.name == 'Phalanx' then
  424.         equip(sets.Phalanx)
  425.     end      
  426.     if string.find(spell.name,'Regen') then
  427.         equip({head="Runeist bandeau +1"})
  428.     end
  429.     if spell.name == "Repose" or spell.skill == 'Enfeebling Magic' or spell.skill == 'Dark Magic' then
  430.         equip(sets.MagicAcc)
  431.     end
  432.     if spell.skill == 'Elemental Magic' then
  433.         equip(sets.JA.Lunge)
  434.         mid_obi(spell.element,spell.name)
  435.     end
  436.     --cancels Ni shadows (if there are only 1 or 2) when casting Ichi
  437.     if spell.name == 'Utsusemi: Ichi' and ShadowType == 'Ni' and (buffactive['Copy Image'] or buffactive['Copy Image (2)']) then
  438.         send_command('cancel Copy Image')
  439.         send_command('cancel Copy Image (2)')
  440.     end
  441. end
  442.  
  443. function aftercast(spell)
  444.     equip_current()
  445.     if string.find(spell.name,'Utsusemi') and not spell.interrupted then
  446.         if spell.name == 'Utsusemi: Ichi' then
  447.             ShadowType = 'Ichi'
  448.         elseif spell.name == 'Utsusemi: Ni' then
  449.             ShadowType = 'Ni'
  450.         end
  451.     end
  452. end
  453.  
  454. function status_change(new,old)
  455.     equip_current()
  456. end
  457.  
  458. function equip_TP()
  459.     equip(sets.TP[sets.TP.index[TP_ind]])
  460.     --equips offensive gear despite being on defensive set if you have shadows
  461.     if TP_ind == 3 and ((buffactive['Copy Image (2)'] or buffactive['Copy Image (3)'] or buffactive['Copy Image (4+)']) or buffactive['Third Eye'] or buffactive['Blink']) then
  462.         equip(sets.TP.Accuracy)
  463.     end
  464.     --equips DW gear if using two weapons
  465.     if player.equipment.sub == "Tramontane Axe" or player.equipment.sub == "Pukulatmuj" or player.equipment.sub == "Anahera Sword" then
  466.         equip({ear2="Suppanomimi"})
  467.     end
  468.     --equips offensive gear and relic boots during Battuta
  469.     if buffactive.battuta then
  470.         --remains on defensive set if Avoidance Down is active
  471.         if buffactive['Avoidance Down'] then
  472.         else
  473.             if TP_ind == 3 then
  474.                 equip(sets.TP.Accuracy)
  475.             end
  476.         equip({feet="Futhark Boots +1"})
  477.         end
  478.     end
  479.     --equip defensive gear when hit with terror/petrify/stun/sleep
  480.     if buffactive['terror'] or buffactive['petrification'] or buffactive['stun'] or buffactive['sleep'] then
  481.             if TP_ind == 4 then
  482.                 equip(sets.Utility.MDT) else
  483.                 equip(sets.Utility.PDT)
  484.             end
  485.     end
  486.     --equip Frenzy Sallet (will wake you up) if engaged, slept, and over 100 HP
  487.     if buffactive.sleep and player.hp > 100 then
  488.         equip({head="Frenzy Sallet"})
  489.     end
  490. end
  491.  
  492. function equip_idle()
  493.     equip(sets.Idle)
  494.     --equips extra refresh gear when MP is below 75%
  495.     if player.mpp < 75 then
  496.         equip({body="Runeist Coat +1"})
  497.     end
  498.     --auto-equip defensive gear when hit with terror/petrify/stun/sleep
  499.     if buffactive['terror'] or buffactive['petrification'] or buffactive['stun'] or buffactive['sleep'] then
  500.             if TP_ind == 4 then
  501.                 equip(sets.Utility.MDT) else
  502.                 equip(sets.Utility.PDT)
  503.             end
  504.     end
  505. end
  506.  
  507. function buff_change(buff,gain)
  508.     local buff = string.lower(buff)
  509.     if buff == "terror" or buff == "petrification" or buff == "stun" or buff == "sleep" then
  510.         if gain then  
  511.             if TP_ind == 4 then
  512.                 equip(sets.Utility.MDT) else
  513.                 equip(sets.Utility.PDT)
  514.             end
  515.             if buff == "sleep" and player.hp > 100 and player.status == "Engaged" then
  516.                 equip({head="Frenzy Sallet"})
  517.             end
  518.         else
  519.             equip_current()
  520.         end
  521.     end
  522. end
  523.  
  524. function equip_current()
  525.     if player.status == 'Engaged' then
  526.         equip_TP()
  527.     else
  528.         equip_idle()
  529.     end
  530. end
  531.              
  532. function self_command(command)
  533.     if command == 'toggle TP set' then
  534.         TP_ind = TP_ind +1
  535.         if TP_ind > #sets.TP.index then
  536.             TP_ind = 1
  537.         end
  538.         send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
  539.         equip_current()
  540.     elseif command == 'reverse TP set' then
  541.         TP_ind = TP_ind -1
  542.         if TP_ind == 0 then
  543.             TP_ind = #sets.TP.index
  544.         end
  545.         send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
  546.         equip_current()
  547.     end
  548. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement