Guest User

thf

a guest
Jun 1st, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.50 KB | None | 0 0
  1. function get_sets()
  2.  
  3.         TP_Index = 1
  4.         Idle_Index = 1
  5.  
  6.             -- WS sets
  7.            
  8.            
  9.         sets.WS = {}
  10.        
  11.         sets.WS["Evisceration"] = {
  12.                 head="Pill. Bonnet +1",
  13.                 body="Plunderer's Vest +1",
  14.                 feet="Plun. Poulaines +1",
  15.                 neck="Nefarious Collar",
  16.                 waist="Caudata Belt",
  17.                 left_ear="Moonshade Earring",
  18.                 right_ear="Brutal Earring",
  19.                 left_ring="Demonry Ring",
  20.                 right_ring="Epona's Ring",
  21.                 back="Rancorous Mantle",
  22.         }
  23.        
  24.         sets.WS["Mercy Stroke"] =  {
  25.                 head="Pill. Bonnet +1",
  26.                 body="Pillager's Vest +1",
  27.                 feet="Plun. Poulaines +1",
  28.                 neck="Justiciar's Torque",
  29.                 waist="Prosilio Belt",
  30.                 left_ear="Steelflash Earring",
  31.                 right_ear="Bladeborn Earring",
  32.                 left_ring="Pyrosoul Ring",
  33.                 right_ring="Epona's Ring",
  34.                 back="Buquwik Cape",
  35.         }
  36.        
  37.         sets.WS["Exenterator"] =  {
  38.                 head="Pill. Bonnet +1",
  39.                 body="Plunderer's Vest +1",
  40.                 feet="Plun. Poulaines +1",
  41.                 neck="Justiciar's Torque",
  42.                 waist="Caudata Belt",
  43.                 left_ear="Steelflash Earring",
  44.                 right_ear="Bladeborn Earring",
  45.                 left_ring="Stormsoul Ring",
  46.                 right_ring="Epona's Ring",
  47.                 back="Canny Cape",
  48.         }      
  49.        
  50.         sets.WS["Rudra's Storm"] =  {
  51.                 head="Whirlpool Mask",
  52.                 body="Plunderer's Vest +1",
  53.                 legs="Manibozho Brais",
  54.                 feet="Plun. Poulaines +1",
  55.                 waist="Chiner's Belt",
  56.                 left_ear="Moonshade Earring",
  57.                 right_ear="Brutal Earring",
  58.                 left_ring="Rajas Ring",
  59.                 right_ring="Epona's Ring",
  60.                 back="Atheling Mantle",
  61.         }
  62.        
  63.        
  64.  
  65.        
  66.             -- TP sets to choose from
  67.            
  68.            
  69.         TP_Set_Names = {"DD", "TH", "ACCTH", "ACC"}
  70.         sets.TP = {}
  71.                 -- index 1
  72.         sets.TP['DD'] = {
  73.                 main="Mandau",
  74.                 sub="Sandung",
  75.                 ammo="Yetshila",
  76.                 head="Felistris Mask",
  77.                 body="Thaumas Coat",
  78.                 hands="Pill. Armlets +1",
  79.                 legs="Pill. Culottes +1",
  80.                 feet="Plun. Poulaines +1",
  81.                 neck="Asperity Necklace",
  82.                 waist="Patentia Sash",
  83.                 left_ear="Heartseeker Earring",
  84.                 right_ear="Dudgeon Earring",
  85.                 left_ring="Rajas Ring",
  86.                 right_ring="Epona's Ring",
  87.                 back="Canny Cape",
  88.  
  89.         }
  90.        
  91.                 -- index 2
  92.         sets.TP['TH'] = {
  93.                 head="Uk'uxkaj Cap",
  94.                 body="Plunderer's Vest +1",
  95.                 hands="Plun. Armlets +1",
  96.                 legs="Pill. Culottes +1",
  97.                 feet="Raid. Poulaines +2",
  98.                 neck="Nefarious Collar",
  99.                 waist="Chaac Belt",
  100.                 left_ear="Heartseeker Earring",
  101.                 right_ear="Dudgeon Earring",
  102.                 left_ring="Rajas Ring",
  103.                 right_ring="Epona's Ring",
  104.                 back="Rancorous Mantle"
  105.         }
  106.                 -- Index 3
  107.         sets.TP['ACCTH'] = {
  108.                 head="Whirlpool Mask",
  109.                 body="Pillager's Vest +1",
  110.                 hands="Plun. Armlets +1",
  111.                 legs="Plun. Culottes +1",
  112.                 feet="Raid. Poulaines +2",
  113.                 neck="Rancor Collar",
  114.                 waist="Chaac Belt",
  115.                 left_ear="Heartseeker Earring",
  116.                 right_ear="Dudgeon Earring",
  117.                 left_ring="Rajas Ring",
  118.                 right_ring="Epona's Ring",
  119.                 back="Letalis Mantle",
  120.                
  121.         }
  122.        
  123.                 -- Index 4
  124.         sets.TP['ACC'] = {
  125.                 head="Whirlpool Mask",
  126.                 body="Pillager's Vest +1",
  127.                 hands="Plun. Armlets +1",
  128.                 legs="Plun. Culottes +1",
  129.                 feet="Pill. Poulaines +1",
  130.                 neck="Rancor Collar",
  131.                 waist="Hurch'lan Sash",
  132.                 left_ear="Heartseeker Earring",
  133.                 right_ear="Dudgeon Earring",
  134.                 left_ring="Rajas Ring",
  135.                 right_ring="Epona's Ring",
  136.                 back="Letalis Mantle",
  137.         }
  138.        
  139.        
  140.  
  141.             -- Idle sets to choose from
  142.        
  143.        
  144.        
  145.         Idle_Set_Names ={"Normal"}
  146.         sets.Idle = {}
  147.         sets.Idle['Normal'] =   {
  148.                 main="Mandau",
  149.                 sub="Sandung",
  150.                 ammo="Yetshila",
  151.                 head="Felistris Mask",
  152.                 body="Thaumas Coat",
  153.                 hands="Pill. Armlets +1",
  154.                 legs="Pill. Culottes +1",
  155.                 feet="Pill. Poulaines +1",
  156.                 neck="Asperity Necklace",
  157.                 waist="Patentia Sash",
  158.                 left_ear="Heartseeker Earring",
  159.                 right_ear="Dudgeon Earring",
  160.                 left_ring="Paguroidea Ring",
  161.                 right_ring="Sheltered Ring",
  162.                 back="Canny Cape",
  163.         }
  164. end
  165.  
  166.  
  167.  
  168.             -- Gearswap argument code
  169.            
  170.            
  171.            
  172.         function precast(spell)
  173.                 if sets.WS[spell.english] then
  174.                         equip(sets.WS[spell.english])
  175.                 end
  176.         end
  177.  
  178.  
  179.         function aftercast(spell)
  180.                 if player.status =='Engaged' then
  181.                         equip(sets.TP[TP_Set_Names[TP_Index]])
  182.                 else
  183.                         equip(sets.Idle[Idle_Set_Names[Idle_Index]])
  184.                 end
  185.         end
  186.  
  187.         function status_change(new,old)
  188.                 if T{'Idle','Resting'}:contains(new) then
  189.                         equip(sets.Idle[Idle_Set_Names[Idle_Index]])
  190.                 elseif new == 'Engaged' then
  191.                         equip(sets.TP[TP_Set_Names[TP_Index]])
  192.                 end
  193.         end
  194.        
  195.        
  196.         function buff_change(name,gain)
  197.             if name == "Feint" then
  198.                 if gain then
  199.                     enable("legs")
  200.                     equip({legs="Plun. Culottes +1"})
  201.                     disable("legs")
  202.                 else
  203.                     enable("legs")
  204.                 end
  205.             end
  206.         end
  207.        
  208.             -- Self commands
  209.        
  210.        
  211.        
  212.        
  213.         function self_command(command) 
  214.             if command == 'DD' then
  215.                TP_Index = 1
  216.                equip(sets.TP[TP_Set_Names[TP_Index]])
  217.                send_command('@input /echo ----- changed to DD -----')
  218.             end
  219.  
  220.             if command == 'TH' then
  221.                TP_Index = 2
  222.                equip(sets.TP[TP_Set_Names[TP_Index]])
  223.                send_command('@input /echo ----- changed to TH -----')
  224.             end
  225.            
  226.             if command == 'ACCTH' then
  227.                TP_Index = 3
  228.                equip(sets.TP[TP_Set_Names[TP_Index]])
  229.                send_command('@input /echo ----- changed to ACCTH -----')
  230.             end
  231.  
  232.             if command == 'ACC' then
  233.                TP_Index = 4
  234.                equip(sets.TP[TP_Set_Names[TP_Index]])
  235.                send_command('@input /echo ----- changed to ACC -----')
  236.             end
  237.        
  238.         end
Advertisement
Add Comment
Please, Sign In to add comment