9
3

GigglegibberGiggleGiver.lua 644 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Commoner/GigglegibberGiggleGiver.lua
  3. Script Author : neatz09
  4. Script Date : 2020.04.24 06:04:22
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Launches a goblin into oblivion.
  9. function cast(Caster, Target)
  10. local Zone = GetZone(Caster)
  11. local X = GetX(Caster)
  12. local Y = GetY(Caster)
  13. local Z = GetZ(Caster)
  14. local Heading = GetHeading(Caster)
  15. SpawnMob(Zone, 5590951, false, X, Y, Z, Heading)
  16. if S ~= nil then
  17. Despawn(S, 200)
  18. end
  19. end
  20. function remove(Caster, Target)
  21. local S = GetSpawn(Caster, 5590951)
  22. if S ~= nil then
  23. Despawn(S, 200)
  24. end
  25. end