asmolderinggoo.lua 881 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/qey_epic11_l10_arbor/asmolderinggoo.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.21 11:11:32
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/CombatModule"
  9. function spawn(NPC, Spawn)
  10. combatModule(NPC, Spawn)
  11. end
  12. function death(NPC,Spawn)
  13. ApplySpellVisual(NPC,165)
  14. x = GetX(NPC)
  15. y = GetY(NPC)
  16. z = GetZ(NPC)
  17. h = GetHeading(NPC)
  18. local zone = GetZone(NPC)
  19. local new_spawn = SpawnMob(zone, 2180024, true, x, y, y, h)
  20. if new_spawn ~= nil then
  21. AddSpawnAccess(new_spawn, Spawn)
  22. end
  23. PerformCameraShake(Spawn, 0.699999988079071)
  24. SendMessage(Spawn, "The smoldering goo exploded!","red")
  25. SendPopUpMessage(Spawn, "The smoldering ooze exploded!",250,0,0)
  26. end
  27. function respawn(NPC)
  28. spawn(NPC)
  29. end