GigglegibberGiggleGiver.lua 642 B

1234567891011121314151617181920212223242526272829
  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