detlef11

rainhat_geo

Dec 2nd, 2015
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.82 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="Idris", sub="Genbu's Shield", range="Dunna",
  11. head="Spurrina Coif", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
  12. body="Geo. Tunic +1", hands="Bagua Mitaines +1", lring="Defending Ring", rring="Dark Ring",
  13. back="Umbra Cape", waist="Fucho-no-Obi", legs="Assid. Pants +1", feet="Geo. Sandals +1"}
  14.  
  15. sets.idle.pet = set_combine(sets.idle.standard, {lear="Rimeice Earring",rear="Handler's Earring +1",hands="Geo. Mitaines +1",back="Lifestream Cape",feet="Bagua Sandals +1"})
  16.  
  17. sets.idle.DT = {main="Idris", sub="Genbu's Shield", range="Dunna",
  18. head="Nahtirah Hat", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
  19. body="Geo. Tunic +1", hands="Bagua Mitaines +1", lring="Defending Ring", rring="Dark Ring",
  20. back="Umbra Cape", waist="Fucho-no-Obi", legs="Theurgist's Slacks", feet="Umbani Boots"}
  21.  
  22. sets.idle.petDT = set_combine(sets.idle.DT, {main="Idris", lear="Rimeice Earring",rear="Handler's Earring +1",hands="Geo. Mitaines +1",back="Lifestream Cape",feet="Bagua Sandals +1"})
  23.  
  24. sets.idle.hMP = {main="Chatoyant Staff", sub="Oneiros Grip", ammo="Clarus Stone",
  25. head="Wivre Hairpin", neck="Eidolon Pendant", rear="Loquac. Earring", lear="Gifted Earring",
  26. body="Geo. Tunic +1", hands="Bagua Mitaines +1", lring="Dark Ring", rring="Dark Ring",
  27. back="Umbra Cape", waist="Austerity Belt +1", legs="Assid. Pants +1", feet="Chelona Boots"}
  28.  
  29. -- Precast Sets
  30. sets.precast = {}
  31.  
  32. sets.precast.FC = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
  33. head="Nahtirah Hat", neck="Orunmila's Torque",lear="Enchntr. Earring +1",rear="Loquac. Earring",
  34. body="Anhur Robe", hands="Otomi Gloves",lring="Weather. Ring",rring="Prolix Ring",
  35. back="Lifestream Cape", waist="Witful Belt", legs="Geo. Pants +1",feet="Regal Pumps +1"}
  36.  
  37. sets.precast.FC.Geomancy = {main="Marin Staff +1",sub="Vivid Strap",range="Dunna",
  38. head="Nahtirah Hat", neck="Orunmila's Torque",lear="Enchntr. Earring +1",rear="Loquac. Earring",
  39. body="Anhur Robe", hands="Otomi Gloves",lring="Weather. Ring",rring="Prolix Ring",
  40. back="Lifestream Cape", waist="Witful Belt", legs="Geo. Pants +1",feet="Regal Pumps +1"}
  41.  
  42. sets.precast.FC.Elemental = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
  43. head="Nahtirah Hat", neck="Orunmila's Torque",lear="Enchntr. Earring +1",rear="Loquac. Earring",
  44. body="Anhur Robe", hands="Bagua Mitaines +1",lring="Weather. Ring",rring="Prolix Ring",
  45. back="Lifestream Cape", waist="Witful Belt", legs="Geo. Pants +1",feet="Regal Pumps +1"}
  46.  
  47. sets.precast.FC.Enhancing = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
  48. head="Umuthi Hat", neck="Orunmila's Torque",lear="Enchntr. Earring +1",rear="Loquac. Earring",
  49. body="Anhur Robe", hands="Otomi Gloves",lring="Weather. Ring",rring="Prolix Ring",
  50. back="Lifestream Cape", waist="Siegel Sash", legs="Geo. Pants +1",feet="Regal Pumps +1"}
  51.  
  52. sets.precast.Cure = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
  53. head="Nahtirah Hat", neck="Orunmila's Torque",lear="Enchntr. Earring +1",rear="Loquac. Earring",
  54. body="Heka's Kalasiris", hands="Otomi Gloves",lring="Weather. Ring",rring="Prolix Ring",
  55. back="Lifestream Cape", waist="Siegel Sash", legs="Geo. Pants +1",feet="Regal Pumps +1"}
  56.  
  57. sets.precast.IFC = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
  58. head=none,neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Loquacious Earring",
  59. body="Twilight Cloak",hands="Gende. Gages +1",ring1="Prolix Ring",ring2="Defending Ring",
  60. back="Swith Cape +1",waist="Witful Belt",legs="Psycloth Lappas",feet="Regal Pumps +1"}
  61.  
  62. -- Midcast Sets
  63. sets.midcast = {}
  64.  
  65. sets.midcast.Elemental = {main="Solstice",sub="Culminus",ammo="Ghastly Tathlum +1",
  66. head="Helios Band",neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
  67. body="Seidr Cotehardie",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
  68. back="Toro Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
  69.  
  70. sets.midcast.Indi = {main="Idris", sub="Genbu's Shield", range="Dunna",
  71. head="Azimuth Hood +1", neck="Incanter's Torque", rear="Gwati Earring", lear="Gifted Earring",
  72. body="Bagua Tunic +1", hands="Geo. Mitaines +1",lring="Defending Ring",rring="Dark Ring",
  73. back="Lifestream Cape",waist="Austerity Belt +1",legs="Bagua Pants +1",feet="Azimuth Gaiters +1"}
  74.  
  75. sets.midcast.Geo = {main="Idris", sub="Genbu's Shield", range="Dunna",
  76. head="Azimuth Hood +1", neck="Incanter's Torque", rear="Gwati Earring", lear="Gifted Earring",
  77. body="Bagua Tunic +1", hands="Geo. Mitaines +1",lring="Defending Ring",rring="Dark Ring",
  78. back="Lifestream Cape",waist="Austerity Belt +1",legs="Azimuth Tights +1",feet="Azimuth Gaiters +1"}
  79.  
  80. sets.midcast.Cure = {main="Tamaxchi",sub="Genbu's Shield",ammo="Incantor Stone",
  81. head="Nahtirah Hat",neck="Incanter's Torque",ear1="Enchntr. Earring +1",ear2="Loquacious Earring",
  82. body="Vrikodara Jupon",hands="Telchine Gloves",ring1="Haoma's Ring",ring2="Sirona's Ring",
  83. back="Twilight Cape",waist="Bishop's Sash",legs="Nares Trews",feet="Regal Pumps +1"}
  84.  
  85. sets.midcast.Impact = {main="Marin Staff +1",sub="Zuuxowu Grip",ammo="Ghastly Tathlum +1",
  86. head=none,neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
  87. body="Twilight Cloak",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
  88. back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
  89.  
  90. sets.midcast.Enfeeble = {main="Idris", sub="Genbu's Shield", range="Aureole",
  91. head="Befouled Crown",neck="Incanter's Torque",ear1="Enchntr. Earring +1",ear2="Gwati Earring",
  92. body="Shango Robe",hands="Azimuth Gloves +1",ring1="Perception Ring",ring2="Sangoma Ring",
  93. back="Refraction Cape",waist="Ovate Rope",legs="Psycloth Lappas",feet="Uk'uxkaj Boots"}
  94.  
  95. sets.midcast.Dark = {main="Twebuliij", sub="Mephitis Grip", ammo="Kalboron Stone",
  96. head="Bagua Galero +1", neck="Incanter's Torque", rear="Lifestorm Earring", lear="Psystorm Earring",
  97. body="Shango Robe", hands="Otomi Gloves", rring="Sangoma Ring", lring="Weather. Ring",
  98. back="Refraction Cape", waist="Fucho-no-Obi", legs="Theurgist's Slacks", feet="Hagondes Sabots"}
  99.  
  100. sets.midcast.impact = {main="Idris", sub="Genbu's Shield", ammo="Ghastly Tathlum +1",
  101. head=none,neck="Incanter's Torque",ear1="Crematio Earring",ear2="Friomisi Earring",
  102. body="Twilight Cloak",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
  103. back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
  104.  
  105. sets.midcast.Recast = {head="Nahtirah Hat", neck="Orunmila's Torque",rear="Loquac. Earring",
  106. body="Shango Robe", hands="Otomi Gloves", lring="Weather. Ring",
  107. back="Lifestream Cape", waist="Witful Belt", legs="Geo. Pants +1", feet="Chelona Boots"}
  108.  
  109. sets.midcast.Stun = {main="Marin Staff +1",sub="Arbuda Grip",range="Aureole",
  110. head="Nahtirah Hat",neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Loq. Earring",
  111. body="Shango Robe",hands="Azimuth Gloves +1",ring1="Weather. Ring",ring2="Prolix Ring",
  112. back="Swith Cape +1",waist="Ninurta's Sash",legs="Geo. Pants +1",feet="Regal Pumps +1"}
  113.  
  114. sets.midcast.Stoneskin = {
  115. head="Umuthi Hat",neck="Stone Gorget",
  116. waist="Siegel Sash",legs="Haven Hose"}
  117.  
  118. sets.midcast.Enhancing = {main="Kirin's Pole",sub="Fulcio Grip",
  119. head="Umuthi Hat",neck="Incanter's Torque",ear2="Andoaa Earring",
  120. body="Telchine Chasuble",hands="Telchine Gloves",
  121. back="Merciful Cape",waist="Olympus Sash", feet="Regal Pumps +1"}
  122.  
  123. --JA Sets
  124.  
  125. sets.precast.JA = {}
  126. sets.precast.JA['Full Circle'] = {body="Geo. Sandals +1"}
  127. sets.precast.JA['Life Cycle'] = {body="Geo. Tunic +1"}
  128. sets.precast.JA['Radial Arcana'] = {feet="Bagua Sandals +1"}
  129. sets.precast.JA['Mending Halation'] = {legs="Bagua Pants +1"}
  130. sets.precast.JA['Bolster'] = {body="Bagua Tunic +1"}
  131.  
  132. --Engaged Sets
  133. sets.engaged = {}
  134.  
  135. sets.engaged.standard = {head="Nahtirah Hat", neck="Asperity Necklace", rear="Steelflash Earring", lear="Bladeborn Earring",
  136. body="Geo. Tunic +1", hands="Geo. Mitaines +1", rring="Mars's Ring", lring="Patricius Ring",
  137. back="Rancorous Mantle", waist="Cetl Belt", legs="Theurgist's Slacks", feet="Umbani Boots"}
  138.  
  139. --WS Sets
  140. sets.WS = {}
  141.  
  142. sets.WS.other = {head="Nahtirah Hat", neck="Asperity Necklace", rear="Steelflash Earring", lear="Bladeborn Earring",
  143. body="Geo. Tunic +1", hands="Geo. Mitaines +1", rring="Mars's Ring", lring="Patricius Ring",
  144. back="Rancorous Mantle", waist="Cetl Belt", legs="Theurgist's Slacks", feet="Umbani Boots"}
  145.  
  146. sets.WS["Flash Nova"] = {head="Nahtirah Hat", neck="Eddy Necklace", rear="Friomisi Earring", lear="Crematio Earring",
  147. body="Shango Robe", hands="Yaoyotl Gloves", rring="Shiva Ring +1", lring="Strendu Ring",
  148. back="Toro Cape", waist="Sekhmet Corset", legs="Hagondes Pants", feet="Umbani Boots"}
  149.  
  150. --Extra Sets
  151. sets.Obi = {}
  152. sets.Obi.Fire = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  153. sets.Obi.Earth = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  154. sets.Obi.Water = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  155. sets.Obi.Wind = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  156. sets.Obi.Ice = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  157. sets.Obi.Lightning = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  158. sets.Obi.Light = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  159. sets.Obi.Dark = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  160. end
  161.  
  162. function precast(spell)
  163. if spell.action_type == 'Magic' and spell.type ~= "Trust" then
  164. if spell.skill == 'Geomancy' then
  165. equip(sets.precast.FC.geomancy)
  166.  
  167. elseif spell.skill == 'Healing Magic' then
  168. if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
  169. equip(sets.precast.Cure)
  170. else
  171. equip(sets.precast.FC)
  172. end
  173.  
  174. elseif spell.skill == 'Elemental Magic' and spell.cast_time < 3 then
  175. equip(sets.midcast.Elemental)
  176.  
  177. elseif spell.english == "Impact" then
  178. equip(sets.precast.IFC)
  179.  
  180. elseif spell.skill == 'Elemental Magic' and spell.cast_time > 3 then
  181. equip(sets.precast.FC.Elemental)
  182.  
  183. elseif spell.skill == 'Enhancing Magic' then
  184. equip(sets.precast.FC.Enhancing)
  185.  
  186. else
  187. equip(sets.precast.FC)
  188. end
  189.  
  190. elseif spell.type == 'JobAbility' then
  191. if sets.precast.JA[spell.english] then
  192. equip(sets.precast.JA[spell.english])
  193. end
  194.  
  195. elseif spell.type == 'WeaponSkill' then
  196. if sets.WS[spell.english]then
  197. equip(sets.WS[spell.english])
  198. elseif spell.english == "Cataclysm" then
  199. equip(sets.WS["Flash Nova"])
  200. else
  201. equip(sets.WS.other)
  202. end
  203. end
  204. end
  205.  
  206. function midcast(spell)
  207. if spell.action_type == 'Magic' then
  208.  
  209. if spell.skill == 'Geomancy' then
  210. if string.find(spell.english,'Indi-') then
  211. equip(sets.midcast.Indi)
  212. elseif string.find(spell.english,'Geo-') then
  213. equip(sets.midcast.Geo)
  214. end
  215.  
  216. elseif spell.skill == 'Healing Magic' then
  217. if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
  218. equip(sets.midcast.Cure)
  219. else
  220. equip(sets.midcast.Recast)
  221. end
  222.  
  223. elseif spell.skill == 'Elemental Magic' then
  224. equip(sets.midcast.Elemental)
  225. if spell.element == world.weather_element or spell.element == world.day_element then
  226. equip(sets.Obi[spell.element])
  227.  
  228. elseif spell.english == 'Impact' then
  229. equip(sets.midcast.impact)
  230. end
  231.  
  232.  
  233.  
  234. elseif spell.skill == 'Enfeebling Magic' then
  235. equip(sets.midcast.Enfeeble)
  236.  
  237. elseif spell.skill == 'Enhancing Magic' then
  238. if spell.english == "Phalanx" then
  239. equip(sets.midcast.Enhancing)
  240. elseif string.find(spell.english,'Stoneskin') then
  241. send_command('@wait 1.5;input //cancel Stoneskin*')
  242. equip(sets.midcast.Stoneskin)
  243. elseif string.find(spell.english,'Regen') then
  244. equip(sets.midcast.recast, {main="Bolelabunga"})
  245. else
  246. equip(sets.midcast.recast)
  247. end
  248.  
  249. elseif spell.skill == 'Dark Magic' then
  250. if spell.english == "Stun" then
  251. equip(sets.midcast.Stun)
  252. else
  253. equip(sets.midcast.Dark)
  254. end
  255.  
  256. elseif spell.skill == 'Ninjutsu' then
  257. if spell.english =='Utsusemi:Ni' then
  258. equip(sets.midcast.recast)
  259. elseif spell.english == 'Utsusemi: Ichi' then
  260. send_command('@wait 1.0;input //cancel Copy Image*')
  261. equip(sets.midcast.recast)
  262. end
  263. end
  264. end
  265. end
  266.  
  267. function aftercast(spell)
  268. if string.find(spell.english,'Geo-') then
  269. if player.status == "Engaged" then
  270. equip(sets.engaged.standard, {main="Idris", sub="Genbu's Shield", lear="Rimeice Earring",rear="Handler's Earring +1",hands="Geo. Mitaines +1",back="Lifestream Cape",feet="Bagua Sandals +1"})
  271. else
  272. if petset == 1 then
  273. equip(sets.idle.pet)
  274. elseif petset == 2 then
  275. equip(sets.idle.petDT)
  276. end
  277. end
  278. else
  279. if player.status == "Engaged" then
  280. if pet.isvalid then
  281. equip(sets.engaged.standard, {main="Idris", sub="Genbu's Shield", lear="Rimeice Earring",rear="Handler's Earring +1",hands="Geo. Mitaines +1",back="Lifestream Cape",feet="Bagua Sandals +1"})
  282. else
  283. equip(sets.engaged.standard)
  284. end
  285. elseif player.status == "Idle" then
  286. if pet.isvalid then
  287. if petset == 1 then
  288. equip(sets.idle.pet)
  289. elseif petset == 2 then
  290. equip(sets.idle.petDT)
  291. end
  292. else
  293. if selfset == 1 then
  294. equip(sets.idle.standard)
  295. elseif selfset == 2 then
  296. equip(sets.idle.DT)
  297. end
  298. end
  299. end
  300. end
  301. end
  302.  
  303. function self_command(command)
  304. if command == 'toggle pet set' then
  305. petset = petset +1
  306. if petset > 2 then
  307. petset = 1
  308. send_command('@input /echo ----- Standard Pet Set -----')
  309. equip(sets.idle.pet)
  310. elseif petset == 2 then
  311. send_command('@input /echo ----- Hybrid Pet Set -----')
  312. equip(sets.idle.petDT)
  313. end
  314. end
  315. if command == 'toggle self set' then
  316. selfset = selfset +1
  317. if selfset > 2 then
  318. selfset = 1
  319. send_command('@input /echo ----- Standard Idle -----')
  320. equip(sets.idle.standard)
  321. elseif selfset == 2 then
  322. send_command('@input /echo ----- DT Idle -----')
  323. equip(sets.idle.DT)
  324. end
  325. end
  326. end
  327.  
  328. function status_change(new,tab)
  329. if new == 'Resting' then
  330. equip(sets.idle.hMP)
  331. elseif new == "Idle" then
  332. if pet.isvalid then
  333. if petset == 1 then
  334. equip(sets.idle.pet)
  335. elseif petset == 2 then
  336. equip(sets.idle.petDT)
  337. end
  338. else
  339. if selfset == 1 then
  340. equip(sets.idle.standard)
  341. elseif selfset == 2 then
  342. equip(sets.idle.DT)
  343. end
  344. end
  345. elseif new == "Engaged" then
  346. if pet.isvalid then
  347. equip(sets.engaged.standard, {main="Idris", sub="Genbu's Shield", lear="Rimeice Earring",rear="Handler's Earring +1",hands="Geo. Mitaines +1",back="Lifestream Cape",feet="Bagua Sandals +1"})
  348. else
  349. equip(sets.engaged.standard)
  350. end
  351. end
  352. end
Advertisement
Add Comment
Please, Sign In to add comment