Advertisement
shadowmeld

BLM.lua

Jan 17th, 2014
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.58 KB | None | 0 0
  1. function get_sets()
  2.    
  3.     --[[
  4.         mage-gear.lua
  5.         This file should be in the same directory where you keep your job.lua file.
  6.         This file will contain the default gear for the three mage types blm, sch, geo
  7.         After the init function, you can override gear based on your job.
  8.         This must be called first or it might override other gear you might declare.
  9.        
  10.         Additionally, after you have overridden gear, you must call the build_default_sets function to build the casting sets.
  11.     --]]
  12.     include('mage-gear.lua')
  13.     init_mage_gear()
  14.  
  15.     -- Gear Overrides
  16.     --[[
  17.         There are 3 ways to override gear
  18.         1. change equipment one piece at a time
  19.             sets.MND.head = "Gende. Caubeen"
  20.         2. use the set_combine function to one or more pieces of gear
  21.             sets.MND = set_combine(sets.MND, {  head = "Gende. Caubeen" }
  22.         3. completely override the set with a new one
  23.             sets.MND = {    head = "Gende. Caubeen", neck = "MND Neck", etc.... }
  24.     --]]
  25.     sets.Macc.ear2 = "Goetia Earring"
  26.  
  27.     sets.Skill.DarkMagic = set_combine(sets.Skill.DarkMagic, {  legs = "Wizard's Tonban", feet = "Goetia Sabots +2" })
  28.  
  29.     -- Additional Sets
  30.     sets.JA['Mana Wall'] = {    feet = "Goetia Sabots +2"   }
  31.     sets.JA['Enmity Douse'] = { hands = "Goetia Gloves +2"  }
  32.  
  33.     -- Build Sets
  34.     build_default_sets()
  35.  
  36.     -- Include Spell Maps and Mage Functions
  37.     include('spell-map.lua')
  38.     include('mage-function.lua')
  39.    
  40.     alias_element_match()
  41.  
  42. end
  43.  
  44. function job_buff_change(buff, gain)
  45.  
  46.     if buff == 'Mana Wall' then
  47.         if gain then
  48.             sets.Idle.Current = set_combine(sets.Idle, sets.JA[buff])
  49.         else
  50.             sets.Idle.Current = sets.Idle
  51.         end
  52.     end
  53.  
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement