Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- TP_Index = 1
- Idle_Index = 1
- Weapon_Index = 1
- sets.JA = {}
- sets.JA.Sekkanoki = {hands="Unkai Kote +2"}
- sets.JA.Seigan = {head="Unkai Kabuto +2"}
- sets.JA.Meditate = {head="Myochin Kabuto", hands="Sao. Kote +2"}
- sets.JA.Hasso = {legs="Unkai Haidate +2"}
- sets.JA.Sengikori = {feet="Unkai Sune-Ate +2"}
- sets.JA['Warding Circle'] = {head="Myochin Kabuto"}
- sets.WS = {}
- sets.WS.Masamune = {}
- sets.WS.Tsurumaru = {}
- sets.WS.Masamune["Tachi: Fudo"] = {ammo="Thew Bomblet",head="Otomi Helm",neck="Justiciar's Torque",ear1="Moonshade Earring",ear2="Brutal Earring",
- body="Phorcys Korazin",hands="Miki. Gauntlets",ring1="Rajas Ring",ring2="Pyrosoul Ring",
- back="Takaha Mantle",waist="Prosilio Belt",legs="Miki. Cuisses",feet="Mikinaak Greaves"}
- sets.WS.Tsurumaru["Tachi: Fudo"] = set_combine(sets.WS.Masamune['Tachi: Fudo'],{back="Buquwik Cape"})
- sets.WS.Masamune["Tachi: Shoha"] = {ammo="Cheruski Needle",head="Otomi Helm",neck="Ganesha's Mala",ear1="Moonshade Earring",ear2="Brutal Earring",
- body="Phorcys Korazin",hands="Miki. Gauntlets",ring1="Rajas Ring",ring2="Pyrosoul Ring",
- back="Buquwik Cape",waist="Prosilio Belt",legs="Otronif Brais",feet="Ejekamal Boots"}
- sets.WS.Tsurumaru["Tachi: Shoha"] = (sets.WS.Masamune["Tachi: Shoha"])
- sets.WS.General = (sets.WS.Masamune["Tachi Fudo"])
- TP_Set_Names = {"Attack","Accuracy","Ionis","Hybrid"}
- sets.TP = {}
- sets.TP.Masamune = {}
- sets.TP.Tsurumaru = {}
- sets.TP.Masamune['Attack'] = {ammo="Hagneia Stone",head="Otomi Helm",neck="Ganesha's Mala",
- ear1="Bladeborn Earring",ear2="Steelflash Earring",body="Unkai Domaru +2",hands="Otronif Gloves",
- ring1="Rajas Ring",ring2="K'ayres Ring",back="Atheling Mantle",waist="Cetl Belt",
- legs="Unkai Haidate +2",feet="Otronif Boots"}
- sets.TP.Tsurumaru['Attack'] = (sets.TP.Masamune['Attack'])
- sets.TP.Masamune['Accuracy'] = {ammo="Hagneia Stone",head="Yaoyotl Helm",neck="Ganesha's Mala",
- ear1="Bladeborn Earring",ear2="Steelflash Earring",body="Unkai Domaru +2",hands="Otronif Gloves",
- ring1="Rajas Ring",ring2="K'ayres Ring",back="Takaha Mantle",waist="Dynamic Belt +1",
- legs="Unkai Haidate +2",feet="Whirlpool Greaves"}
- sets.TP.Tsurumaru['Accuracy'] = (sets.TP.Masamune['Accuracy'])
- sets.TP.Masamune['Ionis'] = (sets.TP.Masamune['Attack'])
- sets.TP.Tsurumaru['Ionis'] = set_combine(sets.TP.Masamune['Attack'],{back="Misuuchi Kappa"})
- sets.TP.Masamune['Hybrid'] = {ammo="Hagneia Stone",head="Yaoyotl Helm",neck="Twilight Torque",
- ear1="Bladeborn Earring",ear2="Steelflash Earring",body="Otronif Harness",hands="Otronif Gloves",
- ring1="Dark Ring",ring2="Defending Ring",back="Mollusca Mantle",waist="Goading Belt",
- legs="Unkai Haidate +2",feet="Otronif Boots"}
- sets.TP.Tsurumaru['Hybrid'] = (sets.TP.Masamune['Hybrid'])
- Idle_Set_Names = {'Normal','MDT','PDT'}
- sets.Idle = {}
- sets.Idle.Normal = {ammo="Iron Gobbet",head="Twilight Helm",neck="Twilight Torque",ear1="Merman's Earring",ear2="Merman's Earring",
- body="Twilight Mail",hands="Otronif Gloves",ring1="Dark Ring",ring2="Defending Ring",
- back="Shadow Mantle",waist="Cetl Belt",legs="Ogier's Breeches",feet="Danzo Sune-Ate"}
- sets.Idle.MDT = set_combine(sets.Idle.Normal,{head="Ogier's Helm",body="Nocturnus Mail",ring1="Shadow Ring",back="Engulfer Cape",feet="Ogier's Leggings"})
- sets.Idle.PDT = set_combine(sets.Idle.Normal,{head="Nocturnus Helm",body="Mekira Meikogai",feet="Phorcys Schuhs"})
- end
- function precast(spell,action)
- verify_equip()
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- elseif spell.type=="WeaponSkill" then
- if player.equipment.main == 'Masamune' then
- equip(sets.WS.Masamune[spell.english])
- elseif player.equipment.main == 'Tsurumaru' then
- equip(sets.WS.Tsurumaru[spell.english])
- else equip(sets.WS.General) end
- end
- end
- function midcast(spell,action)
- end
- function aftercast(spell,action)
- if player.status=='Engaged' then
- if player.equipment.main == 'Masamune' then
- equip(sets.TP.Masamune[TP_Set_Names[TP_Index]])
- elseif player.equipment.main == 'Tsurumaru' then
- equip(sets.TP.Tsurumaru[TP_Set_Names[TP_Index]])
- end
- else
- equip(sets.Idle[Idle_Set_Names[Idle_Index]])
- end
- end
- function status_change(new,old)
- if T{'Idle','Resting'}:contains(new) then
- equip(sets.Idle[Idle_Set_Names[Idle_Index]])
- elseif new == 'Engaged' then
- if player.equipment.main == 'Masamune' then
- equip(sets.TP.Masamune[TP_Set_Names[TP_Index]])
- elseif player.equipment.main == 'Tsurumaru' then
- equip(sets.TP.Tsurumaru[TP_Set_Names[TP_Index]])
- end
- end
- end
- function buff_change(buff,gain_or_loss)
- end
- function self_command(command)
- if command == 'toggle TP set' then
- TP_Index = TP_Index +1
- if TP_Index > #TP_Set_Names then TP_Index = 1 end
- send_command('@input /echo ----- TP Set changed to '..TP_Set_Names[TP_Index]..' -----')
- equip(sets.TP[TP_Set_Names[TP_Index]])
- elseif command == 'toggle Idle set' then
- Idle_Index = Idle_Index +1
- if Idle_Index > #Idle_Set_Names then Idle_Index = 1 end
- send_command('@input /echo ----- Idle Set changed to '..Idle_Set_Names[Idle_Index]..' -----')
- equip(sets.Idle[Idle_Set_Names[Idle_Index]])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment