[Lua script - Boss] DeathMarrow menu

User Tag List

Results 1 to 4 of 4
  1. #1
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua script - Boss] DeathMarrow

    Well its been some time since I released anything on here so I though I would post up one of my more recent Scripts.

    I'm not sure if its a Arcemu issue or what not though when he spawns the adds they all appear with the DisplayID of a checkered box.. and i know it isnt a issue on my DB's end as its a mob in game that is fine and i just used its entry and left rest same. and it only appears to happen when adds are spawned out of LUA script.

    I'm not including a SQL atm but if i get around to making a SQL to input it I will.
    For the Screenshots i used Nether- Dragon DisplayID

    This boss does varying attacks based on Fire, Ice and Poison.

    During one section of the fight he will repeatedly Fly up into the air some distance become unattackable and summon waves of Adds ( Adds are more of a Nuisance than anything 6k hps or so) He casts spells on you while hes in the air. He will also summon the adds when he is on the ground as well..

    His Spell attacks are pretty powerful some ranging from 2300 - 5000 hps and a few of them are AOE spells.

    Below 20% he casts a 2k hp a tick dot on the tank that also increases the melee damage the Tank takes by 30%.



    And heres the LUA:
    Code:
    function Deathmaw_EnterCombat (pUnit, event)
    		pUnit:SendChatMessage(14, 0, "Ever so slowly the coldness brings your death!")
    	    pUnit:RegisterEvent("Deathmaw_Freeze", 7000, 0)
            pUnit:RegisterEvent("Deathmaw_Blizzard", 6000, 0)           
            pUnit:RegisterEvent("Deathmaw_Falter", 5000, 0)
            pUnit:RegisterEvent("Deathmaw_Phase2", 1000, 0)
    end
    
    function Deathmaw_Falter (pUnit, event)
             pUnit:FullCastSpellOnTarget(43108, pUnit:GetClosestPlayer())
    end
    
    function Deathmaw_Blizzard (pUnit, event)
             pUnit:FullCastSpellOnTarget(49549, pUnit:GetClosestPlayer())
    end
    
    function Deathmaw_Freeze (pUnit, event)
             pUnit:FullCastSpellOnTarget(47772, pUnit:GetMainTank())
    end
    
    function Deathmaw_Phase2 (pUnit, event)
         if pUnit:GetHealthPct() < 76 then
         pUnit:RemoveEvents()
    	 pUnit:ClearThreatList()
    
    	 pUnit:SendChatMessage(14, 0, "Yes! YES! Scream as the flesh is melted from your bones!")
    	 pUnit:RegisterEvent("Deathmaw_Torrent", 8000, 0)
    	 pUnit:RegisterEvent("Deathmaw_Incinerate", 10000, 0)
    	 pUnit:RegisterEvent("Deathmaw_Spawns", 6000, 0)
    	 pUnit:RegisterEvent("Deathmaw_Flame", 30000, 0)
    	 pUnit:RegisterEvent("Deathmaw_Flight", 40000, 0)
    	 pUnit:RegisterEvent("Deathmaw_Phase3", 1000, 0) 
      end
    end
    
    function Deathmaw_Spawns (pUnit,event)
    	 X = pUnit:GetX();
    	 Y = pUnit:GetY();
    	 Z = pUnit:GetZ();
    	 O = pUnit:GetO();
    	 X = X + 4
    	 Y = Y + 4
    	 pUnit:SpawnCreature(21004, X, Y, Z, O, 73, 0);
    	 X = pUnit:GetX();
    	 Y = pUnit:GetY();
    	 Z = pUnit:GetZ();
    	 O = pUnit:GetO();
    	 X = X - 4
    	 Y = Y + 4
    	 pUnit:SpawnCreature(21004, X, Y, Z, O, 73, 0);
    	 X = pUnit:GetX();
    	 Y = pUnit:GetY();
    	 Z = pUnit:GetZ();
    	 O = pUnit:GetO();
    	 X = X + 4
    	 Y = Y - 4
    	 pUnit:SpawnCreature(21004, X, Y, Z, O, 73, 0);
    	 X = pUnit:GetX();
    	 Y = pUnit:GetY();
    	 Z = pUnit:GetZ();
    	 O = pUnit:GetO();
    	 X = X - 4
    	 Y = Y - 4
    	 pUnit:SpawnCreature(21004, X, Y, Z, O, 73, 0);
    	 X = pUnit:GetX();
    	 Y = pUnit:GetY();
    	 Z = pUnit:GetZ();
    	 O = pUnit:GetO();
    	 X = X + 6
    	 Y = Y + 6
    	 pUnit:SpawnCreature(21004, X, Y, Z, O, 73, 0);
    	 X = pUnit:GetX();
    	 Y = pUnit:GetY();
    	 Z = pUnit:GetZ();
    	 O = pUnit:GetO();
    	 X = X - 6
    	 Y = Y - 6
    	 pUnit:SpawnCreature(21004, X, Y, Z, O, 73, 0);
    end
    	  
    function Deathmaw_Flight (pUnit, event)
    	  pUnit:SetFlying()
    	  pUnit:SetCombatCapable(1)
    	  pUnit:CreateWayPoint(x,y,z,8000,768,0)
    	     X = pUnit:GetX();
    		 Y = pUnit:GetY();
    		 Z = pUnit:GetZ();
    		 O = pUnit:GetO();
    		 X = X
    		 Y = Y
    	 	 Z = Z
    	 pUnit:CreateWayPoint(x,y,z,7000,768,0)
    		 X = pUnit:GetX();
    		 Y = pUnit:GetY();
    		 Z = pUnit:GetZ();
    		 O = pUnit:GetO();
    		 X = X
    		 Y = Y
    	 	 Z = Z + 24
    	 pUnit:MovetoWayPoint(2)
    	 pUnit:MoveToWaypoint(1)
    	 pUnit:SetCombatCapable(0)
    	 pUnit:Land()
    end
    
    function Deathmaw_Torrent (pUnit, event)
             pUnit:FullCastSpellOnTarget(48246, pUnit:GetMainTank())
    end
    
    function Deathmaw_Incinerate (pUnit, event)
             pUnit:FullCastSpellOnTarget(20019, pUnit:GetMainTank())
    end
    
    function Deathmaw_Flame (pUnit, event)
             pUnit:CastSpell(15636)
    end
    
    function Deathmaw_Phase3 (pUnit, event)
          if pUnit:GetHealthPct() < 49 then
             pUnit:RemoveEvents()
    	 pUnit:ClearThreatList()        
    	 pUnit:SendChatMessage(14, 0, "Death is your only option!") 
    	     pUnit:RegisterEvent("Deathmaw_Toxin", 5000, 0)            
    	     pUnit:RegisterEvent("Deathmaw_Sludge", 4000, 0)
    	     pUnit:RegisterEvent("Deathmaw_Infect", 9000, 0)
    	     pUnit:RegisterEvent("Deathmaw_Ooze", 8000, 0)
    	     pUnit:RegisterEvent("Deathmaw_Phase4", 1000, 0)
    
      end
    end
    
    function Deathmaw_Toxin (pUnit, event)
             pUnit:FullCastSpellOnTarget(25989, pUnit:GetMainTank())
    end
    
    function Deathmaw_Sludge (pUnit, event)
             pUnit:FullCastSpellOnTarget(36694, pUnit:GetMainTank())
    end
    
    function Deathmaw_Ooze (pUnit, event)
             pUnit:FullCastSpellOnTarget(57617, pUnit:GetMainTank())
    end
    
    function Deathmaw_Infect (pUnit, event)
             pUnit:FullCastSpellOnTarget(38811, pUnit:GetRandomPlayer(0))
    end
    
    function Deathmaw_Phase4 (pUnit, event)
          if pUnit:GetHealthPct() < 20 then
    	 pUnit:ClearThreatList()
             pUnit:RemoveEvents()
             pUnit:SendChatMessage(14, 0, "Even in the face of annihilation you ask for more...So be it")
             pUnit:FullCastSpellOnTarget(43353, pUnit:GetMainTank())
      end
    end
    
    function Deathmaw_LeaveCombat (pUnit, event)
             pUnit:RemoveEvents()
    end
    
    function Deathmaw_Die (pUnit, event)
             pUnit:RemoveEvents()
             pUnit:SendChatMessage(14, 0, "I've seen your demise, it is coming...")     
    end
    
    RegisterUnitEvent(98871, 1, "Deathmaw_EnterCombat")
    RegisterUnitEvent(98871, 2, "Deathmaw_LeaveCombat")
    RegisterUnitEvent(98871, 4, "Deathmaw_Die")
    If anyone wants to use a different NPC id for the main Npc Edit the values in Red text to your NPC id
    If anyone wants to use a different NPC id for the waves of six Spawns Edit the values in Yellow text to you NPC id
    Let me know if anyone runs into any problems.

    [Lua script - Boss] DeathMarrow
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Pretty simple but better than a lot of the scripts that are getting released. +Rep

  3. #3
    svedin's Avatar Contributor
    Reputation
    124
    Join Date
    Jun 2008
    Posts
    557
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice release ^^

    +Rep

  4. #4
    Nymphx's Avatar Active Member
    Reputation
    83
    Join Date
    Sep 2008
    Posts
    212
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I like the use of waypoints. Makes it more unique then many.
    You should attempt a blizzlike Illidan script if you have a good understanding of Waypoints in Lua and also

    Code:
    pUnit:MoveTo
    +Rep

Similar Threads

  1. [ArcEmu] Custom Lua Scripted Boss (Not working!)
    By shtriga in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 11-29-2013, 04:31 PM
  2. LUA Scripted Boss with mobs and objects
    By denniskramer in forum WoW EMU General Releases
    Replies: 6
    Last Post: 12-16-2008, 07:20 AM
  3. [RELEASE]LUA scripted boss! <EPIC!>
    By nickelo in forum WoW EMU General Releases
    Replies: 8
    Last Post: 10-04-2008, 03:03 PM
  4. [Release] Eldina, Mistress of the Light [LUA Scripted Boss]
    By The [Bapes] in forum WoW EMU General Releases
    Replies: 3
    Last Post: 08-30-2008, 12:56 PM
  5. [Request] I need some help with lua script (boss on death)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-03-2008, 03:47 PM
All times are GMT -5. The time now is 05:15 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search