Advertisement
Guest User

Untitled

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