From a52cb8037d458204c3da42147145ba2a4d9a53f7 Mon Sep 17 00:00:00 2001
From: Devn00b <cronikus@gmail.com>
Date: Mon, 25 Jul 2022 14:21:23 -0700
Subject: [PATCH] Script name change to permit download

---
 .../RognogtheAngler.lua                       | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100755 server/SpawnScripts/The_Cove_of_Decay_Epic_Angler/RognogtheAngler.lua

diff --git a/server/SpawnScripts/The_Cove_of_Decay_Epic_Angler/RognogtheAngler.lua b/server/SpawnScripts/The_Cove_of_Decay_Epic_Angler/RognogtheAngler.lua
new file mode 100755
index 000000000..001e73380
--- /dev/null
+++ b/server/SpawnScripts/The_Cove_of_Decay_Epic_Angler/RognogtheAngler.lua
@@ -0,0 +1,39 @@
+--[[
+    Script Name    : SpawnScripts/The Cove of Decay: Epic Angler/RognogtheAngler.lua
+    Script Author  : Neveruary
+    Script Date    : 2022.03.01 04:03:45
+    Script Purpose : Governs the behavior of Rognog the Angler in Cove of Decay: Epic Angler
+    Script Notes   : Rognog has special abilities. He only activates once the raid kills all 
+                   : of "a catch" which is a grouped mob to his left. At 50%, he respawns as
+                   : a level 52 x4.
+                   : 
+--]]
+
+
+function spawn(NPC)
+    local zone = GetZone(NPC)
+    local players = GetPlayersInZone(zone)
+    local rognogx4 = GetSpawn(NPC,3110009)
+    for k,v in ipairs(players) do
+    RemoveSpawnAccess(rognogx4, v)
+    end
+end
+
+function aggro(NPC)
+end
+
+function healthchanged(NPC)
+    local max = GetMaxHP(NPC)
+    local current = GetHP(NPC)
+    if current == max*0.5 then
+        --We need to despawn him and respawn him in another location ID.
+    end
+end
+
+function hailed(NPC, Spawn)
+	FaceTarget(NPC, Spawn)
+end
+
+function respawn(NPC)
+	spawn(NPC)
+end
\ No newline at end of file