9
3

BetaCarpet.lua 756 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Commoner/BetaCarpet.lua
  3. Script Purpose : Spawns mounts of {model_id}, {color} and {speed}
  4. Script Author : John Adams / LethalEncounter
  5. Script Date : 2009.03.28
  6. Script Notes : JA: Color and Speed params are optional?
  7. --]]
  8. function cast(Caster, Target, MountID, MountRed, MountGreen, MountBlue, SaddleRed, SaddleGreen, SaddleBlue, MountSpeed)
  9. if MountID ~= nil then
  10. SetMount(Caster, MountID)
  11. if MountRed ~= nil then
  12. SetMountColor(Caster, MountRed, MountGreen, MountBlue, SaddleRed, SaddleGreen, SaddleBlue)
  13. end
  14. if MountSpeed ~= nil then
  15. SetSpeed(Caster, MountSpeed)
  16. end
  17. end -- missing me
  18. end
  19. function remove(Caster, Target)
  20. SetMount(Caster, 0)
  21. SetSpeed(Caster, 0)
  22. end