Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.98 KB | None | 0 0
  1. function get_sets()
  2. state = {}
  3. show_swaps()
  4. sets.None = {}
  5. sets.Idle = {main="Terra's Staff",sub="Oneiros Grip",
  6.  
  7. range="Killer Shortbow",
  8. head="Vitivation Chapeau +1",neck="Twilight
  9.  
  10. Torque",ear1="Sanare Earring",ear2="Ethereal Earring",
  11. body="Hagondes Coat +1",hands="Serpentes
  12.  
  13. Cuffs",ring1="Lava's Ring",ring2="Kusha's Ring",
  14. back="Cheviot Cape",waist="Flume Belt",legs="Blood
  15.  
  16. Cuisses",feet="Serpentes Sabots"}
  17.  
  18. sets.TP = {}
  19. sets.TP.Final = {main="Buramenk'ah",sub="Beatific
  20.  
  21. shield +1", ammo="Cheruski Needle",
  22. head="Espial Cap",neck="Asperity
  23.  
  24. Necklace",ear1="Suppanomimi",ear2="Brutal Earring",
  25. body="Espial gambison",hands="Espial
  26.  
  27. bracers",ring1="Rajas Ring",ring2="Beeline Ring",
  28. back="Bleating mantle",waist="Ninurta's
  29.  
  30. Sash",legs="Espial Hose",feet="Espial socks"}
  31. sets.precast = {}
  32. sets.precast.FC = {
  33. head="Atrophy Chapeau
  34.  
  35. +1",neck="Orunmila's Torque",ear1="Estq. Earring",ear2="Loquac. Earring",
  36. body="Vitivation Tabard
  37.  
  38. +1",hands="Gendewitha Gages", ring1="Weatherspoon Ring",
  39. waist="Ninurta's Sash",
  40.  
  41. feet="Augur's Gaiters"}
  42. sets.midcast = {}
  43. sets.midcast.Nuking = {main="Venabulum",sub="Mephitis Grip",
  44.  
  45. head="Hagondes Hat",neck="Eddy
  46.  
  47. Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
  48.  
  49. body="Hagondes Coat +1",hands="Yaoyotl
  50.  
  51. Gloves",ring1="Acumen Ring",ring2="Strendu Ring",
  52.  
  53. back="Toro Cape",waist="Othila Sash",legs="Hagondes
  54.  
  55. Pants",feet="Umbani Boots"}
  56. sets.midcast.Enfeebling = {main="Lehbrailg +2",sub="Mephitis
  57.  
  58. Grip",ammo="Kalboron Stone",
  59. head="Vitivation Chapeau +1",neck="Weike Torque",ear1="Lifestorm Earring",ear2="Psystorm
  60.  
  61. Earring",
  62. body="Hagondes
  63.  
  64. Coat",hands="Lurid Mitts",ring2="Sangoma Ring",ring2="Perception Ring",
  65. back="Refraction Cape",waist="Demonry Sash",legs="Portent Pants",feet="Vitivation Boots +1"}
  66. sets.midcast.Enhancing = {head="Umuthi Hat",
  67. neck="Colossus's
  68.  
  69. Torque", ear1="Andoaa Earring",
  70.  
  71. body="Vitivation Tabard +1", hands="Atrophy Gloves +1",
  72.  
  73. back="Estoqueur's Cape",waist="Olympus
  74.  
  75. Sash",legs="Shedir seraweels",feet="Estq. Houseaux +2"}
  76. sets.midcast.Composure
  77.  
  78. = set_combine(sets.midcast.Enhancing,
  79. {head="Estq. Chappel
  80.  
  81. +2",
  82. body="Estq. Sayon +2",
  83. legs="Estqr. Fuseau
  84.  
  85. +2",feet="Estq. Houseaux +2"})
  86.  
  87. sets.midcast.Refresh.self = {legs="Estqr. Fuseau +2",back="Grapevine Cape"}
  88. sets.midcast.Refresh = {legs="Estqr. Fuseau +2"}
  89. sets.midcast.proshell = {ring1="Sheltered Ring"}
  90. sets.midcast.Dark = {main="Lehbrailg +2",sub="Mephitis
  91.  
  92. Grip",ammo="Kalboron Stone",
  93. head="Atrophy Chapeau
  94.  
  95. +1",neck="Eddy Necklace",ear1="Lifestorm Earring",ear2="Psystorm Earring",
  96. body="Hagondes
  97.  
  98. Coat",hands="Yaoyotl Gloves",ring1="Sangoma Ring",ring2="Perception Ring",
  99. back="Refraction
  100.  
  101. Cape",waist="Demonry Sash",legs="Portent Pants",feet="Augur's Gaiters"}
  102. sets.midcast.Stoneskin = set_combine(sets.midcast.Enhancing,
  103. {neck="Stone
  104.  
  105. Gorget", ear1="Earthcry Earring", hands="Stone mufflers",
  106. waist="Siegel
  107.  
  108. Sash"})
  109.  
  110. sets.midcast.Cure = {head="Gendewitha Caubeen +1",neck="Phalaina
  111.  
  112. Locket",ear1="Roundel Earring",ear2="Loquac. Earring",
  113. body="Gendewitha Bliaut
  114.  
  115. +1",hands="Serpentes Cuffs",ring1="Perception Ring",
  116. back="Tempered
  117.  
  118. Cape",waist="Ninurta's Sash",legs="Atrophy Tights +1",feet="Serpentes Sabots"}
  119. --Job Ability Sets--
  120. sets.JA = {}
  121. sets.precast.JA['Chainspell'] = {body="Vitivation Tabard +1"}
  122. sets.precast.JA['Saboteur'] = {hands="Estq. Ganthrt. +2"}
  123. end
  124. function precast(spell)
  125. if buffactive['sleep'] or buffactive['petrification'] or
  126. buffactive['stun'] or buffactive['terror'] or
  127. buffactive['charm'] then
  128. cancel_spell()
  129. add_to_chat(158,'== Status Prevents Actions! ==')
  130. end
  131. if spell.action_type == 'JobAbility' then
  132. if buffactive['amnesia'] then
  133. cancel_spell()
  134. add_to_chat(158,'== Amnesia! Unable to use job abilities! ==')
  135. end
  136. end
  137. if spell.action_type == 'Magic' then
  138. equip(sets.precast.FC)
  139. if buffactive['silence'] then
  140. cancel_spell()
  141. add_to_chat(158,'== Silenced! Unable to cast spells! ==')
  142. end
  143. end
  144. end
  145. function midcast(spell,act)
  146. if T{'Cure','Cure II','Cure III',
  147. 'Cure IV','Curaga','Curaga II'}:
  148. contains(spell.english) then
  149. equip(sets.midcast.Cure)
  150. end
  151. if spell.skill == 'Enfeebling Magic' then
  152. equip(sets.midcast.Enfeebling)
  153. if T{'Dia','Dia II','Dia III','Diaga'}:contains(spell.english) then
  154. equip({waist="Chaac Belt"})
  155. end
  156. end
  157. if spell.skill == 'Enhancing Magic' then
  158. equip(sets.midcast.Enhancing)
  159. if spell.english == 'Stoneskin' then
  160. equip(sets.midcast.Stoneskin)
  161. send_command('@cancel Stoneskin')
  162. end
  163. if buffactive.composure then
  164. equip(sets.midcast.Composure)
  165. end
  166. end
  167. if T{'Refresh','Refresh II'}:
  168. contains(spell.english) then
  169. equip(sets.midcast.Refresh.self)
  170. end
  171. if T{'Protect','Protect II','Protect III','Protect IV','Protect V',
  172.  
  173. 'Shell','Shell II','Shell III','Shell IV','Shell V'}: contains(spell.english) then equip
  174.  
  175. (sets.midcast.proshell)
  176. end
  177. end
  178. if spell.skill == 'Elemental Magic' then
  179. equip(sets.midcast.Nuking)
  180. end
  181. if spell.skill == 'Dark Magic' then
  182. equip(sets.midcast.Dark)
  183. return
  184. end
  185. function aftercast(spell)
  186. if player.status == 'Engaged' then
  187. equip(sets.TP.Final)
  188. else
  189. equip(sets.Idle)
  190. end
  191. end
  192. function status_change(new,old)
  193. if new == 'Engaged' then
  194. equip(sets.TP.Final)
  195. else
  196. equip(sets.Idle)
  197. end
  198. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement