JSHidaka

SCH actual

Jan 29th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.44 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.         main="Kirin's Pole",
  66.         sub="Fulcio Grip",
  67.         ammo="Incantor Stone",
  68.         head="Nahtirah Hat",
  69.         body="Anhur Robe",
  70.         hands="Svnt. Bracers +2",
  71.         legs="Clr. Pantaln. +2",
  72.         feet="Orsn. Duckbills +1",
  73.         neck="Colossus's Torque",
  74.         waist="Olympus Sash",
  75.         left_ear="Orison Earring",
  76.         right_ear="Novia Earring",
  77.         left_ring="Ephedra Ring",
  78.         right_ring="Sirona's Ring",
  79.         back="Mending Cape",
  80. }
  81.    
  82.     sets.midcast_Cure = {
  83.     main="Tamaxchi",
  84.     sub="Genbu's Shield",
  85.     ammo="Hedgehog Bomb",
  86.     head="Gende. Caubeen",
  87.     body="Gendewitha Bliaut",
  88.     hands="Serpentes Cuffs",
  89.     legs="Nares Trews",
  90.     feet="Serpentes Sabots",
  91.     neck="Fylgja Torque",
  92.     waist="Korin Obi",
  93.     left_ear="Savant's Earring",
  94.     right_ear="Loquac. Earring",
  95.     left_ring="Ephedra Ring",
  96.     right_ring="Sirona's Ring",
  97.     back="Twilight Cape",
  98. }
  99.  
  100. sets.midcast_nuke={
  101.     main="Baqil Staff",
  102.     ammo="Kalboron Stone",
  103.     head="Buremte Hat",
  104.     body="Hagondes Coat",
  105.     hands="Quauhpilli Gloves",
  106.     legs="Hagondes Pants",
  107.     feet="Gende. Galoshes",
  108.     neck="Saevus Pendant",
  109.     waist="Korin Obi",
  110.     left_ear="Friomisi Earring",
  111.     right_ear="Hecate's Earring",
  112.     left_ring="Ephedra Ring",
  113.     right_ring="Sirona's Ring",
  114.     back="Toro Cape",
  115. }
  116.  
  117. end
  118.  
  119. function precast(spell,action)
  120.  
  121.     if  string.find(spell.english,'Cur') then
  122.         equip(sets.precast_Precure)
  123.     elseif sets.precast[spell.english] then
  124.             equip(sets.precast[spell.english])     
  125.     elseif spell.type:find('Magic') then
  126.         equip(sets.precast_FastCast)
  127.     end
  128. end
  129.  
  130. function midcast(spell,action)
  131.     if string.find(spell.english,'Cur') or string.find(spell.english,'Repos') or enf_spells[spell.name] then
  132.         equip(sets.midcast_Cure)
  133.     elseif string.find(spell.english,'Eras') or string.find(spell.english,'Esun') or naSpells[spell.name] then
  134.         equip(sets.midcast_Haste)
  135.     elseif spell.skill == 'EnhancingMagic' then
  136.             equip(sets.midcast_EnhancingMagic)
  137.     elseif spell.skill == 'ElementalMagic' then
  138.             equip(sets.midcast_nuke)
  139.     end
  140.  
  141.         if job_post_midcast then
  142.                 job_post_midcast(spell, action)
  143.         end
  144.    
  145. end
  146.  
  147. function job_post_midcast(spell, action)
  148.     if spell.type:find('Magic') then
  149.         if buffactive["Perpetuance"] then
  150.                equip(sets.Perpetuance)
  151.                send_command('@input /echo ------- Perpetuance >> '..spell.english..' >>> '..spell.target.name..'-------')
  152.         end
  153.     end
  154. end
  155.  
  156. function aftercast(spell,action)
  157.     equip(sets['aftercast_Idle'])
  158. end
  159.  
  160. function status_change(new,tab)
  161.     if new == 'Resting' then
  162.         equip(sets['Resting'])
  163.     else
  164.         equip(sets['aftercast_Idle'])
  165.     end
  166. end
  167.  
  168.  
  169.  
  170. function pet_midcast(spell,action)
  171. end
  172.  
  173. function pet_aftercast(spell,action)
  174. end
  175.  
  176. function self_command(command)
  177. end
Advertisement
Add Comment
Please, Sign In to add comment