Guest User

Kensagaku_GEO.lua

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