Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- state = {}
- show_swaps()
- sets.None = {}
- sets.Idle = {main="Terra's Staff",sub="Oneiros Grip",
- range="Killer Shortbow", head="Vitivation Chapeau +1",neck="Twilight Torque",ear1="Sanare
- Earring",ear2="Ethereal Earring", body="Hagondes Coat +1",hands="Serpentes
- Cuffs",ring1="Lava's Ring",ring2="Kusha's Ring", back="Cheviot Cape",waist="Flume
- Belt",legs="Blood Cuisses",feet="Serpentes Sabots"}
- sets.TP = {}
- sets.TP.Final = {main="Buramenk'ah",sub="Beatific
- shield +1", ammo="Cheruski Needle", head="Espial Cap",neck="Asperity
- Necklace",ear1="Suppanomimi",ear2="Brutal Earring", body="Espial gambison",hands="Espial
- bracers",ring1="Rajas Ring",ring2="Beeline Ring", back="Bleating mantle",waist="Ninurta's
- Sash",legs="Espial Hose",feet="Espial socks"}
- sets.precast = {}
- sets.precast.FC = {head="Atrophy Chapeau +1",neck="Orunmila's
- Torque",ear1="Estq. Earring",ear2="Loquac. Earring", body="Vitivation Tabard
- +1",hands="Gendewitha Gages", ring1="Weatherspoon Ring", waist="Ninurta's Sash", feet="Augur's
- Gaiters"}
- sets.midcast = {}
- sets.midcast.Nuking = {main="Venabulum",sub="Mephitis Grip", head="Hagondes
- Hat",neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring", body="Hagondes
- Coat +1",hands="Yaoyotl Gloves",ring1="Acumen Ring",ring2="Strendu Ring", back="Toro
- Cape",waist="Othila Sash",legs="Hagondes Pants",feet="Umbani Boots"}
- sets.midcast.Enfeebling = {main="Lehbrailg +2",sub="Mephitis
- Grip",ammo="Kalboron Stone", head="Vitivation Chapeau +1",neck="Weike Torque",ear1="Lifestorm
- Earring",ear2="Psystorm Earring", body="Hagondes Coat",hands="Lurid Mitts",ring2="Sangoma
- Ring",ring2="Perception Ring", back="Refraction Cape",waist="Demonry Sash",legs="Portent
- Pants",feet="Vitivation Boots +1"}
- sets.midcast.Enhancing = {head="Umuthi Hat", neck="Colossus's
- Torque", ear1="Andoaa Earring", body="Vitivation Tabard +1", hands="Atrophy Gloves +1",
- back="Estoqueur's Cape",waist="Olympus Sash",legs="Shedir seraweels",feet="Estq. Houseaux +2"}
- sets.midcast.Composure
- = set_combine(sets.midcast.Enhancing, {head="Estq. Chappel body="Estq. Sayon +2",
- legs="Estqr. Fuseau +2",feet="Estq. Houseaux +2"})
- sets.midcast.Refresh.self = {legs="Estqr. Fuseau +2",back="Grapevine Cape"}
- sets.midcast.Refresh = {legs="Estqr. Fuseau +2"}
- sets.midcast.proshell = {ring1="Sheltered Ring"}
- sets.midcast.Dark = {main="Lehbrailg +2",sub="Mephitis
- Grip",ammo="Kalboron Stone", head="Atrophy Chapeau +1",neck="Eddy Necklace",ear1="Lifestorm
- Earring",ear2="Psystorm Earring", body="Hagondes Coat",hands="Yaoyotl Gloves",ring1="Sangoma
- Ring",ring2="Perception Ring", back="Refraction Cape",waist="Demonry Sash",legs="Portent
- Pants",feet="Augur's Gaiters"}
- sets.midcast.Stoneskin = set_combine(sets.midcast.Enhancing,
- {neck="Stone Gorget", ear1="Earthcry Earring", hands="Stone mufflers", waist="Siegel Sash"})
- sets.midcast.Cure = {head="Gendewitha Caubeen +1",neck="Phalaina
- Locket",ear1="Roundel Earring",ear2="Loquac. Earring", body="Gendewitha Bliaut
- +1",hands="Serpentes Cuffs",ring1="Perception Ring", back="Tempered Cape",waist="Ninurta's
- Sash",legs="Atrophy Tights +1",feet="Serpentes Sabots"}
- --Job Ability Sets--
- sets.JA = {}
- sets.precast.JA['Chainspell'] = {body="Vitivation Tabard +1"}
- sets.precast.JA['Saboteur'] = {hands="Estq. Ganthrt. +2"}
- end
- function precast(spell)
- if buffactive['sleep'] or buffactive['petrification'] or
- buffactive['stun'] or buffactive['terror'] or
- buffactive['charm'] then
- cancel_spell()
- add_to_chat(158,'== Status Prevents Actions! ==')
- end
- if spell.action_type == 'JobAbility' then
- if buffactive['amnesia'] then
- cancel_spell()
- add_to_chat(158,'== Amnesia! Unable to use job abilities! ==')
- end
- end
- if spell.action_type == 'Magic' then
- equip(sets.precast.FC)
- if buffactive['silence'] then
- cancel_spell()
- add_to_chat(158,'== Silenced! Unable to cast spells! ==')
- end
- end
- end
- function midcast(spell,act)
- if T{'Cure','Cure II','Cure III',
- 'Cure IV','Curaga','Curaga II'}:
- contains(spell.english) then
- equip(sets.midcast.Cure)
- end
- if spell.skill == 'Enfeebling Magic' then
- equip(sets.midcast.Enfeebling)
- if T{'Dia','Dia II','Dia III','Diaga'}:contains(spell.english) then
- equip({waist="Chaac Belt"})
- end
- end
- if spell.skill == 'Enhancing Magic' then
- equip(sets.midcast.Enhancing)
- if spell.english == 'Stoneskin' then
- equip(sets.midcast.Stoneskin)
- send_command('@cancel Stoneskin')
- end
- if buffactive.composure then
- equip(sets.midcast.Composure)
- end
- end
- if T{'Refresh','Refresh II'}:
- contains(spell.english) then
- equip(sets.midcast.Refresh.self)
- end
- if T{'Protect','Protect II','Protect III','Protect IV','Protect V',
- 'Shell','Shell II','Shell III','Shell IV','Shell V'}: contains(spell.english) then equip
- (sets.midcast.proshell)
- end
- end
- if spell.skill == 'Elemental Magic' then
- equip(sets.midcast.Nuking)
- end
- if spell.skill == 'Dark Magic' then
- equip(sets.midcast.Dark)
- return
- end
- function aftercast(spell)
- if player.status == 'Engaged' then
- equip(sets.TP.Final)
- else
- equip(sets.Idle)
- end
- end
- function status_change(new,old)
- if new == 'Engaged' then
- equip(sets.TP.Final)
- else
- equip(sets.Idle)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement