Guest User

Kensagaku_GEO.lua

a guest
May 15th, 2014
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.59 KB | None | 0 0
  1. function get_sets()
  2.  
  3. --Variables
  4. petset = 1
  5. selfset = 1
  6.  
  7. -- Idle Sets
  8. sets.idle = {}
  9.  
  10. sets.idle.standard = {main="Owleyes", sub="Genbu's Shield", range="Filiae Bell",
  11. head="Wivre Hairpin", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
  12. body="Geomancy Tunic", hands="Bagua Mitaines", lring="Dark Ring", rring="Dark Ring",
  13. back="Cheviot Cape", waist="Fucho-no-Obi", legs="Nares Trews", feet="Geomancy Sandals"}
  14.  
  15. sets.idle.pet = {main="Owleyes", sub="Genbu's Shield", range="Filiae Bell",
  16. head="Wivre Hairpin", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
  17. body="Geomancy Tunic", hands="Geomancy Mitaines", lring="Dark Ring", rring="Dark Ring",
  18. back="Cheviot Cape", waist="Fucho-no-Obi", legs="Nares Trews", feet="Bagua Sandals"}
  19.  
  20. sets.idle.petDT = {main="Earth Staff", sub="Mephitis Grip", range="Filiae Bell",
  21. head="Nahtirah Hat", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
  22. body="Geomancy Tunic", hands="Geomancy Mitaines", lring="Dark Ring", rring="Dark Ring",
  23. back="Cheviot Cape", waist="Fucho-no-Obi", legs="Theurgist's Slacks", feet="Bagua Sandals"}
  24.  
  25. sets.idle.DT = {main="Earth Staff", sub="Mephitis Grip", range="Filiae Bell",
  26. head="Nahtirah Hat", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
  27. body="Geomancy Tunic", hands="Bagua Mitaines", lring="Dark Ring", rring="Dark Ring",
  28. back="Cheviot Cape", waist="Fucho-no-Obi", legs="Theurgist's Slacks", feet="Umbani Boots"}
  29.  
  30. sets.idle.hMP = {main="Chatoyant Staff", sub="Mephitis Grip", ammo="Clarus Stone",
  31. head="Wivre Hairpin", neck="Eidolon Pendant", rear="Loquac. Earring", lear="Gifted Earring",
  32. body="Geomancy Tunic", hands="Bagua Mitaines", lring="Dark Ring", rring="Dark Ring",
  33. back="Cheviot Cape", waist="Austerity Belt", legs="Nares Trews", feet="Chelona Boots"}
  34.  
  35. -- Precast Sets
  36. sets.precast = {}
  37.  
  38. sets.precast.FC = {head="Nahtirah Hat", neck="Jeweled Collar", rear="Loquac. Earring",
  39. body="Anhur Robe", hands="Repartie Gloves",
  40. back="Lifestream Cape", waist="Witful Belt", legs="Geomancy Pants", feet="Chelona Boots"}
  41.  
  42. sets.precast.FC.Geomancy = {range="Filiae Bell",
  43. head="Nahtirah Hat", neck="Jeweled Collar", rear="Loquac. Earring",
  44. body="Anhur Robe", hands="Repartie Gloves",
  45. back="Lifestream Cape", waist="Witful Belt", legs="Geomancy Pants", feet="Chelona Boots"}
  46.  
  47. sets.precast.FC.Elemental = {head="Nahtirah Hat", neck="Jeweled Collar", rear="Loquac. Earring",
  48. body="Anhur Robe", hands="Bagua Mitaines",
  49. back="Lifestream Cape", waist="Witful Belt", legs="Geomancy Pants", feet="Chelona Boots"}
  50.  
  51. sets.precast.Enhancing = {head="Nahtirah Hat", neck="Jeweled Collar", rear="Loquac. Earring",
  52. body="Anhur Robe", hands="Repartie Gloves",
  53. back="Lifestream Cape", waist="Siegel Sash", legs="Geomancy Pants", feet="Chelona Boots"}
  54.  
  55. sets.precast.Cure = {head="Nahtirah Hat", neck="Jeweled Collar", rear="Loquac. Earring",
  56. body="Heka's Kalasiris", hands="Repartie Gloves",
  57. back="Lifestream Cape", waist="Siegel Sash", legs="Geomancy Pants", feet="Chelona Boots"}
  58.  
  59. -- Midcast Sets
  60. sets.midcast = {}
  61.  
  62. sets.midcast.Elemental = {main="Twebuliij", sub="Mephitis Grip", ammo="Erlene's Notebook",
  63. head="Nahtirah Hat", neck="Eddy Necklace", rear="Novio Earring", lear="Friomisi Earring",
  64. body="Bokwus Robe", hands="Yaoyotl Gloves", rring="Strendu Ring", lring="Acumen Ring",
  65. back="Toro Cape", waist="Maniacus Sash", legs="Hagondes Pants", feet="Umbani Boots"}
  66.  
  67. sets.midcast.Indi = {range="Filiae Bell",
  68. head="Nares Cap", neck="Jeweled Collar", rear="Loquac. Earring", lear="Gifted Earring",
  69. body="Bagua Tunic", hands="Geomancy Mitaines",
  70. back="Lifestream Cape", waist="Austerity Belt", legs="Bagua Pants", feet="Umbani Boots"}
  71.  
  72. sets.midcast.Geo = {range="Filiae Bell",
  73. head="Nares Cap", neck="Jeweled Collar", rear="Loquac. Earring", lear="Gifted Earring",
  74. body="Bagua Tunic", hands="Geomancy Mitaines",
  75. back="Lifestream Cape", waist="Austerity Belt", legs="Theurgist's Slacks", feet="Umbani Boots"}
  76.  
  77. sets.midcast.Cure = {main="Arka IV",
  78. head="Nares Cap", neck="Colossus's Torque", rear="Lifestorm Earring", lear="Psystorm Earring",
  79. body="Heka's Kalasiris", hands="Ayao's Gages", rring="Sirona's Ring", lring="Ephedra Ring",
  80. back="Oretaina's Cape", waist="Cascade Belt", legs="Nares Trews", feet="Rubeus Boots"}
  81.  
  82. sets.midcast.Enfeeble = {main="Twebuliij", sub="Mephitis Grip",
  83. head="Bagua Galero", neck="Weike Torque", rear="Lifestorm Earring", lear="Psystorm Earring",
  84. body="Hagondes Coat", hands="Ayao's Gages", rring="Sangoma Ring", lring="Balrahn's Ring",
  85. back="Lifestream Cape", waist="Demonry Sash", legs="Theurgist's Slacks", feet="Hagondes Sabots"}
  86.  
  87. sets.midcast.Dark = {main="Twebuliij", sub="Mephitis Grip",
  88. head="Bagua Galero", neck="Eddy Necklace", rear="Lifestorm Earring", lear="Psystorm Earring",
  89. body="Geomancy Tunic", hands="Hagondes Cuffs", rring="Sangoma Ring", lring="Balrahn's Ring",
  90. back="Refraction Cape", waist="Fucho-no-Obi", legs="Theurgist's Slacks", feet="Hagondes Sabots"}
  91.  
  92. sets.midcast.Recast = {head="Nahtirah Hat", neck="Jeweled Collar",rear="Loquac. Earring",
  93. body="Anhur Robe", hands="Repartie Gloves",
  94. back="Lifestream Cape", waist="Witful Belt", legs="Geomancy Pants", feet="Chelona Boots"}
  95.  
  96. sets.midcast.Stoneskin = {neck="Colossus's Torque",
  97. body="Heka's Kalasiris", hands="Ayao's Gages", rring="Aquasoul Ring",
  98. back="Merciful Cape", waist="Siegel Sash", legs="Haven Hose", feet="Rubeus Boots"}
  99.  
  100. sets.midcast.Enhancing = {neck="Colossus's Torque",
  101. body="Anhur Robe", hands="Ayao's Gages",
  102. back="Merciful Cape", waist="Cascade Belt", feet="Rubeus Boots"}
  103.  
  104. --JA Sets
  105.  
  106. sets.precast.JA = {}
  107. sets.precast.JA['Life Cycle'] = {body="Geomancy Tunic"}
  108. sets.precast.JA['Radial Arcana'] = {feet="Bagua Sandals"}
  109. sets.precast.JA['Mending Halation'] = {legs="Bagua Pants"}
  110. sets.precast.JA['Bolster'] = {body="Bagua Tunic"}
  111.  
  112. --Extra Sets
  113. sets.Obi = {}
  114. sets.Obi.Fire = {waist='Karin Obi',back='Twilight Cape'}
  115. sets.Obi.Earth = {waist='Dorin Obi',back='Twilight Cape'}
  116. sets.Obi.Water = {waist='Suirin Obi',back='Twilight Cape'}
  117. sets.Obi.Wind = {waist='Furin Obi',back='Twilight Cape'}
  118. sets.Obi.Ice = {waist='Hyorin Obi',back='Twilight Cape'}
  119. sets.Obi.Thunder = {waist='Rairin Obi',back='Twilight Cape'}
  120. sets.Obi.Light = {waist='Korin Obi',back='Twilight Cape'}
  121. sets.Obi.Dark = {waist='Anrin Obi',back='Twilight Cape'}
  122. end
  123.  
  124. function precast(spell)
  125. if spell.action_type == 'Magic' then
  126. if spell.skill == 'Geomancy' then
  127. equip(sets.precast.FC.geomancy)
  128.  
  129. elseif spell.skill == 'HealingMagic' then
  130. if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
  131. equip(sets.precast.Cure)
  132. else
  133. equip(sets.precast.FC)
  134. end
  135.  
  136. elseif spell.skill == 'ElementalMagic' and spell.cast_time < 3 then
  137. equip(sets.midcast.Elemental)
  138.  
  139. elseif spell.skill == 'ElementalMagic' and spell.cast_time > 3 then
  140. equip(sets.precast.FC.Elemental)
  141.  
  142. elseif spell.skill == 'EnhancingMagic' then
  143. equip(sets.precast.FC.Enhancing)
  144. else
  145. equip(sets.precast.FC)
  146. end
  147. elseif spell.type == 'JobAbility' then
  148. if sets.precast.JA[spell.english] then equip(sets.precast.JA[spell.english]) end
  149. end
  150. end
  151.  
  152. function midcast(spell)
  153. if spell.action_type == 'Magic' then
  154. if spell.skill == 'Geomancy' then
  155. if string.find(spell.english,'Indi-') then
  156. equip(sets.midcast.Indi)
  157. elseif string.find(spell.english,'Geo-') then
  158. equip(sets.midcast.Geo)
  159. end
  160.  
  161. elseif spell.skill == 'HealingMagic' then
  162. if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
  163. equip(sets.midcast.Cure)
  164. else
  165. equip(sets.midcast.Recast)
  166. end
  167.  
  168. elseif spell.skill == 'ElementalMagic' then
  169. equip(sets.midcast.Elemental)
  170. if spell.element == world.weather_element or spell_element == world.day_element then
  171. equip(sets.Obi[spell.element])
  172. end
  173.  
  174. elseif spell.skill == 'EnfeeblingMagic' then
  175. equip(sets.midcast.Enfeeble)
  176.  
  177. elseif spell.skill == 'EnhancingMagic' then
  178. if string.find(spell.english,'Phalanx') then
  179. equip(sets.midcast.Enhancing)
  180. else
  181. equip(sets.midcast.recast)
  182. end
  183. end
  184. end
  185. end
  186.  
  187. function aftercast(spell)
  188. if pet.isvalid then
  189. if petset == 1 then
  190. equip(sets.idle.pet)
  191. elseif petset == 2 then
  192. equip(sets.idle.petDT)
  193. end
  194. else
  195. if selfset == 1 then
  196. equip(sets.idle.standard)
  197. elseif selfset == 2 then
  198. equip(sets.idle.DT)
  199. end
  200. end
  201. end
  202.  
  203. function self_command(command)
  204. if command == 'toggle pet set' then
  205. petset = petset +1
  206. if petset > 2 then
  207. petset = 1
  208. send_command('@input /echo ----- Standard Pet Set -----')
  209. equip(sets.idle.pet)
  210. elseif petset == 2 then
  211. send_command('@input /echo ----- Hybrid Pet Set -----')
  212. equip(sets.idle.petDT)
  213. end
  214. end
  215. if command == 'toggle self set' then
  216. selfset = selfset +1
  217. if selfset > 2 then
  218. selfset = 1
  219. send_command('@input /echo ----- Standard Idle -----')
  220. equip(sets.idle.standard)
  221. elseif selfset == 2 then
  222. send_command('@input /echo ----- DT Idle -----')
  223. equip(sets.idle.DT)
  224. end
  225. end
  226. end
  227.  
  228. function status_change(new,tab)
  229. if new == 'Resting' then
  230. equip(sets.idle.hMP)
  231. else
  232. if pet.isvalid then
  233. if petset == 1 then
  234. equip(sets.idle.pet)
  235. elseif petset == 2 then
  236. equip(sets.idle.petDT)
  237. end
  238. else
  239. if selfset == 1 then
  240. equip(sets.idle.standard)
  241. elseif selfset == 2 then
  242. equip(sets.idle.DT)
  243. end
  244. end
  245. end
  246. end
Advertisement
Add Comment
Please, Sign In to add comment