Advertisement
Guest User

gargs geo

a guest
Jul 23rd, 2014
1,560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.94 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. -- Load and initialize the include file.
  10. include('Mote-Include.lua')
  11. end
  12.  
  13. -- Setup vars that are user-independent.
  14. function job_setup()
  15.  
  16. end
  17.  
  18. -- Setup vars that are user-dependent. Can override this function in a sidecar file.
  19. function user_setup()
  20. -- Options: Override default values
  21. options.CastingModes = {'Normal', 'Resistant'}
  22. options.OffenseModes = {'Normal','Staff','Club','StaffACC','ClubACC'}
  23. options.DefenseModes = {'Normal'}
  24. options.WeaponskillModes = {'Normal'}
  25. options.IdleModes = {'Normal','Hybrid','PDT','petPDT'}
  26. options.RestingModes = {'Normal'}
  27. options.PhysicalDefenseModes = {'PDT'}
  28. options.MagicalDefenseModes = {'MDT'}
  29.  
  30. state.Defense.PhysicalMode = 'PDT'
  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. set_macro_page(1, 1)
  40. end
  41.  
  42. -- Called when this job file is unloaded (eg: job change)
  43. function file_unload()
  44. if binds_on_unload then
  45. binds_on_unload()
  46. end
  47. end
  48.  
  49.  
  50. -- Define sets and vars used by this job file.
  51. function init_gear_sets()
  52. --------------------------------------
  53. -- Start defining the sets
  54. --------------------------------------
  55.  
  56. -- Precast Sets
  57.  
  58. -- Precast sets to enhance JAs
  59. sets.precast.JA['Life Cycle'] = {body="Geomancy Tunic"}
  60. sets.precast.JA['Bolster'] = {body="Bagua Tunic"}
  61. sets.precast.JA['Curative Recantation'] = {hands="Bagua Mitaines +1"}
  62. sets.precast.JA['Mending Halation'] = {legs="Bagua Pants"}
  63. sets.precast.JA['Radial Arcana'] = {feet="Bagua Sandals +1"}
  64.  
  65. -- Fast cast sets for spells
  66.  
  67. sets.precast.FC = {main="Terra's staff",sub="vivid strap",
  68. head="nahtirah hat",neck="Jeweled Collar",ear1="",ear2="Loquacious Earring",
  69. body="",ring1="Prolix Ring",hands="repartie gloves",
  70. back="lifestream Cape",waist="Witful Belt",legs="Geomancy Pants",feet=""}
  71.  
  72. sets.precast.FC.Cure = {main="tamaxchi",sub="genbu's shield",
  73. head="nahtirah hat",neck="Jeweled Collar",ear1="magnetic Earring",ear2="Loquacious Earring",
  74. body="",ring1="Prolix Ring",hands="repartie gloves",
  75. back="pahtli Cape",waist="Witful Belt",legs="Geomancy Pants",feet="umbani Boots"}
  76.  
  77. sets.precast.FC.Stoneskin = {main="Terra's staff",sub="vivid strap",
  78. head="nahtirah hat",neck="Jeweled Collar",ear1="magnetic Earring",ear2="Loquacious Earring",
  79. body="",ring1="Prolix Ring",hands="carapacho cuffs",
  80. back="lifestream Cape",waist="siegel sash",legs="Geomancy Pants",feet="umbani Boots"}
  81.  
  82.  
  83. -- Weaponskill sets
  84. -- Default set for any weaponskill that isn't any more specifically defined
  85. sets.precast.WS = {
  86. head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
  87. body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
  88. back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
  89.  
  90. -- Specific weaponskill sets. Uses the base set if an appropriate WSMod version isn't found.
  91. sets.precast.WS['Flash Nova'] = {
  92. head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
  93. body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
  94. back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
  95.  
  96. sets.precast.WS['Exudation'] = {
  97. head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
  98. body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
  99. back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
  100.  
  101. sets.precast.WS['Hexa Strike'] = {
  102. head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
  103. body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
  104. back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
  105.  
  106. sets.precast.WS['Starlight'] = {ear2="Moonshade Earring"}
  107.  
  108. sets.precast.WS['Moonlight'] = {ear2="Moonshade Earring"}
  109.  
  110. sets.precast.WS['Retribution'] = {
  111. head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
  112. body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
  113. back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
  114.  
  115. sets.precast.WS['Cataclysm'] = {
  116. head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
  117. body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
  118. back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
  119.  
  120. -- Midcast Sets
  121.  
  122. sets.midcast.FastRecast = {main="Terra's staff",sub="vivid strap",
  123. head="laurel wreath",neck="Jeweled Collar",ear1="magnetic Earring",ear2="Loquacious Earring",
  124. body="",ring1="Prolix Ring",hands="repartie gloves",
  125. back="lifestream Cape",waist="Witful Belt",legs="Geomancy Pants",feet="umbani Boots"}
  126.  
  127. sets.midcast.Geomancy = {main="Terra's staff",sub="vivid strap",
  128. range="dunna",head="laurel wreath",hands="geomancy mitaines",back="lifestream Cape",
  129. body="bagua tunic",ear1="gifted earring",ear2="magnetic earring",
  130. waist="austerity belt",feet="umbani boots",legs="bagua pants"}
  131.  
  132. -- Cure potency =
  133. sets.midcast.Cure = {main="tamaxchi",sub="genbu's shield",
  134. head="laurel wreath",neck="phalaina locket",ear1="magnetic Earring",ear2="gifted Earring",
  135. body="",ring1="sirona's Ring",hands="bokwus gloves",
  136. back="tempered Cape",waist="austerity Belt",legs="Geomancy Pants",feet="umbani Boots"}
  137.  
  138. sets.midcast.Stoneskin = {main="Terra's staff",sub="vivid strap",
  139. head="laurel wreath",hands=""
  140. ,back="",body=""
  141. ,ear1="earthcry earring",ear2="magnetic earring",waist="austerity belt"
  142. ,feet="umbani Boots",legs="haven hose",neck="stone gorget",feet="umbani Boots"}
  143.  
  144. sets.midcast.Protectra = {ring1="Sheltered Ring"}
  145.  
  146. sets.midcast.Shellra = {ring1="Sheltered Ring"}
  147.  
  148. -- Custom Spell Classes
  149. sets.midcast['Enfeebling Magic'] = {main="baqil staff",sub="mephitis grip",ranged="",
  150. head="bagua galero +1",neck="eddy necklace",ear1="Psystorm Earring",ear2="Lifestorm Earring",
  151. body="Ischemia chasuble",hands="lurid mitts ",ring1="",ring2="",
  152. back="kumbira Cape",waist="Aswang Sash",legs="hagondes pants",feet="Bagua sandals +1"}
  153.  
  154. sets.midcast.IntEnfeebles = {main="baqil staff",sub="mephitis grip",ranged="",
  155. head="bagua galero +1",neck="eddy necklace",ear1="Psystorm Earring",ear2="Lifestorm Earring",
  156. body="Ischemia chasuble",hands="lurid mitts ",ring1="",ring2="",
  157. back="kumbira Cape",waist="Aswang Sash",legs="hagondes pants",feet="Bagua sandals +1"}
  158.  
  159. sets.midcast.ElementalEnfeeble = sets.midcast['Enfeebling Magic']
  160.  
  161. sets.midcast['Dark Magic'] = {main="Bolelabunga",sub="genbu's shield",ranged="",
  162. head="bagua galero +1",neck="eddy necklace",ear1="hirudinea Earring",ear2="loquacious Earring",
  163. body="geomancy tunic",hands="yaoyotl gloves ",ring1=" ring",ring2="",
  164. back="kumbira Cape",waist="fucho-no-obi",legs="",feet="kandza crackows"}
  165.  
  166. -- Elemental Magic sets are default for handling low-tier nukes.
  167. sets.midcast.LowTierNuke = {main="baqil Staff",sub="wise strap",ammo="",
  168. head="geomancy galero",neck="Eddy Necklace",ear1="strophadic Earring",ear2="hecate's Earring",
  169. body="artsieq jubbah ",hands="yaoyotl gloves",ring1="locus Ring",ring2="demon's Ring",
  170. back="Toro Cape",waist="Aswang Sash",legs="hagondes pants",feet="hagondes sabots"}
  171.  
  172. sets.midcast.LowTierNuke.Resistant = {main="baqil Staff",sub="wise strap",ammo="",
  173. head="geomancy galero",neck="Eddy Necklace",ear1="strophadic Earring",ear2="hecate's Earring",
  174. body="artsieq jubbah ",hands="yaoyotl gloves",ring1="locus Ring",ring2="demon's Ring",
  175. back="Toro Cape",waist="Aswang Sash",legs="hagondes pants",feet="hagondes sabots"}
  176.  
  177. -- Custom classes for high-tier nukes.
  178. sets.midcast.HighTierNuke = {main="baqil Staff",sub="wise strap",ammo="",
  179. head="bagua galero +1",neck="Eddy Necklace",ear1="strophadic Earring",ear2="hecate's Earring",
  180. body="artsieq jubbah",hands="lurid mitts",ring1="locus Ring",ring2="demon's Ring",
  181. back="kumbira Cape",waist="Aswang Sash",legs="hagondes pants",feet="kandza crackows"}
  182.  
  183. sets.midcast.HighTierNuke.Resistant = {main="baqil Staff",sub="wise strap",ammo="",
  184. head="bagua galero +1",neck="Eddy Necklace",ear1="Psystorm Earring",ear2="Lifestorm Earring",
  185. body="artsieq jubbah",hands="yaoyotl gloves",ring1="locus Ring",ring2="demon's Ring",
  186. back="kumbira Cape",waist="Aswang Sash",legs="hagondes pants",feet="kandza crackows"}
  187.  
  188. -- Sets to return to when not performing an action.
  189.  
  190. -- Resting sets
  191. sets.resting = {main="Bolelabunga",sub="Genbu's Shield",range="dunna",
  192. head="wivre hairpin",neck="wiglen gorget",ear1="merman's Earring",ear2="merman's Earring",
  193. body="geomancy tunic",hands="bagua mitaines +1",ring1="Sheltered Ring",ring2="Paguroidea Ring",
  194. back="kumbira Cape",waist="fucho-no-obi",legs="stearc subligar",feet="geomancy sandals"}
  195.  
  196.  
  197. -- Idle sets (default idle set not needed since the other three are defined, but leaving for testing purposes)
  198.  
  199. sets.idle.Town = {main="Bolelabunga",sub="Genbu's Shield",range="Dunna",
  200. head="geomancy galero",neck="twilight torque",ear1="merman's Earring",ear2="merman's Earring",
  201. body="geomancy tunic",hands="geomancy mitaines",ring1="Sheltered Ring",ring2="Paguroidea Ring",
  202. back="kumbira Cape",waist="fucho-no-obi",legs="geomancy pants",feet="geomancy sandals +1"}
  203.  
  204. sets.idle.Field = {main="Terra's staff",sub="vivid strap",range="",
  205. head="Selenian cap",neck="Twilight Torque",ear1="Merman's Earring",ear2="Merman's Earring",
  206. body="Hagondes Coat +1",hands="geomancy mitaines",ring1="Dark Ring",ring2="Dark Ring",
  207. back="Iximulew Cape",waist="Isa belt",legs="Hagondes pants",feet="Bagua sandals +1"}
  208.  
  209. sets.idle.Field.PDT = {main="Terra's staff",sub="vivid strap",range="",
  210. head="hagondes Hat",neck="Twilight Torque",ear1="",ear2="",
  211. body="Hagondes Coat +1",hands="hagondes cuffs +1",ring1="Dark Ring",ring2="dark Ring",
  212. back="iximulew Cape",waist="fucho-no-obi",legs="hagondes pants",feet="Hagondes sabots"}
  213.  
  214. sets.idle.Weak = {main="Bolelabunga",sub="Genbu's Shield",range="dunna",
  215. head="wivre hairpin",neck="wiglen gorget",ear1="merman's Earring",ear2="merman's Earring",
  216. body="geomancy tunic",hands="bagua mitaines +1",ring1="Sheltered Ring",ring2="Paguroidea Ring",
  217. back="kumbira Cape",waist="fucho-no-obi",legs="stearc subligar",feet="geomancy sandals"}
  218.  
  219. -- Defense sets
  220.  
  221. sets.defense.PDT = {main="terra's staff",sub="",range="",
  222. head="hagondes Hat",neck="Twilight Torque",ear1="",ear2="",
  223. body="Hagondes Coat +1",hands="hagondes cuffs +1",ring1="Dark Ring",ring2="dark Ring",
  224. back="iximulew Cape",waist="",legs="hagondes pants",feet="Hagondes sabots"}
  225.  
  226. sets.defense.MDT = {main="",sub="",range="",
  227. head="bagua galero +1",neck="Twilight Torque",ear1="merman's Earring",ear2="merman's Earring",
  228. body="Hagondes Coat +1",hands="hagondes cuffs +1",ring1="Dark Ring",ring2="dark Ring",
  229. back="",waist="",legs="hagondes pants",feet="Bagua sandals +1"}
  230.  
  231. sets.Kiting = {feet="Geomancy Sandals"}
  232.  
  233. -- Engaged sets
  234.  
  235. -- Variations for TP weapon and (optional) offense/defense modes. Code will fall back on previous
  236. -- sets if more refined versions aren't defined.
  237. -- If you create a set with both offense and defense modes, the offense mode should be first.
  238. -- EG: sets.engaged.Dagger.Accuracy.Evasion
  239.  
  240. -- Normal melee group
  241. sets.engaged = {main="bolelabunga",sub="tamaxchi",range="Dunna",
  242. head="bagua galero +1",neck="asperity necklace",ear1="Bladeborn Earring",ear2="Steelflash Earring",
  243. body="hagondes coat +1",hands="Hagondes Cuffs +1",ring1="k'ayres Ring",ring2="rajas Ring",
  244. back="iximulew Cape",waist="goading belt",legs="hagondes pants",feet="Hagondes Sabots"}
  245. end
  246.  
  247. -------------------------------------------------------------------------------------------------------------------
  248. -- Job-specific hooks that are called to process player actions at specific points in time.
  249. -------------------------------------------------------------------------------------------------------------------
  250.  
  251. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  252. -- Set eventArgs.useMidcastGear to true if we want midcast gear equipped on precast.
  253. function job_precast(spell, action, spellMap, eventArgs)
  254.  
  255. end
  256.  
  257. -- Run after the general precast() is done.
  258. function job_post_precast(spell, action, spellMap, eventArgs)
  259.  
  260. end
  261.  
  262.  
  263. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  264. function job_midcast(spell, action, spellMap, eventArgs)
  265. if spell.action_type == 'Magic' then
  266. -- Default base equipment layer of fast recast.
  267. equip(sets.midcast.FastRecast)
  268. end
  269. end
  270.  
  271. -- Custom spell mapping.
  272. function job_get_spell_map(spell, default_spell_map)
  273. if spell.skill == 'Elemental Magic' and default_spell_map ~= 'ElementalEnfeeble' then
  274. if lowTierNukes:contains(spell.english) then
  275. return 'LowTierNuke'
  276. else
  277. return 'HighTierNuke'
  278. end
  279. end
  280. end
  281. -- Run after the general midcast() is done.
  282. function job_post_midcast(spell, action, spellMap, eventArgs)
  283.  
  284. end
  285.  
  286. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  287. function job_aftercast(spell, action, spellMap, eventArgs)
  288.  
  289. end
  290.  
  291.  
  292. -------------------------------------------------------------------------------------------------------------------
  293. -- Customization hooks for idle and melee sets, after they've been automatically constructed.
  294. -------------------------------------------------------------------------------------------------------------------
  295.  
  296. function customize_idle_set(idleSet)
  297. return idleSet
  298. end
  299.  
  300. function customize_melee_set(meleeSet)
  301. return meleeSet
  302. end
  303.  
  304. -------------------------------------------------------------------------------------------------------------------
  305. -- General hooks for other events.
  306. -------------------------------------------------------------------------------------------------------------------
  307.  
  308. -- Called when the player's status changes.
  309. function job_status_change(newStatus,oldStatus)
  310.  
  311. end
  312.  
  313. -- Called when a player gains or loses a buff.
  314. -- buff == buff gained or lost
  315. -- gain == true if the buff was gained, false if it was lost.
  316. function job_buff_change(buff, gain)
  317. --handle_equipping_gear(player.status)
  318. end
  319.  
  320.  
  321. -------------------------------------------------------------------------------------------------------------------
  322. -- User code that supplements self-commands.
  323. -------------------------------------------------------------------------------------------------------------------
  324.  
  325. -- Called for custom player commands.
  326. function job_self_command(cmdParams, eventArgs)
  327.  
  328. end
  329.  
  330. -- Called by the 'update' self-command.
  331. function job_update(cmdParams, eventArgs)
  332.  
  333. end
  334.  
  335. -- Function to display the current relevant user state when doing an update.
  336. -- Return true if display was handled, and you don't want the default info shown.
  337. function display_current_job_state()
  338.  
  339. end
  340.  
  341. -------------------------------------------------------------------------------------------------------------------
  342. -- Utility functions specific to this job.
  343. -------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement