Advertisement
Guest User

Untitled

a guest
Oct 4th, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. function Precast(spell)
  2.  
  3. if spell.action_type == 'Magic' then
  4. equip(sets.Precast.FastCast)
  5. end
  6.  
  7. if spell.type == 'WeaponSkill' then
  8.  
  9. if spell.target.distance > 6.0 then
  10. add_to_chat(167,''..spell.target.name..' is too far can not use '..spell.name..'!!!. Cancelling WeaponSkill ')
  11. cancel_spell()
  12. return
  13.  
  14. elseif spell.name == "Requiescat" then
  15. equip(sets.Requiescat[sets.Requiescat.index[Requiescat_index]])
  16.  
  17. elseif spell.english == "Chant du Cygne" then
  18. equip(sets.ChantDuCygne[sets.ChantDuCygne.index[ChantDuCygne_index]])
  19.  
  20. elseif spell.english == "Sanguine Blade" then
  21. equip(sets.SanguineBlade[sets.SanguineBlade.index[SanguineBlade_index]])
  22.  
  23. else equip(sets.ChantDuCygne.Attack)
  24. end
  25. end
  26.  
  27. --Abilities requiring swap BEFORE use--
  28. if sets.Precast[spell.english] then
  29. equip(sets.Precast[spell.english])
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement