Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include('organizer-lib')
- -- petpdt set with F7, garland of bliss set, myrkr set, auto-echo
- beforecall = 0
- silence = 0
- sumskill = 417 + 16 + 99
- PetName = S{"Garuda", "Carbuncle", "Diabolos", "Fenrir", "Caith Sith", "Leviathan", "Ifrit", "Titan", "Shiva"}
- SpiritName = S{'Fire Spirit', 'Earth Spirit', 'Water Spirit', 'Air Spirit', 'Ice Spirit', 'Thunder Spirit', 'Light Spirit', 'Dark Spirit'}
- SpecialAvatar = S{"Alexander", "Odin"}
- -- a finir
- Storm = {['Firestorm']='Fire',['Windstorm']='Air', ['Sandstorm']='Earth', ['Voidstorm']='Dark', ['Aurorastorm']='Light', ['Hailstorm']='Ice',['Rainstorm']='Water',['Thunderstorm']='Thunder'}
- StormList = {'Firestorm','Windstorm', 'Sandstorm', 'Voidstorm', 'Aurorastorm', 'Hailstorm','Rainstorm','Thunderstorm'}
- AvatarElement = {["Garuda"] = "Wind", ["Carbuncle"]="Light", ["Diabolos"]="Dark", ["Fenrir"]="Dark", ["Caith Sith"]="Light", ["Leviathan"]="Water", ["Ifrit"]="Fire", ["Titan"]="Earth", ["Shiva"]="Ice", ["Ramuh"]="Thunder"}
- spirit_element = {['Fire']='Fire Spirit', ['Earth']='Earth Spirit', ['Water']='Water Spirit', ['Wind']='Air Spirit', ['Ice']='Ice Spirit', ['Lightning']='Thunder Spirit', ['Light']='Light Spirit', ['Dark']='Dark Spirit'}
- spirit_conflict = {['Fire']='Ice', ['Earth']='Lightning', ['Water']='Fire', ['Wind']='Earth', ['Ice']='Wind', ['Lightning']='Water', ['Light']='Dark', ['Dark']='Light'}
- bp_physical = {['Regal Scratch']=true, ['Punch']=true, ['Rock Throw']=true, ['Barracuda Dive']=true, ['Claw']=true, ['Axe Kick']=true, ['Shock Strike']=true, ['Camisado']=true, ['Poison Nails']=true, ['Moonlit Charge']=true, ['Crescent Fang']=true, ['Rock Buster']=true, ['Tail Whip']=true, ['Double Punch']=true, ['Megalith Throw']=true, ['Double Slap']=true, ['Eclipse Bite']=true, ['Mountain Buster']=true, ['Spinning Dive']=true, ['Predator Claws']=true, ['Rush']=true, ['Chaotic Strike']=true}
- bp_hybrid = {['Burning Strike']=true, ['Flaming Crush']=true}
- bp_magic = {['Inferno']=true, ['Earthen Fury']=true, ['Tidal Wave']=true, ['Aerial Blast']=true, ['Diamond Dust']=true, ['Judgment Bolt']=true, ['Searing Light']=true, ['Howling Moon']=true, ['Ruinous Omen']=true, ['Zantetsuken']=true, ['Somnolence']=true, ['Nether Blast']=true}
- bp_magic_tp = {['Meteor Strike']=true, ['Geocrush']=true, ['Grand Fall']=true, ['Wind Blade']=true, ['Heavenly Strike']=true, ['Thunderstorm']=true, ['Fire II']=true, ['Stone II']=true, ['Water II']=true, ['Aero II']=true, ['Blizzard II']=true, ['Thunder II']=true, ['Fire IV']=true, ['Stone IV']=true, ['Water IV']=true, ['Aero IV']=true, ['Blizzard IV']=true, ['Thunder IV']=true, ['Thunderspark']=true, ['Meteorite']=true, ['Holy Mist']=true, ['Lunar Bay']=true, ['Night Terror']=true, ['Level ? Holy']=true, ['Conflag Strike']=true}
- bp_accuracy = {['Mewing Lullaby']=true, ['Eerie Eye']=true, ['Lunar Cry']=true, ['Nightmare']=true, ['Lunar Roar']=true, ['Slowga']=true, ['Ultimate Terror']=true, ['Sleepga']=true, ['Tidal Roar']=true, ['Diamond Storm']=true, ['Shock Squall']=true, ['Pavor Nocturnus']=true}
- -- Double table, for duration calculation
- bp_duration = {
- ['Glittering Ruby']=90,
- ['Shining Ruby']=180,
- ['Frost Armor']=90,
- ['Rolling Thunder']=60,
- ['Crimson Howl']=30,
- ['Lightning Armor']=90,
- ['Ecliptic Growl']=180,
- ['Hastega']=90,
- ['Noctoshield']=180,
- ['Ecliptic Howl']=180,
- ['Dream Shroud']=180,
- ['Earthen Armor']=60,
- ['Fleet Wind']=120,
- ['Heavenward Howl']=60}
- icons = {
- ['Earthen Armor'] = 'spells/00299.png', -- 00299 for Titan
- ['Shining Ruby'] = 'spells/00043.png', -- 00043 for Protect
- ['Dream Shroud'] = 'spells/00304.png', -- 00304 for Diabolos
- ['Noctoshield'] = 'spells/00106.png', -- 00106 for Phalanx
- ['Inferno Howl'] = 'spells/00298.png', -- 00298 for Ifrit
- ['Hastega'] = 'spells/00358.png', -- 00358 for Hastega
- ['Rolling Thunder'] = 'spells/00104.png', -- 00358 for Enthunder
- ['Frost Armor'] = 'spells/00250.png', -- 00250 for Ice Spikes
- ['Lightning Armor'] = 'spells/00251.png', -- 00251 for Shock Spikes
- ['Reraise II'] = 'spells/00135.png', -- 00135 for Reraise
- ['Fleet Wind'] = 'abilities/00074.png', --
- }
- bp_boon = {['Earthen Ward']=true, ['Aerial Armor']=true, ['Raise II']=true, ['Reraise II']=true, ['Healing Ruby']=true, ['Whispering Wind']=true, ['Spring Water']=true, ['Healing Ruby II']=true}
- bp_skill = {['Perfect Defense']=true, ['Inferno Howl']=true, ['Soothing Ruby']=true}
- MAB = S{"Stone", "Stone II", "Water", "Water II", "Aero", "Aero II", "Fire", "Fire II", "Thunder", "Thunder II", "Blizzard", "Blizzard II", "Geohelix", "Hydrohelix", "Anemohelix", "Pyrohelix", "Cryohelix", "Ionohelix", "Luminohelix", "Noctohelix"}
- ENF = S{"Sleepga", "Drain", "Aspir", "Dispel", "Sleep"}
- CUR = S{"Cure", "Cure II", "Cure III"}
- --- Hagondes Body differentiation
- HHndPerp = { name="Helios Gloves", augments={'"Avatar perpetuation cost"-4', 'Pet: Haste +6%', 'Pet: Accuracy +30','Pet: Rng.Acc +30'}}
- HFeetPerp = { name="Helios Boots", augments={'Pet: Haste +6%', 'Pet: Dbl. Atk +8', 'Pet: Attack +30', 'Pet: Rng. Atk +30'}}
- FcHd = { name ="Helios Band", augments={'Blood Pact Dmg. +3', 'Pet: "Dbl. Atk."+2'}}
- FcBod = { name="Helios Jacket", augments={'Blood Pact Dmg. +5', 'Pet: Crit. Hit Rate +2%', 'Pet: "Mag. Atk. Bns."+25'}}
- FcHnd = { name="Helios Gloves", augments={'Blood Pact Dmg. +5', 'Pet: Crit. Hit Rate +3%', 'Pet: "Mag. Atk. Bns."+28'}}
- FcLeg = { name="Helios Spats", augments={'Blood Pact Dmg. +5', 'Pet: "Dbl. Atk"+3', 'Pet: "Mag. Atk. Bns."+26'}}
- PhyHd = { name="Helios Band", augments={'Blood Pact Dmg. +4', 'Pet: Crit. Hit Rate +1%', 'Pet: Attack+27 Pet: Rng. Atk.+27'}}
- PhyLeg = { name="Helios Spats", augments={'Blood Pact Dmg. +7', 'Pet: Attack+8 Pet: Rng. Atk.+8'}}
- function get_sets()
- -- IDLE
- sets.idle = {
- head="Con. Horn +1",
- rear='Moonshade Earring',
- body='Con. Doublet +1',
- legs='Nares Trews',
- neck='Twilight Torque',
- main='Nirvana',
- hands='Serpentes cuffs',
- feet='Serpentes Sabots',
- waist='Fucho-no-obi',
- sub="Genbu's shield",
- ammo="Dosis Tathlum",
- back="Cheviot Cape"}
- -- Perp : -13/tick + refresh +5 from gears
- sets.perpetuation = {
- main='Nirvana',
- ammo='Seraphicaller',
- head="Glyphic Horn +1",
- neck="Caller's Pendant",
- lear='Moonshade Earring',
- rear='Andoaa Earring',
- body='Glyphic Doublet +1',
- hands='Regimen Mittens',
- rring="Evoker's Ring",
- lring='Fervor Ring',
- back='Samanisi Cape',
- waist='Moepapa Stone',
- legs="Con. Spats +1",
- feet="Con. Pigaches +1",
- sub="Vox Grip"}
- sets.favor = {
- main='Nirvana',
- ammo='Seraphicaller',
- head="Con. Horn +1",
- neck="Caller's Pendant",
- lear='Andoaa Earring',
- rear='Moonshade Earring',
- body='Hagondes Coat +1',
- hands='Glyphic Bracers +1',
- rring="Evoker's Ring",
- lring='Fervor Ring',
- back='Conveyance Cape',
- waist='Isa Belt',
- legs='Nares Trews',
- feet="Convoker's Pigaches"}
- sets.spirit = {
- main="Gridarvor",
- sub='Vox Grip',
- ammo='Seraphicaller',
- head="Con. Horn +1",
- neck="Caller's Pendant",
- lear='Andoaa Earring',
- rear='Moonshade Earring',
- body="Caller's Doublet +2",
- hands='Glyphic Bracers +1',
- lring='Fervor Ring',
- rring="Evoker's Ring",
- back='Conveyance Cape',
- waist='Cimmerian Sash',
- legs='Glyphic Spats',
- feet="Convoker's Pigaches +1"
- }
- sets.resting = {
- head="Con. Horn +1",
- rear='Moonshade Earring',
- body='Hagondes Coat +1',
- legs='Nares Trews',
- neck='Twilight Torque',
- main='Bolelabunga',
- hands='Serpentes cuffs',
- feet='Serpentes Sabots',
- waist='Fucho-no-obi'}
- sets.speed = {legs='Tatsu. Sitagoromo'}
- sets.ssp = {
- main='Nirvana',
- ammo='Seraphicaller',
- head="Con. Horn +1",
- neck="Caller's Pendant",
- lear='Andoaa Earring',
- rear='Moonshade Earring',
- body='Hagondes Coat +1',
- hands='Glyphic Bracers +1',
- rring="Evoker's Ring",
- lring='Fervor Ring',
- back='Conveyance Cape',
- waist='Isa Belt',
- legs='Nares Trews',
- feet="Desert Boots",
- sub="Vox Grip"}
- sets.ssi = {
- head="Con. Horn +1",
- rear='Moonshade Earring',
- body='Hagondes Coat +1',
- legs='Nares Trews',
- neck='Twilight Torque',
- main='Bolelabunga',
- hands='Serpentes cuffs',
- feet='Desert Boots',
- waist='Fucho-no-obi',
- sub="Genbu's shield",
- ammo="Dosis Tathlum",
- back="Cheviot Cape"}
- sets.precast = {}
- sets.precast.delay = {
- ammo='Seraphicaller',
- head='Con. Horn +1',
- lear="Caller's Earring",
- body='Gylphic Doublet +1',
- hands='Con. Bracers +1',
- back="Tiresias' Cape",
- feet='Glyph. Pigaches +1',
- legs='Glyphic Spats +1'}
- sets.precast.cede = {hands='Call. Bracers +2'}
- sets.precast.siphon = {
- main="Keraunos",
- sub="Vox Grip",
- head="Con. Horn +1",
- neck="Caller's Pendant",
- rear="Smn. Earring",
- lear="Andoaa earring",
- body="Caller's Doublet +2",
- hands="Glyptic Bracers +1",
- lring="Evoker's Ring",
- rring="Fervor Ring",
- back="Conveyance Cape",
- legs="Ngen Seraweels",
- feet="Caller's Pgch. +2"}
- sets.precast.FC = {
- head="Nahtirah Hat",
- neck="Orunmila's Torque",
- ear1="Loquacious Earring",
- body="Marduk's Jubbah",
- hands="Repartie Gloves",
- ring2="Prolix Ring",
- back="Swith Cape",
- waist="Witful belt",
- legs="Artsieq hose",
- feet="Chelona Boots",
- sub="Vivid Strap",
- main="Nirvana"}
- sets.precast.WS['Myrkr'] = {
- }
- sets.precast.WS['Garland of Bliss'] = {
- }
- sets.precast.cure = set_combine(sets.precast.FC, { legs="Nabu's Shalwar" })
- sets.midcast = {}
- sets.midcast.cure = {
- body=FcBod,
- head=PhyHd,
- hands="Bokwus Gloves",
- neck="Phalaina Locket",
- legs="Nabu's Shalwar",
- back="Pahtli Cape",
- main="Tamaxchi",
- sub="Genbu's shield"}
- sets.midcast.stoneskin = {
- neck='Stone Gorget',
- lear='Magnetic Earring',
- rear='Loquacious Earring',
- back='Swith Cape',
- waist='Siegel Sash',
- legs='Artsieq Hose',
- head="Umuthi Hat",
- hands="Gende. Gloves +1",
- body="Anhur Robe"}
- sets.midcast.regen = {
- head="Umuthi Hat",
- main="Bolelabunga",
- body="Anhur Robe",
- waist="Siegel Sash",
- back="Swith cape"}
- sets.midcast.Enf = {
- main="Nirvana",
- sub="Mephitis Grip",
- head="Buremte Hat",
- neck="Eddy Necklace",
- ear1="Hecate's Earring",
- ear2="Friomisi Earring",
- hands="Lurid Mitts",
- ring1="Perception Ring",
- ring2="Sangoma Ring",
- body="Artsieq Jubbah",
- back="Twilight Cape",
- waist="Fucho-no-obi",
- legs="Artsieq Hose",
- feet="Uk'uxkaj boots"}
- sets.midcast.Mab = {
- main="Eminent Staff",
- sub="Zuuxowu Grip",
- head="Buremte Hat",
- neck="Eddy Necklace",
- ear1="Hecate's Earring",ear2="Friomisi Earring",
- hands="Otomi Gloves",
- ring1="Icesoul Ring",
- ring2="Acumen Ring",
- body=HBodMAB,
- back="Toro Cape",
- waist="Sekhmet Corset",
- legs="Hagondes Pants",
- feet="Umbani Boots",
- }
- sets.pet_midcast = {}
- sets.pet_midcast.physical = {
- main="Nirvana",
- sub="Vox Grip",
- ammo="Seraphicaller",
- head=PhyHd,
- ear1="Esper Earring",
- ear2="Domes. Earring",
- body="Con. Doublet +1",
- hands="Spurrina Gages",
- ring1="Evoker's Ring",
- ring2="Fervor Ring",
- legs=PhyLeg,
- feet="Con. Pigaches +1",
- neck="Caller's Pendant",
- back="Samanisi Cape",
- waist="Mujin Obi"}
- sets.pet_midcast.magic = {
- main='Nirvana',
- sub='Vox Grip',
- ammo='Seraphicaller',
- head=FcHd,
- neck='Eidolon Pendant +1',
- lear='Esper Earring',
- rear='Andoaa Earring',
- body=FcBod,
- hands=FcHnd,
- lring="Evoker's Ring",
- rring="Fervor Ring",
- back='Samanisi Cape',
- waist="Caller's Sash",
- legs=FcLeg,
- feet='Hagondes Sabots'}
- sets.pet_midcast.magic.tp = {
- main='Nirvana',
- sub='Vox Grip',
- ammo='Seraphicaller',
- head=FcHd,
- neck='Eidolon Pendant',
- lear='Esper Earring',
- rear='Andoaa Earring',
- body=FcBod,
- hands=FcHnd,
- lring="Evoker's Ring",
- rring="Fervor Ring",
- back='Samanisi Cape',
- waist="Caller's Sash",
- legs=FcLeg,
- feet='Hagondes Sabots'}
- sets.pet_midcast.accuracy = {
- main='Nirvana',
- sub='Vox Grip',
- ammo='Seraphicaller',
- head='Hagondes Hat',
- neck='Eidolon Pendant',
- lear='Esper Earring',
- rear='Andoaa Earring',
- body="Con. Doublet +1",
- hands='Hagondes Cuffs',
- lring="Evoker's Ring",
- rring="Fervor Ring",
- back='Samanisi Cape',
- waist="Caller's Sash",
- legs="Caller's Spats +2",
- feet='Hagondes Sabots'}
- sets.pet_midcast.boon = {
- rear='Gifted Earring',
- waist="Jaq'ij Sash",
- legs="Caller's Spats +2"}
- sets.pet_midcast.skill = { --- TOTAL = 99
- main="Kirin's Pole", --12
- sub='Vox Grip', -- 3
- ammo='Seraphicaller', --
- head="Con. Horn +1", -- 15
- neck="Caller's Pendant", -- 9
- ear1='Smn. Earring', -- 3
- ear2="Andoaa Earring", -- 5
- body="Anhur Robe", --
- hands='Glyphic Bracers +1', -- 19
- lring="Evoker's Ring", -- 10
- rring="Fervor Ring", -- 4
- back='Conveyance Cape', --
- waist='Cimmerian Sash', -- 5
- legs="Adapa's Slacks +1", --14
- feet='Rubeus Boots'} --
- sets.pet_midcast.duration = {
- main="Kirin's Pole",
- sub='Vox Grip',
- ammo='Seraphicaller',
- head="Con. Horn +1",
- neck="Caller's Pendant",
- lear='Smn. Earring',
- rear='Andoaa Earring',
- body="Caller's Doublet +2",
- hands='Glyphic Bracers +1',
- lring='Fervor Ring',
- rring="Evoker's Ring",
- back='Conveyance Cape',
- waist='Cimmerian Sash',
- legs='Ngen Seraweels',
- feet='Nashira Crackows'}
- sets.pet_midcast.hybrid = {
- main='Nirvana',
- sub='Vox Grip',
- ammo=Seraphicaller,
- head=FcHd,
- neck='Eidolon Pendant +1',
- lear='Esper Earring',
- rear='Andoaa Earring',
- body=FcBod,
- hands=FcHnd,
- lring="Evoker's Ring",
- rring="Fervor Ring",
- back='Samanisi Cape',
- waist="Mujin Obi",
- legs=FcLeg,
- feet='Hagondes Sabots'}
- sets.perpetuation['Alexander'] = sets.pet_midcast.skill
- sets.perpetuation['Odin'] = sets.pet_midcast.magic
- end
- function buff_change(name, gain)
- if name == "Sandstorm" then
- if gain then
- equip({feet="Desert Boots"})
- else
- idle()
- end
- -- AUTOECHO
- elseif name == "Silence" then
- silence = 1
- else
- silence = 0
- end
- end
- function pet_change(pets, gain)
- beforecall = 1
- if pet.isvalid then
- --add_to_chat(204, '*-*-*-*-*-*-*-*-* [ '..pet.name..' - Called ] *-*-*-*-*-*-*-*-*')
- if pet.name then
- if pet.name:find('Spirit') then
- equip(sets.spirit)
- elseif pet.name == "Alexander" then
- equip(sets.pet_midcast.skill)
- elseif pet.name == "Odin" then
- equip(sets.pet_midcast.magic)
- else
- equip(sets.perpetuation[pet.name] or sets.perpetuation)
- end
- else
- equip(sets.perpetuation[pet.name] or sets.perpetuation)
- end
- else
- equip(sets.idle)
- end
- end
- function status_change(new, old)
- if pet.isvalid == false then
- elseif new == 'Idle' then
- idle()
- elseif new == 'Resting' then
- idle()
- end
- end
- function precast(spell)
- if pet.isvalid then
- if spell.type == 'BloodPactRage' or spell.type == 'BloodPactWard' then
- equip(sets.precast.delay)
- elseif spell.name == 'Elemental Siphon' then
- equip(sets.precast.siphon)
- elseif spell.name == 'Mana Cede' then
- equip(sets.precast.cede)
- elseif CUR:contains(spell.name) then
- equip(sets.precast.cure)
- elseif spell.action_type == 'Magic' then
- equip(sets.precast.FC)
- end
- elseif spell.action_type == 'Magic' then
- equip(sets.precast.FC)
- end
- if spell.name:find('Spirit') and beforecall == 1 then
- beforecall = 0
- b = 0
- -- A FINIR
- -- First : check storm, then check weather, then check day
- for i=1, 8 do
- elem = StormList[i]
- if buffactive[elem] then
- add_to_chat(204, '*-*-*-*-*-*-*-*-* [ '..elem..' active - '..Storm[elem]..' ] *-*-*-*-*-*-*-*-*')
- cancel_spell()
- send_command('input /ma "'..Storm[elem]..' Spirit" <me>')
- b=1
- end
- i=i+1
- end
- if b == 0 then
- if world.weather_element ~= "None" then
- cancel_spell()
- add_to_chat(204, '*-*-*-*-*-*-*-*-* [ '..world.weather_element..' weather ] *-*-*-*-*-*-*-*-*')
- windower.send_command('input /ma "%s" <me>':format(spirit_element[world.weather_element]))
- else
- cancel_spell()
- windower.send_command('input /ma "%s" <me>':format(spirit_element[world.day_element]))
- add_to_chat(204, '*-*-*-*-*-*-*-*-* [ '..world.day_element..' day ] *-*-*-*-*-*-*-*-*')
- end
- end
- elseif spell.name == 'Sneak' then
- windower.ffxi.cancel_buff(71)
- elseif spell.name == 'Stoneskin' then
- windower.ffxi.cancel_buff(37)
- end
- end
- function midcast(spell)
- if spell.type == 'BloodPactRage' or spell.type == 'BloodPactWard' then
- equip(sets.precast.delay)
- elseif spell.action_type == 'Magic' then
- if ENF:contains(spell.name) then
- equip(sets.midcast.Enf)
- elseif spell.name =='Stoneskin' then
- equip(sets.midcast.stoneskin)
- elseif CUR:contains(spell.name) then
- equip(sets.midcast.cure)
- elseif MAB:contains(spell.name) then
- equip(sets.midcast.Mab)
- end
- end
- end
- function pet_midcast(spell)
- if SpecialAvatar:contains(pet.name) then
- return
- else
- if spell.type == 'BloodPactRage' or spell.type == 'BloodPactWard' then
- if bp_physical[spell.name] then
- equip(sets.pet_midcast.physical)
- elseif bp_magic_tp[spell.name] then
- if pet.tp < 250 then
- equip(sets.pet_midcast.magic.tp)
- else
- equip(sets.pet_midcast.magic)
- end
- elseif bp_magic[spell.name] then
- equip(sets.pet_midcast.magic)
- elseif bp_hybrid[spell.name] then
- equip(sets.pet_midcast.hybrid)
- elseif bp_accuracy[spell.name] then
- equip(sets.pet_midcast.accuracy)
- elseif bp_duration[spell.name] then
- duration = bp_duration[spell.name] + sumskill - 300
- add_to_chat(204, '*-*-*-*-*-*-*-*-* [ Duration of '..spell.name..' = '..duration..' seconds ] *-*-*-*-*-*-*-*-*')
- equip(sets.pet_midcast.skill)
- duration_pact_timer(spell.name)
- elseif bp_boon[spell.name] then
- equip(sets.pet_midcast.skill)
- elseif bp_skill[spell.name] then
- equip(sets.pet_midcast.skill)
- end
- end
- end
- end
- function aftercast(spell)
- idle()
- end
- function status_change(new,old)
- if new=="resting" then
- idle()
- elseif new=="engaged" then
- return
- else
- idle()
- end
- end
- function self_command(command)
- if command == 'Idle' then
- idle()
- end
- end
- function pet_aftercast(spell)
- idle()
- end
- function idle()
- if pet.isvalid then
- if string.find(pet.name,'Spirit') then
- equip(sets.spirit)
- add_to_chat(204, '*-*-*-*-*-*-*-*-* [ '..pet.name..' - SpiritPerp Set ] *-*-*-*-*-*-*-*-*')
- elseif buffactive["Avatar's Favor"] then
- equip(sets.favor)
- add_to_chat(204, '*-*-*-*-*-*-*-*-* [ '..pet.name..' - Avatar Favor Set ] *-*-*-*-*-*-*-*-*')
- else
- equip(sets.perpetuation[pet.name] or sets.perpetuation)
- add_to_chat(204, '*-*-*-*-*-*-*-*-* [ '..pet.name..' - Perp Set ] *-*-*-*-*-*-*-*-*')
- end
- else
- equip(sets.idle)
- add_to_chat(204, '*-*-*-*-*-*-*-*-* [ NO Pet - Idle Set ] *-*-*-*-*-*-*-*-*')
- end
- end
- -- Février et Mars DB
- function duration_pact_timer(spell_name)
- -- Create custom timers for ward pacts.
- if bp_duration[spell_name] then
- local duration = bp_duration[spell_name]
- if duration < 181 then
- local skill = player.skills.summoning_magic
- if skill > 300 then
- skill = skill - 300
- if skill > 200 then skill = 200 end
- duration = duration + skill
- end
- end
- local timer_cmd = 'timers c "'..spell_name..'" '..tostring(duration)..' down'
- if icons[spell_name] then
- timer_cmd = timer_cmd..' '..icons[spell_name]
- end
- send_command(timer_cmd)
- end
- end
- fps = 1
- sec = 0
- windower.register_event('prerender', function()
- if fps < 150 then
- fps = fps +1
- else
- fps = 1
- end
- if fps == 1 and silence == 1 then
- send_command('input /item "echo drops" '..player.name..')
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement