Advertisement
Guest User

rdm

a guest
Mar 5th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.57 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------
  2. -- Setup functions for this job.  Generally should not be modified.
  3. -------------------------------------------------------------------------------------------------------------------
  4.  
  5. -- Initialization function for this job file.
  6. function get_sets()
  7.     mote_include_version = 2
  8.  
  9.     -- Load and initialize the include file.
  10.     include('Mote-Include.lua')
  11. end
  12.         --Variables
  13.                 acc = 1 --1 = Standard enfeeble, 2 = acc
  14.  
  15. -- Setup vars that are user-independent.  state.Buff vars initialized here will automatically be tracked.
  16. function job_setup()
  17.     state.Buff.Saboteur = buffactive.saboteur or false
  18. end
  19.  
  20. -------------------------------------------------------------------------------------------------------------------
  21. -- User setup functions for this job.  Recommend that these be overridden in a sidecar file.
  22. -------------------------------------------------------------------------------------------------------------------
  23.  
  24. -- Setup vars that are user-dependent.  Can override this function in a sidecar file.
  25. function user_setup()
  26.     state.OffenseMode:options('None', 'Normal')
  27.     state.HybridMode:options('Normal', 'PhysicalDef', 'MagicalDef')
  28.     state.CastingMode:options('Normal', 'Resistant')
  29.     state.IdleMode:options('Normal', 'PDT', 'MDT')
  30.  
  31.     gear.default.obi_waist = "Sekhmet Corset"
  32.  
  33. end
  34.  
  35.  
  36. -- Define sets and vars used by this job file.
  37. function init_gear_sets()
  38.     --------------------------------------
  39.     -- Start defining the sets
  40.     --------------------------------------
  41.         --Variables
  42.                 acc = 1 --1 = Standard potency, 2 = Magic Accuracy
  43.                 idleset = 1 --1 = Standard, 2 = PDT
  44.            
  45.     sets.precast.FC = {head="Warlock's Chapeau", body="Goliard Saio"}
  46.         --Variables
  47.        
  48.     -- Weaponskill sets
  49.     -- Default set for any weaponskill that isn't any more specifically defined
  50.     sets.precast.WS = {}
  51.  
  52.     -- Midcast Sets
  53.    
  54.     sets.midcast.FastRecast = {head="Warlock's Chapeau", body="Goliard Saio", hands="Dusk Gloves +1", waist="Speed Belt", feet="Dusk Ledelsens +1"}
  55.  
  56.     sets.midcast.Cure = {main="Chatoyant Staff", sub="Staff Grip", head="Warlock's Chapeau", neck="Fylgja Torque +1", ear1="Roundel Earring",
  57.         ear2="Celestial Earring", body="Goliard Saio", hands="Dusk Goves +1", ring1="Celestal Ring", ring2="Celestial Ring", back="Mahatma Cape",
  58.         waist="Pythia Sash +1", legs="Mahatma Slops", feet="Dusk Ledelsens +1"}
  59.        
  60.     sets.midcast.Curaga = sets.midcast.Cure
  61.     sets.midcast.CureSelf = {main="Chatoyant Staff", sub="Staff Grip", head="Warlock's Chapeau", neck="Fylgja Torque +1", ear1="Roundel Earring",
  62.         ear2="Celestial Earring", body="Goliard Saio", hands="Dusk Goves +1", ring1="Celestal Ring", ring2="Celestial Ring", back="Mahatma Cape",
  63.         waist="Pythia Sash +1", legs="Mahatma Slops", feet="Dusk Ledelsens +1"}
  64.  
  65.     sets.midcast['Enhancing Magic'] = {head="Warlock's Chapeau", body="Goliard Saio", neck="Enhancing Torque", ear1="Augment. Earring", legs="Warlock's Tights",
  66.         hands="Duelist's Gloves", feet="Dusk Ledelsens +1", waist="Speed Belt"}
  67.        
  68.     sets.midcast.Refresh = {head="Warlock's Chapeau", body="Goliard Saio", legs="Warlock's Tights",
  69.         hands="Dusk Gloves +1", feet="Dusk Ledelsens +1", waist="Speed Belt"}
  70.  
  71.     sets.midcast.Stoneskin = {head="Warlock's Chapeau", body="Goliard Saio", neck="Enhancing Torque", ear1="Augment. Earring", ear2="Celestial Earring",
  72.         legs="Warlock's Tights", hands="Dusk gloves +1", feet="Dusk Ledelsens +1", waist="Speed Belt", back="Prism Cape", ring1="celestial Ring",
  73.         ring2="Celestial Ring"}
  74.    
  75.     sets.midcast['Enfeebling Magic'] = {main="Chatoyant Staff", sub="Vivid Strap +1", head="Blood Mask", neck="Enfeebling Torque", ear1="Incubus Earring +1",
  76.         ear2="Incubus Earring +1", body="Warlock's Tabard", back="Hecate's Cape", waist="Witch Sash"}
  77.  
  78.     sets.midcast.MND = {main="Mistelteinn", sub="Nms. Shield +1",
  79.         head="blood Mask", neck="Promis Badge", ear1="Celestial Earring",
  80.         ear2="Celestial Earring", body="Mahatma Houppelande", hands="Devotee's Mitts +1",
  81.         ring1="Celestial Ring", ring2="Celestial Ring", back="Prism Cape",
  82.         waist="Witch Sash", legs="Mahatma Slops", feet="Mahatma Pigaches"}
  83.    
  84.     sets.midcast['Elemental Magic'] = {main="Lehbrailg +2", sub="Mephitis Grip", range="Aureole",
  85.         head="Hagondes Hat", neck="Eddy Necklace", ear1="Friomisi Earring", ear2="Hecate's Earring",
  86.         body="Hagondes Coat", hands="Hagondes Cuffs", ring1="Sangoma Ring", ring2="Acumen Ring",
  87.         back="Toro Cape", waist="Sekhmet Corset", legs="Hagondes Pants", feet="Umbani Boots"}
  88.  
  89.  
  90.     sets.midcast['Dark Magic'] = {}
  91.  
  92.     --sets.midcast.Stun = set_combine(sets.midcast['Dark Magic'], {})
  93.  
  94.     sets.midcast.Drain = set_combine(sets.midcast['Dark Magic'], {})
  95.  
  96.     sets.midcast.Aspir = sets.midcast.Drain
  97.  
  98.  
  99.     -- Sets to return to when not performing an action.
  100.    
  101.     -- Resting sets
  102.     sets.resting = {}
  103.    
  104.  
  105.     -- Idle sets
  106.     sets.idle = {main="Terra's Staff", sub="Vivid Strap +1", ammo="Hedgehog Bomb",
  107.     neck="Orocho Nodowa +1", ear1="Merman's Earring", ear2="Merman's Earring",
  108.     body="Ixion Cloak", hands="Dst. Mittens +1", ring1="Merman's Ring", ring2="Merman's Ring",
  109.     back="Umbra Cape", waist="Ocean Rope", legs="Blood Cuiises", feet="Dst. Leggings +1"}
  110.    
  111.    
  112.     -- Defense sets
  113.     sets.defense.PDT = {}
  114.  
  115.     sets.defense.MDT = {}
  116.  
  117.     sets.Kiting = {legs="Blood Cuisses"}
  118.  
  119.  
  120.     -- Engaged sets
  121.  
  122.     -- Variations for TP weapon and (optional) offense/defense modes.  Code will fall back on previous
  123.     -- sets if more refined versions aren't defined.
  124.     -- If you create a set with both offense and defense modes, the offense mode should be first.
  125.     -- EG: sets.engaged.Dagger.Accuracy.Evasion
  126.    
  127.     -- Normal melee group
  128.     sets.engaged = {}
  129.  
  130.     sets.engaged.Defense = {}
  131.  
  132. end
  133.  
  134. -------------------------------------------------------------------------------------------------------------------
  135. -- Job-specific hooks for standard casting events.
  136. -------------------------------------------------------------------------------------------------------------------
  137.  
  138. -- Run after the default midcast() is done.
  139. -- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
  140. function job_post_midcast(spell, action, spellMap, eventArgs)
  141. end
  142. function midcast(spell)
  143.         if spell.action_type == 'Magic' then
  144.                 if spell.type == 'Enfeebling Magic' then
  145.                         if string.find(spell.english,'Slow') then
  146.                                 if acc == 2 then
  147.                                         equip(sets.midcast.MND,{main="Chatoyant Staff", sub="Raptor Strap +1",
  148.                                             head="blood Mask", neck="Enfebling Torque", ear1="Incubus Earring +1",
  149.                                             ear2="Incubus Earring +1", body="Warlock's Tabard", hands="Devotee's Mitts +1",
  150.                                             ring1="Celestial Ring", ring2="Celestial Ring", back="Hecate's Cape",
  151.                                             waist="Witch Sash", legs="Mahatma Slops", feet="Mahatma Pigaches"})
  152.                                 else
  153.                                     equip(sets.midcast.MND)
  154.                                 end
  155.  
  156.                 elseif spell.skill == 'Healing Magic' then
  157.                         if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
  158.                                 equip(sets.midcast.cure)
  159.                         else
  160.                                 equip(sets.midcast.fastcast)
  161.                         end
  162.                        
  163.                 elseif spell.skill == 'Enhancing Magic' then
  164.                         if string.find(spell.english,'Stoneskin') then
  165.                                 equip(sets.midcast.stoneskin)
  166.                         else
  167.                                 equip(sets.midcast.fastcast)
  168.                         end
  169.                 end
  170.         end
  171. end
  172.  
  173. -------------------------------------------------------------------------------------------------------------------
  174. -- Job-specific hooks for non-casting events.
  175. -------------------------------------------------------------------------------------------------------------------
  176.  
  177. -- Handle notifications of general user state change.
  178. function job_state_change(stateField, newValue, oldValue)
  179.     if stateField == 'Offense Mode' then
  180.         if newValue == 'None' then
  181.             enable('main','sub','range')
  182.         else
  183.             disable('main','sub','range')
  184.         end
  185.     end
  186. end
  187.  
  188. -------------------------------------------------------------------------------------------------------------------
  189. -- User code that supplements standard library decisions.
  190. -------------------------------------------------------------------------------------------------------------------
  191.  
  192. -- Modify the default idle set after it was constructed.
  193. function customize_idle_set(idleSet)
  194.     if player.mpp < 51 then
  195.         idleSet = set_combine(idleSet, sets.latent_refresh)
  196.     end
  197.    
  198.     return idleSet
  199. end
  200. function self_command(command)
  201.     if command == 'toggle acc' then
  202.                 acc = acc +1
  203.                 if acc > 2 then
  204.                         acc = 1
  205.                         send_command('@input /echo ----- Magic Accuracy Disabled -----')
  206.                 elseif acc == 2 then
  207.                         send_command('@input /echo ----- MAgic Accuracy Enabled -----')
  208.                 end
  209.     end
  210. end
  211. -- Set eventArgs.handled to true if we don't want the automatic display to be run.
  212. function display_current_job_state(eventArgs)
  213.     display_current_caster_state()
  214.     eventArgs.handled = true
  215. end
  216.  
  217. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement