9
3

SummonMount.lua 686 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Commoner/SummonMount.lua
  3. Script Author : TyroneSWG
  4. Script Date : 2019.01.16 03:01:40
  5. Script Purpose : mounting test
  6. :
  7. --]]
  8. --local mount_favorites = { '25423', '24053', '25864', '23713', '15397', '20950', '20344', '17509' }
  9. function cast(Caster, Target)
  10. SendMessage(Caster, "Mounting...", "red")
  11. SetMount(Caster, 10441)
  12. --SetMount(Caster, mount_favorites[ math.random( 1, #mount_favorites - 1 ) ] )
  13. PlaySound(Caster, "sounds/test/level_up.wav", GetX(Caster), GetY(Caster), GetZ(Caster))
  14. SetSpeed(Caster, 100)
  15. end
  16. function remove(Caster, Target)
  17. SetMount(Caster, 0)
  18. SetSpeed(Caster, 1)
  19. end