FarisDiskMeditation.lua 941 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. -- Reduces maximum falling speed of caster.
  26. AddControlEffect(Caster, 13)
  27. end
  28. function remove(Caster, Target)
  29. SetMount(Caster, 0)
  30. RemoveSpellBonus(Caster)
  31. RemoveControlEffect(Caster, 13)
  32. end