SHOW:
|
|
- or go back to the newest paste.
| 1 | function get_sets() --Contains all set declarations | |
| 2 | -- Index Declarations | |
| 3 | Idle_Index = 1 | |
| 4 | ||
| 5 | -- Idle sets | |
| 6 | Idle_Set_Names = {'normal','speed'}
| |
| 7 | sets.idle = {}
| |
| 8 | sets.idle.normal = {
| |
| 9 | head="geo. galero +1",neck="twilight torque",ear1="sanare earring",ear2="moonshade earring", | |
| 10 | body="geo. tunic +1",hands="bagua mitaines",ring1="sheltered ring",ring2="paguroidea ring", | |
| 11 | back="repulse mantle",waist="fucho-no-obi",legs="geo. pants +1",feet="bagua sandals"} | |
| 12 | ||
| 13 | sets.idle.speed = {
| |
| 14 | head="geo. galero +1",neck="twilight torque",ear1="sanare earring",ear2="moonshade earring", | |
| 15 | body="geo. tunic +1",hands="bagua mitaines",ring1="sheltered ring",ring2="paguroidea ring", | |
| 16 | back="repulse mantle",waist="fucho-no-obi",legs="geo. pants +1",feet="geo. sandals +1"} | |
| 17 | ||
| 18 | -- TP sets | |
| 19 | sets.tp = {}
| |
| 20 | sets.tp.normal = {
| |
| 21 | head="geo. galero +1",neck="twilight torque",ear1="sanare earring",ear2="moonshade earring", | |
| 22 | body="geo. tunic +1",hands="geo. mitaines +1",ring1="sheltered ring",ring2="paguroidea ring", | |
| 23 | back="repulse mantle",waist="witful belt",legs="geo. pants +1",feet="geo. sandals +1"} | |
| 24 | ||
| 25 | -- WS sets | |
| 26 | sets.WS = {}
| |
| 27 | sets.WS.Shattersoul = {
| |
| 28 | head="geo. galero +1",neck="twilight torque",ear1="sanare earring",ear2="moonshade earring", | |
| 29 | body="geo. tunic +1",hands="geo. mitaines +1",ring1="sheltered ring",ring2="paguroidea ring", | |
| 30 | back="repulse mantle",waist="witful belt",legs="geo. pants +1",feet="geo. sandals +1"} | |
| 31 | ||
| 32 | sets.WS.Realmrazer = {
| |
| 33 | head="geo. galero +1",neck="twilight torque",ear1="sanare earring",ear2="moonshade earring", | |
| 34 | body="geo. tunic +1",hands="geo. mitaines +1",ring1="sheltered ring",ring2="paguroidea ring", | |
| 35 | back="repulse mantle",waist="witful belt",legs="geo. pants +1",feet="geo. sandals +1"} | |
| 36 | ||
| 37 | -- precast sets | |
| 38 | sets.precast = {}
| |
| 39 | -- JA precast sets | |
| 40 | sets.precast.JA = {}
| |
| 41 | ||
| 42 | sets.precast.JA['Full Circle'] = {
| |
| 43 | hands="Bagua Mitaines" | |
| 44 | } | |
| 45 | sets.precast.JA.Bolster = {
| |
| 46 | body="Bagua Tunic" | |
| 47 | } | |
| 48 | sets.precast.JA['Life Cycle'] = {
| |
| 49 | body="Geo. Tunic +1" | |
| 50 | } | |
| 51 | sets.precast.JA['Mending Halation'] = {
| |
| 52 | legs="Bagua Pants" | |
| 53 | } | |
| 54 | sets.precast.JA['Radial Arcana'] = {
| |
| 55 | feet="Bagua Sandals" | |
| 56 | } | |
| 57 | --Placeholders in case new JSE is introduced | |
| 58 | sets.precast.JA['Lasting Emanation'] = {}
| |
| 59 | sets.precast.JA['Ecliptic Attrition'] = {}
| |
| 60 | sets.precast.JA['Collimated Fervor'] = {}
| |
| 61 | sets.precast.JA['Blaze of Glory'] = {}
| |
| 62 | sets.precast.JA.Dematerialize = {}
| |
| 63 | sets.precast.JA['Theurgic Focus'] = {}
| |
| 64 | sets.precast.JA['Concentric Pulse'] = {}
| |
| 65 | sets.precast.JA['Widened Compass'] = {}
| |
| 66 | ||
| 67 | -- MA precast sets | |
| 68 | sets.precast.MA = {}
| |
| 69 | ||
| 70 | sets.precast.MA.geo = {
| |
| 71 | head="artsieq hat",neck="twilight torque",ear1="gwati earring",ear2="moonshade earring", | |
| 72 | body="bagua tunic",hands="geo. mitaines +1",ring1="prolix ring",ring2="sangoma ring", | |
| 73 | back="lifestream cape",waist="bougonia rope",legs="geo. pants +1",feet="umbani boots" | |
| 74 | } | |
| 75 | ||
| 76 | sets.precast.MA.indi = {
| |
| 77 | head="artsieq hat",neck="twilight torque",ear1="gwati earring",ear2="moonshade earring", | |
| 78 | body="bagua tunic",hands="geo. mitaines +1",ring1="prolix ring",ring2="sangoma ring", | |
| 79 | back="lifestream cape",waist="bougonia rope",legs="bagua pants",feet="umbani boots" | |
| 80 | } | |
| 81 | ||
| 82 | sets.precast.MA.nuke = {
| |
| 83 | head="Geo. Galero +1",neck="eddy necklace",ear1="lifestorm earring",ear2="psystorm earring", | |
| 84 | body="vanir cotehardie",hands="yaoyotl gloves",ring1="strendu ring",ring2="sangoma ring", | |
| 85 | back="gwyddion's cape",waist="sekhmet corset",legs="geo. Pants +1",feet="umbani boots" | |
| 86 | } | |
| 87 | -- Fastcast | |
| 88 | sets.precast.MA.nukefc = {
| |
| 89 | head="Nahtirah Hat",neck="eddy necklace",ear1="lifestorm earring",ear2="psystorm earring", | |
| 90 | body="vanir cotehardie",hands="lagua gloves",ring1="prolix ring",ring2="sangoma ring", | |
| 91 | back="lifestream cape",waist="bougonia rope",legs="geo. Pants +1",feet="umbani boots" | |
| 92 | } | |
| 93 | ||
| 94 | sets.precast.MA.utsu = {
| |
| 95 | head="Nahtirah Hat",neck="twilight torque",ear1="lifestorm earring",ear2="psystorm earring", | |
| 96 | body="vanir cotehardie",hands="lagua gloves",ring1="prolix ring",ring2="sangoma ring", | |
| 97 | back="lifestream cape",waist="witful belt",legs="geo. Pants +1",feet="umbani boots" | |
| 98 | } | |
| 99 | ||
| 100 | sets.precast.MA.enfeeblingmacc = {}
| |
| 101 | ||
| 102 | sets.precast.MA['Impact'] = {
| |
| 103 | - | hea = "none", neck="eddy necklace",ear1="lifestorm earring",ear2="psystorm earring", |
| 103 | + | head= "none", neck="eddy necklace",ear1="lifestorm earring",ear2="psystorm earring", |
| 104 | body="twilight cloak",hands="yaoyotl gloves",ring1="prolix ring",ring2="strendu ring", | |
| 105 | back="gwyddion's cape",waist="witful belt",legs="artsieq hose",feet="umbani boots" | |
| 106 | } | |
| 107 | ||
| 108 | ||
| 109 | -- MA midcast sets | |
| 110 | sets.midcast = {}
| |
| 111 | sets.midcast.MA = {}
| |
| 112 | sets.midcast.MA.geo = {
| |
| 113 | head="artsieq hat",neck="twilight torque",ear1="gwati earring",ear2="moonshade earring", | |
| 114 | body="bagua tunic",hands="geo. mitaines +1",ring1="prolix ring",ring2="sangoma ring", | |
| 115 | back="lifestream cape",waist="bougonia rope",legs="Theurgist's Slacks",feet="umbani boots" | |
| 116 | } | |
| 117 | sets.midcast.MA.indi = {}
| |
| 118 | sets.midcast.MA.nuke = {
| |
| 119 | head="Geo. Galero +1",neck="eddy necklace",ear1="lifestorm earring",ear2="psystorm earring", | |
| 120 | body="vanir cotehardie",hands="yaoyotl gloves",ring1="strendu ring",ring2="sangoma ring", | |
| 121 | back="gwyddion's cape",waist="sekhmet corset",legs="artsieq hose",feet="umbani boots" | |
| 122 | } | |
| 123 | sets.midcast.MA.dark = {
| |
| 124 | head="bagua Galero",neck="eddy necklace",ear1="lifestorm earring",ear2="psystorm earring", | |
| 125 | body="vanir cotehardie",hands="yaoyotl gloves",ring1="strendu ring",ring2="sangoma ring", | |
| 126 | back="gwyddion's cape",waist="fucho-no-obi",legs="artsieq hose",feet="umbani boots" | |
| 127 | } | |
| 128 | sets.midcast.MA.enfeeblingmacc = {}
| |
| 129 | ||
| 130 | sets.midcast.MA.cure = {
| |
| 131 | head="Nahtirah Hat",neck="twilight torque",ear1="lifestorm earring",ear2="psystorm earring", | |
| 132 | body="heka's kalasiris",hands="bokwus gloves",ring1="prolix ring",ring2="sangoma ring", | |
| 133 | back="lifestream cape",waist="witful belt",legs="geo. Pants +1",feet="umbani boots" | |
| 134 | } | |
| 135 | ||
| 136 | sets.midcast.MA['Impact'] = {}
| |
| 137 | ||
| 138 | -- Aftercast sets | |
| 139 | sets.aftercast = {}
| |
| 140 | -- MA aftercast sets | |
| 141 | sets.aftercast.MA = {}
| |
| 142 | sets.aftercast.MA.geo = {
| |
| 143 | head="geo. galero +1",neck="twilight torque",ear1="sanare earring",ear2="moonshade earring", | |
| 144 | body="geo. tunic +1",hands="geo. mitaines +1",ring1="sheltered ring",ring2="paguroidea ring", | |
| 145 | back="repulse mantle",waist="fucho-no-obi",legs="geo. pants +1",feet="bagua sandals"} | |
| 146 | ||
| 147 | end | |
| 148 | ||
| 149 | function precast(spell) | |
| 150 | if spell.skill == 'Geomancy' and string.find(spell.english, 'Geo-') then equip(sets.precast.MA.geo) | |
| 151 | elseif spell.skill == 'Geomancy' and string.find(spell.english, 'Indi-') then equip(sets.precast.MA.indi) | |
| 152 | elseif spell.skill == 'Elemental Magic' and string.find(spell.english, 'Impact') then equip(sets.precast.MA['Impact']) | |
| 153 | elseif spell.skill == 'Elemental Magic' and spell.cast_time < 3 then equip(sets.midcast.MA.nuke) | |
| 154 | elseif spell.skill == 'Elemental Magic' then equip(sets.precast.MA.nukefc) | |
| 155 | elseif spell.skill == 'Dark Magic' then equip(sets.midcast.MA.dark) | |
| 156 | elseif spell.skill == 'Ninjutsu' and string.find(spell.english, 'Utsusemi:') then equip(sets.precast.MA.utsu) | |
| 157 | elseif sets.precast.JA[spell.english] then equip(sets.precast.JA[spell.english]) | |
| 158 | elseif sets.precast.MA[spell.english] then equip(sets.precast.MA[spell.english]) | |
| 159 | elseif sets.WS[spell.english] then equip(sets.WS[spell.english]) | |
| 160 | end | |
| 161 | end | |
| 162 | ||
| 163 | function midcast(spell) | |
| 164 | if spell.skill == 'Geomancy' and string.find(spell.english, 'Geo-') then equip(sets.midcast.MA.geo) | |
| 165 | elseif spell.skill == 'Geomancy' and string.find(spell.english, 'Indi-') then equip(sets.midcast.MA.indi) | |
| 166 | elseif spell.skill == 'Elemental Magic' and string.find(spell.english, 'Impact') then equip(sets.midcast.MA['Impact']) | |
| 167 | elseif spell.skill == 'Elemental Magic' then equip(sets.midcast.MA.nuke) | |
| 168 | elseif spell.skill == 'Dark Magic' then equip(sets.midcast.MA.dark) | |
| 169 | elseif spell.skill == 'Healing Magic' and string.find(spell.english, 'Cur') then equip(sets.midcast.MA.cure) | |
| 170 | elseif sets.midcast.MA[spell.english] then equip(sets.midcast.MA[spell.english]) | |
| 171 | end | |
| 172 | end | |
| 173 | ||
| 174 | -- Aftercast set dependant on whether or not luopan is out | |
| 175 | function aftercast(spell) | |
| 176 | if player.status == 'Engaged' then | |
| 177 | if spell.skill == 'Geomancy' and string.find(spell.english, 'Geo-') then equip(sets.aftercast.MA.geo) | |
| 178 | elseif spell.english == 'Full Circle' then equip(sets.tp.normal) | |
| 179 | elseif pet.isvalid then equip(sets.aftercast.MA.geo) | |
| 180 | else equip(sets.tp.normal) | |
| 181 | end | |
| 182 | elseif spell.skill == 'Geomancy' and string.find(spell.english, 'Geo-') then equip(sets.aftercast.MA.geo) | |
| 183 | elseif spell.english == 'Full Circle' then equip(sets.idle.speed) | |
| 184 | elseif pet.isvalid then equip(sets.aftercast.MA.geo) | |
| 185 | else equip(sets.idle.speed) | |
| 186 | end | |
| 187 | end | |
| 188 | ||
| 189 | function status_change(new,old) | |
| 190 | if T{'Idle','Resting'}:contains(new) then
| |
| 191 | if pet.isvalid then equip(sets.aftercast.MA.geo) | |
| 192 | else equip(sets.idle.normal) | |
| 193 | end | |
| 194 | elseif new == 'Engaged' then | |
| 195 | if pet.isvalid then equip(sets.aftercast.MA.geo) | |
| 196 | else equip(sets.tp.normal) | |
| 197 | end | |
| 198 | end | |
| 199 | end | |
| 200 | ||
| 201 | ||
| 202 | function self_command(command) | |
| 203 | if command == 'toggle idle' then | |
| 204 | Idle_Index = Idle_Index +1 | |
| 205 | if Idle_Index > #Idle_Set_Names then Idle_Index = 1 end | |
| 206 | send_command('@input /echo ----- Idle Set changed to '..Idle_Set_Names[Idle_Index]..' -----')
| |
| 207 | equip(sets.idle[Idle_Set_Names[Idle_Index]]) | |
| 208 | end | |
| 209 | end |