JSHidaka

SCH Old

Jan 29th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.79 KB | None | 0 0
  1. function get_sets()
  2.     enf_spells = S{"Sleep", "Slow","Paralyze","Sleep II", "Gravity", "Dispel"}
  3.     naSpells = S{"Blindna","Silena","Paralyna","Cursna","Viruna","Poisona"}
  4.     sets.precast = {}
  5.     sets.precast['Tabula Rasa']= {legs="Argute Pants +2"}
  6.     sets.aftercast_Idle_noSub ={
  7.     main="Owleyes",
  8.     sub="Genbu's Shield",
  9.     ammo="Hedgehog Bomb",
  10.     head="Wivre Hairpin",
  11.     body="Gendewitha Bliaut",
  12.     hands="Serpentes Cuffs",
  13.     legs="Nares Trews",
  14.     feet="Serpentes Sabots",
  15.     neck="Fylgja Torque",
  16.     waist="Immortal's Sash",
  17.     left_ear="Savant's Earring",
  18.     right_ear="Loquac. Earring",
  19.     left_ring="Ephedra Ring",
  20.     right_ring="Sirona's Ring",
  21.     back="Pahtli Cape",
  22. }
  23.    
  24.     sets.aftercast_Idle = sets.aftercast_Idle_noSub
  25.    
  26.     sets.precast_FastCast = {
  27.     main="Tamaxchi",
  28.     sub="Genbu's Shield",
  29.     ammo="Hedgehog Bomb",
  30.     head="Nares Cap",
  31.     body="Gendewitha Bliaut",
  32.     hands="Gendewitha Gages",
  33.     legs="Orvail Pants +1",
  34.     feet="Serpentes Sabots",
  35.     neck="Fylgja Torque",
  36.     waist="Korin Obi",
  37.     left_ear="Savant's Earring",
  38.     right_ear="Loquac. Earring",
  39.     left_ring="Ephedra Ring",
  40.     right_ring="Sirona's Ring",
  41.     back="Pahtli Cape",
  42. }
  43.  
  44.    
  45.     sets.precast_Precure = sets.precast_FastCast
  46.    
  47.     sets.midcast_EnhancingMagic ={
  48.         main="Kirin's Pole",
  49.         sub="Fulcio Grip",
  50.         ammo="Incantor Stone",
  51.         head="Nahtirah Hat",
  52.         body="Anhur Robe",
  53.         hands="Augur's Gloves",
  54.         legs="Clr. Pantaln. +2",
  55.         feet="Orsn. Duckbills +1",
  56.         neck="Colossus's Torque",
  57.         waist="Olympus Sash",
  58.         left_ear="Orison Earring",
  59.         right_ear="Novia Earring",
  60.         left_ring="Ephedra Ring",
  61.         right_ring="Sirona's Ring",
  62.         back="Mending Cape",
  63. }
  64.     sets.Perpetuance ={
  65.         hands="Svnt. Bracers +2",
  66.  
  67. }
  68.    
  69.     sets.midcast_Cure = {
  70.     main="Tamaxchi",
  71.     sub="Genbu's Shield",
  72.     ammo="Hedgehog Bomb",
  73.     head="Gende. Caubeen",
  74.     body="Gendewitha Bliaut",
  75.     hands="Serpentes Cuffs",
  76.     legs="Nares Trews",
  77.     feet="Serpentes Sabots",
  78.     neck="Fylgja Torque",
  79.     waist="Korin Obi",
  80.     left_ear="Savant's Earring",
  81.     right_ear="Loquac. Earring",
  82.     left_ring="Ephedra Ring",
  83.     right_ring="Sirona's Ring",
  84.     back="Twilight Cape",
  85. }
  86.  
  87. sets.midcast_nuke={
  88.     main="Baqil Staff",
  89.     ammo="Kalboron Stone",
  90.     head="Buremte Hat",
  91.     body="Hagondes Coat",
  92.     hands="Quauhpilli Gloves",
  93.     legs="Hagondes Pants",
  94.     feet="Gende. Galoshes",
  95.     neck="Saevus Pendant",
  96.     waist="Korin Obi",
  97.     left_ear="Friomisi Earring",
  98.     right_ear="Hecate's Earring",
  99.     left_ring="Ephedra Ring",
  100.     right_ring="Sirona's Ring",
  101.     back="Toro Cape",
  102. }
  103.  
  104. end
  105.  
  106. function precast(spell,action)
  107.  
  108.     if  string.find(spell.english,'Cur') then
  109.         equip(sets.precast_Precure)
  110.     elseif sets.precast[spell.english] then
  111.             equip(sets.precast[spell.english])     
  112.     elseif spell.type:find('Magic') then
  113.         equip(sets.precast_FastCast)
  114.     end
  115. end
  116.  
  117. function midcast(spell,action)
  118.     if string.find(spell.english,'Cur') or string.find(spell.english,'Repos') or enf_spells[spell.name] then
  119.         equip(sets.midcast_Cure)
  120.     elseif string.find(spell.english,'Eras') or string.find(spell.english,'Esun') or naSpells[spell.name] then
  121.         equip(sets.midcast_Haste)
  122.     elseif spell.skill == 'EnhancingMagic' then
  123.             equip(sets.midcast_EnhancingMagic)
  124.     elseif spell.skill == 'EnhancingMagic' and buffactive["Perpetuance"] == then
  125.             equip(sets.Perpetuance)
  126.     elseif spell.skill == 'ElementalMagic' then
  127.             equip(sets.midcast_nuke)
  128.     end
  129. end
  130.  
  131. function aftercast(spell,action)
  132.     equip(sets['aftercast_Idle'])
  133. end
  134.  
  135. function status_change(new,tab)
  136.     if new == 'Resting' then
  137.         equip(sets['Resting'])
  138.     else
  139.         equip(sets['aftercast_Idle'])
  140.     end
  141. end
  142.  
  143.  
  144.  
  145. function pet_midcast(spell,action)
  146. end
  147.  
  148. function pet_aftercast(spell,action)
  149. end
  150.  
  151. function self_command(command)
  152. end
Advertisement
Add Comment
Please, Sign In to add comment