Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. function job_precast(spell, action, spellMap, eventArgs)
  2. if spell.type == 'BardSong' then
  3. -- Auto-Pianissimo
  4. if ((spell.target.type == 'PLAYER' and not spell.target.charmed) or (spell.target.type == 'NPC' and spell.target.in_party)) and
  5. not state.Buff['Pianissimo'] then
  6.  
  7. local spell_recasts = windower.ffxi.get_spell_recasts()
  8. if spell_recasts[spell.recast_id] < 2 then
  9. send_command('@input /ja "Pianissimo" <me>; wait 1.5; input /ma "'..spell.name..'" '..spell.target.name)
  10. eventArgs.cancel = true
  11. return
  12. end
  13. end
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement