Advertisement
Guest User

GEO blank

a guest
Aug 31st, 2015
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.79 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------
  2. -- Initialization function that defines sets and variables to be used.
  3. -------------------------------------------------------------------------------------------------------------------
  4.  
  5. -- IMPORTANT: Make sure to also get the Mote-Include.lua file (and its supplementary files) to go with this.
  6.  
  7. -- Initialization function for this job file.
  8. function get_sets()
  9.     mote_include_version = 2
  10.         -- Load and initialize the include file.
  11.         include('Mote-Include.lua')    
  12.         include('organizer-lib')
  13. end
  14.  
  15. -- Setup vars that are user-independent.
  16. function job_setup()
  17.  
  18. end
  19.  
  20. -- Setup vars that are user-dependent.  Can override this function in a sidecar file.
  21. function user_setup()
  22.         -- Options: Override default values
  23.         options.CastingModes = {'Normal', 'Resistant'}
  24.         options.OffenseModes = {'Normal','Staff','Club','StaffACC','ClubACC'}
  25.         options.DefenseModes = {'Normal'}
  26.         options.WeaponskillModes = {'Normal'}
  27.         options.IdleModes = {'Normal','Hybrid','PDT','petPDT'}
  28.         options.RestingModes = {'Normal'}
  29.         options.PhysicalDefenseModes = {'PDT'}
  30.         options.MagicalDefenseModes = {'MDT'}
  31.  
  32.         lowTierNukes = S{'Stone', 'Water', 'Aero', 'Fire', 'Blizzard', 'Thunder',
  33.                 'Stone II', 'Water II', 'Aero II', 'Fire II', 'Blizzard II', 'Thunder II',
  34.                 'Stone III', 'Water III', 'Aero III', 'Fire III', 'Blizzard III', 'Thunder III',
  35.                 'Stonega', 'Waterga', 'Aeroga', 'Firaga', 'Blizzaga', 'Thundaga',
  36.                 'Stonega II', 'Waterga II', 'Aeroga II', 'Firaga II', 'Blizzaga II', 'Thundaga II', 'Stonera', 'Thundara', 'Fira', 'Blizzara', 'Aerora', 'Watera'}
  37.  
  38.         -- Default macro set/book
  39. end
  40.  
  41. -- Called when this job file is unloaded (eg: job change)
  42. function file_unload()
  43.         if binds_on_unload then
  44.                 binds_on_unload()
  45.         end
  46. end
  47.  
  48.  
  49. -- Define sets and vars used by this job file.
  50. function init_gear_sets()
  51.         --------------------------------------
  52.         -- Start defining the sets
  53.         --------------------------------------
  54.  
  55.         -- Precast Sets
  56.  
  57.         -- Precast sets to enhance JAs
  58.         sets.precast.JA['Life Cycle'] = {body="Geomancy Tunic"}
  59.         sets.precast.JA['Bolster'] = {body="Bagua Tunic"}
  60.         sets.precast.JA['Curative Recantation'] = {hands="Bagua Mitaines"}
  61.         sets.precast.JA['Mending Halation'] = {legs="Bagua Pants"}
  62.         sets.precast.JA['Radial Arcana'] = {feet="Bagua Sandals"}      
  63.  
  64.         -- Fast cast sets for spells
  65.  
  66.         sets.precast.FC = {}
  67.  
  68.         sets.precast.FC.Cure = {}
  69.  
  70.         sets.precast.FC.Stoneskin = {}
  71.  
  72.        
  73.         -- Weaponskill sets
  74.         -- Default set for any weaponskill that isn't any more specifically defined
  75.         sets.precast.WS = {}
  76.  
  77.         -- Specific weaponskill sets.  Uses the base set if an appropriate WSMod version isn't found.
  78.         sets.precast.WS['Flash Nova'] = {}
  79.  
  80.         sets.precast.WS['Exudation'] = {}      
  81.                
  82.         sets.precast.WS['Hexa Strike'] = {}
  83.  
  84.         sets.precast.WS['Starlight'] = {ear2="Moonshade Earring"}
  85.  
  86.         sets.precast.WS['Moonlight'] = {ear2="Moonshade Earring"}
  87.  
  88.         sets.precast.WS['Retribution'] = {}
  89.  
  90.         sets.precast.WS['Cataclysm'] = {}
  91.         -- Midcast Sets
  92.  
  93.         sets.midcast.FastRecast = {}
  94.  
  95.         sets.midcast.Geomancy = {}
  96.  
  97.         -- Cure potency =
  98.         sets.midcast.Cure = {}
  99.  
  100.         sets.midcast.Stoneskin = {}
  101.  
  102.         sets.midcast.Protectra = {}
  103.  
  104.         sets.midcast.Shellra = {}
  105.  
  106.         -- Custom Spell Classes
  107.         sets.midcast['Enfeebling Magic'] = {}
  108.  
  109.         sets.midcast.IntEnfeebles = {}
  110.  
  111.         sets.midcast.ElementalEnfeeble = sets.midcast['Enfeebling Magic']
  112.  
  113.         sets.midcast['Dark Magic'] = {}
  114.  
  115.                 -- Elemental Magic sets are default for handling low-tier nukes.
  116.         sets.midcast.LowTierNuke = {}
  117.  
  118.         sets.midcast.LowTierNuke.Resistant = {}
  119.                
  120.         -- Custom classes for high-tier nukes.
  121.         sets.midcast.HighTierNuke = {}
  122.  
  123.         sets.midcast.HighTierNuke.Resistant = {}
  124.         -- Sets to return to when not performing an action.
  125.  
  126.         -- Resting sets
  127.         sets.resting = {}
  128.  
  129.  
  130.         -- Idle sets (default idle set not needed since the other three are defined, but leaving for testing purposes)
  131.  
  132.  
  133.         sets.idle.Field = {}      
  134.  
  135.         sets.idle.Field.PDT = {}
  136.  
  137.  
  138.         -- Defense sets
  139.  
  140.         sets.defense.PDT = {}
  141.  
  142.         sets.defense.MDT = {}
  143.  
  144.         sets.Kiting = {feet="Geomancy Sandals"}
  145.  
  146.         -- Engaged sets
  147.  
  148.         -- Variations for TP weapon and (optional) offense/defense modes.  Code will fall back on previous
  149.         -- sets if more refined versions aren't defined.
  150.         -- If you create a set with both offense and defense modes, the offense mode should be first.
  151.         -- EG: sets.engaged.Dagger.Accuracy.Evasion
  152.  
  153.         -- Normal melee group
  154.         sets.engaged = {}
  155. end
  156.  
  157. -------------------------------------------------------------------------------------------------------------------
  158. -- Job-specific hooks that are called to process player actions at specific points in time.
  159. -------------------------------------------------------------------------------------------------------------------
  160.  
  161. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  162. -- Set eventArgs.useMidcastGear to true if we want midcast gear equipped on precast.
  163. function job_precast(spell, action, spellMap, eventArgs)
  164.  
  165. end
  166.  
  167. -- Run after the general precast() is done.
  168. function job_post_precast(spell, action, spellMap, eventArgs)
  169.  
  170. end
  171.  
  172.  
  173. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  174. function job_midcast(spell, action, spellMap, eventArgs)
  175.         if spell.action_type == 'Magic' then
  176.                 -- Default base equipment layer of fast recast.
  177.                 equip(sets.midcast.FastRecast)
  178.         end
  179. end
  180.  
  181. -- Custom spell mapping.
  182. function job_get_spell_map(spell, default_spell_map)
  183.         if spell.skill == 'Elemental Magic' and default_spell_map ~= 'ElementalEnfeeble' then
  184.                 if lowTierNukes:contains(spell.english) then
  185.                         return 'LowTierNuke'
  186.                 else
  187.                         return 'HighTierNuke'
  188.                 end
  189.         end
  190. end
  191. -- Run after the general midcast() is done.
  192. function job_post_midcast(spell, action, spellMap, eventArgs)
  193.  
  194. end
  195.  
  196. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  197. function job_aftercast(spell, action, spellMap, eventArgs)
  198.  
  199. end
  200.  
  201.  
  202. -------------------------------------------------------------------------------------------------------------------
  203. -- Customization hooks for idle and melee sets, after they've been automatically constructed.
  204. -------------------------------------------------------------------------------------------------------------------
  205.  
  206. function customize_idle_set(idleSet)
  207.         return idleSet
  208. end
  209.  
  210. function customize_melee_set(meleeSet)
  211.         return meleeSet
  212. end
  213.  
  214. -------------------------------------------------------------------------------------------------------------------
  215. -- General hooks for other events.
  216. -------------------------------------------------------------------------------------------------------------------
  217.  
  218. -- Called when the player's status changes.
  219. function job_status_change(newStatus,oldStatus)
  220.  
  221. end
  222.  
  223. -- Called when a player gains or loses a buff.
  224. -- buff == buff gained or lost
  225. -- gain == true if the buff was gained, false if it was lost.
  226. function job_buff_change(buff, gain)
  227.         --handle_equipping_gear(player.status)
  228. end
  229.  
  230.  
  231. -------------------------------------------------------------------------------------------------------------------
  232. -- User code that supplements self-commands.
  233. -------------------------------------------------------------------------------------------------------------------
  234.  
  235. -- Called for custom player commands.
  236. function job_self_command(cmdParams, eventArgs)
  237.  
  238. end
  239.  
  240. -- Called by the 'update' self-command.
  241. function job_update(cmdParams, eventArgs)
  242.  
  243. end
  244.  
  245. -- Function to display the current relevant user state when doing an update.
  246. -- Return true if display was handled, and you don't want the default info shown.
  247. function display_current_job_state()
  248.  
  249. end
  250.  
  251. -------------------------------------------------------------------------------------------------------------------
  252. -- Utility functions specific to this job.
  253. -------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement