Custom Boss Script menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Deathbringer123's Avatar Master Sergeant
    Reputation
    25
    Join Date
    Oct 2010
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom Boss Script

    Hey so I Made this Boss and i wanted to get him scripted up so i eventually cam up with this script but everything works except the phases here it is
    Code:
    function KingKandaroth_OnCombat(Unit, Event)
    Unit:SendChatMessage(14, 0, "The Lich King Only wished for you to come he was devastated that u broke his defences,but know we have bronken yours HA!")
    Unit:RegisterEvent("KingKandaroth_Phase1", 10000, 1)
    end
    
    function KingKandaroth_OnLeaveCombat(Unit, Event)
    Unit:RemoveEvents() 
    end
    
    function KingKandaroth_OnKilledTarget(Unit, Event)
    Unit:SendChatMessage(12, 0, "HA! a Casualty to be taken care off!")
    Unit:CastSpell(2060)
    end
    
    function KingKandaroth_OnDied(Unit, Event)
    Unit:SendChatMessage(12, 0, "No...How..dare..you destroy me!")
    end
    
    function KingKandaroth_Phase1(Unit, Event)
    if Unit:GetHealthPct() <= 75 then
    Unit:SendChatMessage(14, 0, "Try Handling This!")
    Unit:CastSpell(69037)
    Unit:RegisterEvent("KingKandaroth_Phase2", 10000, 1)
    end
    end
    
    function KingKandaroth_Phase2(Unit, Event)
    if Unit:GetHealthPct() <= 50 then
    Unit:SendChatMessage(14, 0, "How Dare you Even attempt to weaken me further!")
    Unit:SendCHatMessage(12, 0, "Lets Weaken YOU a bit!")
    Unit:FullCastSpellOnTarget(5, Unit:GetRandomPlayer(3))
    Unit:RegisterEvent("KingKandaroth_Phase3", 20000, 1)
    end
    end
    
    function KingKandaroth_Phase3(Unit, Event)
    if Unit:GetHealthPct() <= 10 then
    Unit:SendChatMessage(14, 0, "NO! You Have reduced me to virtually a shred it cannot be!")
    Unit:SendchatMessage(12, 0, "Try To Defeat me After this")
    Unit:CastSpell(70358)
    Unit:FullCastSpellOnTarget(5, Unit:GetRandomPlayer(3))
    end
    end
    
    RegisterUnitEvent(5000001, 2, "KingKandaroth_OnLeaveCombat")
    RegisterUnitEvent(5000001, 3, "KingKandaroth_OnKilledTarget")
    RegisterUnitEvent(5000001, 4, "KingKandaroth_OnDied")
    RegisterUnitEvent(5000001, 1, "KingKandaroth_OnCombat")
    If you can get it working then you may use it as you like

    Custom Boss Script
  2. #2
    gillisrofl's Avatar Sergeant
    Reputation
    22
    Join Date
    Oct 2009
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is a fixed version. Can't say for 100% though since I haven't tested it myself, but this should be correct. Also added some extra notes . Hope you don't mind I messed around a little with your Registrations (Did it my own way >.>)

    Anyways reply if something is still wrong and I'll double-check!

    Code:
    --local npcid = 1000000
    -- Boss entry id?
    
    function KingKandaroth_OnLeaveCombat(Unit, Event)
    Unit:RemoveEvents() 
    end
    
    function KingKandaroth_OnKilledTarget(Unit, Event)
    Unit:SendChatMessage(12, 0, "HA! a Casualty to be taken care off!")
    Unit:CastSpell(2060)
    end
    
    function KingKandaroth_OnDied(Unit, Event)
    Unit:SendChatMessage(12, 0, "No...How..dare..you destroy me!")
    end
    
    RegisterUnitEvent(5000001, 2, "KingKandaroth_OnLeaveCombat")
    RegisterUnitEvent(5000001, 3, "KingKandaroth_OnKilledTarget")
    RegisterUnitEvent(5000001, 4, "KingKandaroth_OnDied")
    RegisterUnitEvent(5000001, 1, "KingKandaroth_OnCombat")
    
    function KingKandaroth_OnCombat(Unit, Event)
    Unit:SendChatMessage(14, 0, "The Lich King Only wished for you to come he was devastated that u broke his defences,but know we have bronken yours HA!")
    Unit:RegisterEvent("KingKandaroth_Phase1", 10000, 1)
    end
    
    function KingKandaroth_Phase1(Unit, Event)
    if Unit:GetHealthPct() <= 75 then
    Unit:RemoveEvents()-- A phase can't have a loop without this, and also this can remove some problems.
    Unit:SendChatMessage(14, 0, "Try Handling This!")
    Unit:CastSpell(69037)
    --Unit:RegisterEvent("KingKandaroth_Phase1_Spell", 3500, 0) -- Try make Events like this ^^ it's useful.
    end
    Unit:RegisterEvent("KingKandaroth_Phase2", 10000, 1)--Try to place the Register for next event phase between the ends
    end
    
    function KingKandaroth_Phase2(Unit, Event)
    if Unit:GetHealthPct() <= 50 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(14, 0, "How Dare you Even attempt to weaken me further!")
    Unit:SendCHatMessage(12, 0, "Lets Weaken YOU a bit!")
    Unit:FullCastSpellOnTarget(5, Unit:GetRandomPlayer(3))
    --Unit:RegisterEvent("KingKandaroth_Phase2_Spell", 3500, 0) -- And this
    end
    Unit:RegisterEvent("KingKandaroth_Phase3", 20000, 1)
    end
    
    function KingKandaroth_Phase3(Unit, Event)
    if Unit:GetHealthPct() <= 10 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(14, 0, "NO! You Have reduced me to virtually a shred it cannot be!")
    Unit:SendchatMessage(12, 0, "Try To Defeat me After this")
    Unit:CastSpell(70358)
    Unit:FullCastSpellOnTarget(5, Unit:GetRandomPlayer(3))
    --Unit:RegisterEvent("KingKandaroth_Phase3_Spell", 3500, 0) -- And this :P
    end
    end
    
    -- *** Then Register the Spell events down here! It will solve a lot of problems if you make bigger scripts! ***
    
    -- *** Example for Phase1's spell:
    
    --function KingKandaroth_Phase1_Spell(Unit, Event, Attacker)
    --if(pUnit:GetMainTank() ~=nil) then
    --pUnit:CastSpellOnTarget(69037, Unit:GetMainTank())
    --else
    --end
    --end

  3. #3
    Deathbringer123's Avatar Master Sergeant
    Reputation
    25
    Join Date
    Oct 2010
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks looks a little complicated but I will figure it out:wave:+Rep
    Last edited by Deathbringer123; 10-23-2010 at 10:25 AM.

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. [Guide] Deaths Lua Guide for Teleporters,Custom Bosses and Item scripts!
    By Deathbringer123 in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 10-11-2011, 12:26 PM
  3. [Custom Raid Boss][Scripted][25 man] Kexx <The Creator>
    By uberhak3r in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 06-29-2008, 03:47 PM
  4. [Custom Boss][Scripted][25 Man raid] Kefia <Head Necromancer>
    By uberhak3r in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 06-28-2008, 03:06 PM
  5. [Release] My Custom boss script (LUA)
    By Nilrac in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-17-2008, 03:57 AM
All times are GMT -5. The time now is 08:57 PM. 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