Advertisement
Crevox

Untitled

Feb 5th, 2023
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 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.  
  13.  
  14. -- Setup vars that are user-independent. state.Buff vars initialized here will automatically be tracked.
  15. function job_setup()
  16. state.Buff.Hasso = buffactive.Hasso or false
  17. state.Buff.Seigan = buffactive.Seigan or false
  18. state.Buff.Sekkanoki = buffactive.Sekkanoki or false
  19. state.Buff.Sengikori = buffactive.Sengikori or false
  20. state.Buff['Meikyo Shisui'] = buffactive['Meikyo Shisui'] or false
  21. end
  22.  
  23. -------------------------------------------------------------------------------------------------------------------
  24. -- User setup functions for this job. Recommend that these be overridden in a sidecar file.
  25. -------------------------------------------------------------------------------------------------------------------
  26.  
  27. -- Setup vars that are user-dependent.
  28. function user_setup()
  29. state.OffenseMode:options('Normal', 'Acc')
  30. state.HybridMode:options('Normal', 'PDT', 'Reraise')
  31. state.WeaponskillMode:options('Normal', 'Acc', 'Mod')
  32. state.PhysicalDefenseMode:options('PDT', 'Reraise')
  33.  
  34. --send_command('bind f10 gs c weapon_lock_toggle')
  35.  
  36.  
  37. update_combat_form()
  38.  
  39. -- Additional local binds
  40. --send_command('bind ^` input /ja "Hasso" <me>')
  41. --send_command('bind !` input /ja "Seigan" <me>')
  42.  
  43. select_default_macro_book()
  44. end
  45.  
  46.  
  47. -- Called when this job file is unloaded (eg: job change)
  48. function user_unload()
  49. send_command('unbind ^`')
  50. send_command('unbind !-')
  51. end
  52.  
  53.  
  54. -- Define sets and vars used by this job file.
  55. function init_gear_sets()
  56. --------------------------------------
  57. -- Start defining the sets
  58. --------------------------------------
  59.  
  60. -- Precast Sets
  61. -- Precast sets to enhance JAs
  62. sets.precast.JA.Meditate = {head="Myochin Kabuto"}
  63. sets.precast.JA['Warding Circle'] = {head="Myochin Kabuto"}
  64. sets.precast.JA['Blade Bash'] = {}
  65.  
  66. -- Weaponskill sets
  67. -- Default set for any weaponskill that isn't any more specifically defined
  68. sets.precast.WS = {}
  69. sets.precast.WS.Acc = set_combine(sets.precast.WS, {})
  70.  
  71. --THIS ONE GOOD
  72. sets.engaged = {}
  73. sets.engaged.PDT = {}
  74.  
  75. -- Specific weaponskill sets. Uses the base set if an appropriate WSMod version isn't found.
  76. sets.precast.WS['Tachi: Kasha'] = set_combine(sets.precast.WS, {})
  77. sets.precast.WS['Tachi: Gekko'] = set_combine(sets.precast.WS, {})
  78. sets.precast.WS['Tachi: Yukikaze'] = set_combine(sets.precast.WS, {})
  79. sets.precast.WS['Tachi: Jinpu'] = set_combine(sets.precast.WS, {})
  80.  
  81. -- Defense sets
  82. sets.idle.Field = {}
  83. sets.defense.PDT = {}
  84.  
  85.  
  86.  
  87. -- Midcast Sets
  88. sets.midcast.FastRecast = {}
  89.  
  90.  
  91. -- Sets to return to when not performing an action.
  92.  
  93. -- Resting sets
  94. sets.resting = {}
  95.  
  96.  
  97. -- Idle sets (default idle set not needed since the other three are defined, but leaving for testing purposes)
  98. sets.idle.Town = {}
  99.  
  100.  
  101. sets.idle.Weak = {}
  102.  
  103.  
  104.  
  105. sets.defense.Reraise = {}
  106.  
  107. sets.defense.MDT = {}
  108.  
  109. sets.Kiting = {}
  110.  
  111. sets.Reraise = {}
  112.  
  113. -- Engaged sets
  114.  
  115. -- Variations for TP weapon and (optional) offense/defense modes. Code will fall back on previous
  116. -- sets if more refined versions aren't defined.
  117. -- If you create a set with both offense and defense modes, the offense mode should be first.
  118. -- EG: sets.engaged.Dagger.Accuracy.Evasion
  119.  
  120. -- Normal melee group
  121. -- Delay 450 GK, 25 Save TP => 65 Store TP for a 5-hit (25 Store TP in gear)
  122.  
  123.  
  124.  
  125. sets.engaged.Acc = {}
  126.  
  127. sets.engaged.Acc.PDT = {}
  128. sets.engaged.Reraise = {}
  129. sets.engaged.Acc.Reraise = {}
  130.  
  131. -- Melee sets for in Adoulin, which has an extra 10 Save TP for weaponskills.
  132. -- Delay 450 GK, 35 Save TP => 89 Store TP for a 4-hit (49 Store TP in gear), 2 Store TP for a 5-hit
  133. sets.engaged.Adoulin = {}
  134. sets.engaged.Adoulin.Acc = {}
  135. sets.engaged.Adoulin.PDT = {}
  136. sets.engaged.Adoulin.Acc.PDT = {}
  137. sets.engaged.Adoulin.Reraise = {}
  138. sets.engaged.Adoulin.Acc.Reraise = {}
  139.  
  140.  
  141. sets.buff.Sekkanoki = {}
  142. sets.buff.Sengikori = {}
  143. sets.buff['Meikyo Shisui'] = {}
  144. end
  145.  
  146.  
  147. -------------------------------------------------------------------------------------------------------------------
  148. -- Job-specific hooks for standard casting events.
  149. -------------------------------------------------------------------------------------------------------------------
  150.  
  151. -- Set eventArgs.handled to true if we don't want any automatic target handling to be done.
  152. function job_pretarget(spell, action, spellMap, eventArgs)
  153.  
  154. end
  155.  
  156. -- Run after the default precast() is done.
  157. -- eventArgs is the same one used in job_precast, in case information needs to be persisted.
  158. function job_post_precast(spell, action, spellMap, eventArgs)
  159. end
  160.  
  161.  
  162. -- Run after the default midcast() is done.
  163. -- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
  164. function job_post_midcast(spell, action, spellMap, eventArgs)
  165.  
  166. end
  167.  
  168. -------------------------------------------------------------------------------------------------------------------
  169. -- User code that supplements standard library decisions.
  170. -------------------------------------------------------------------------------------------------------------------
  171.  
  172. -- Called by the 'update' self-command, for common needs.
  173. -- Set eventArgs.handled to true if we don't want automatic equipping of gear.
  174. function job_update(cmdParams, eventArgs)
  175. update_combat_form()
  176. end
  177.  
  178. -- Set eventArgs.handled to true if we don't want the automatic display to be run.
  179. function display_current_job_state(eventArgs)
  180.  
  181. end
  182.  
  183. -------------------------------------------------------------------------------------------------------------------
  184. -- Utility functions specific to this job.
  185. -------------------------------------------------------------------------------------------------------------------
  186.  
  187. function update_combat_form()
  188. if areas.Adoulin:contains(world.area) and buffactive.ionis then
  189. state.CombatForm:set('Adoulin')
  190. else
  191. state.CombatForm:reset()
  192. end
  193. end
  194.  
  195. -- Select default macro book on initial load or subjob change.
  196. function select_default_macro_book()
  197. -- Default macro set/book
  198. --set_macro_page(1, 11)
  199. end
  200.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement