FarisDiskMeditation.lua 827 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Commoner/FarisDiskMeditation.lua
  3. Script Author : Skywalker646
  4. Script Date : 2020.04.12 08:04:49
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster)
  9. if GetMount(Caster) > 0 then
  10. return false
  11. end
  12. return true
  13. end
  14. function cast(Caster, Target, Potency, HP, MP, Speed)
  15. -- Summons a mount to ride
  16. SetMount(Caster, 12449)
  17. -- Increases Potency of caster by 1.5%
  18. AddSpellBonus(Caster, 659, Potency)
  19. -- Increases Max Health of caster by 250.
  20. AddSpellBonus(Caster, 606, HP)
  21. -- Increases Max Power by 250.
  22. AddSpellBonus(Caster, 619, MP)
  23. -- increases your ground speed by 130%
  24. AddSpellBonus(Caster, 611, Speed)
  25. end
  26. function remove(Caster, Target)
  27. SetMount(Caster, 0)
  28. RemoveSpellBonus(Caster)
  29. end