[Release] LUA Boss Template menu

User Tag List

Results 1 to 11 of 11
  1. #1
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] LUA Boss Template

    Here is a Very simple LUA Template for Custom Bosses.

    What this gives you.

    The boss yells somthing on entering combat/90%/75%/50%/35%/15%/7%/KillTarget/Death/

    You edit all the things in red

    Don't be shocked if all you see is a big wall of text, it is very very simple, just edit the things in red for what you created the NPC and what you want the npc to yell.

    *Note Make sure LUA Scripts are enabled in your World.config file *

    Enjoy


    Code:
    function NPCNAME_OnCombat(pUnit, Event)
    pUnit:SendChatMessage(14, 0, "YELL_ON_COMABAT_TEXT")
    pUnit:RegisterEvent("NPCNAME_90", 100, 0)
    end
    
    function NPCNAME_OnLeaveCombat(pUnit, Event)
    pUnit:RemoveEvents()
    end
    
    function NPCNAME_OnKillTarget(pUnit, Event)
    pUnit:SendChatMessage(14, 0, "YELL_ON_KILL_TARGET_TEXT")
    end
    
    function NPCNAME_OnDeath(pUnit, Event)
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "YELL_ON_DEATH_TEXT")
    end
    
    RegisterUnitEvent(NPCSPAWNID, 1, "NPCNAME_OnCombat")
    RegisterUnitEvent(NPCSPAWNID, 2, "NPCNAME_OnLeaveCombat")
    RegisterUnitEvent(NPCSPAWNID, 3, "NPCNAME_OnKillTarget")
    RegisterUnitEvent(NPCSPAWNID, 4, "NPCNAME_OnDeath")
    
    function NPCNAME_90(pUnit, Event)
    if pUnit:GetHealthPct() <= 90 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("NPCNAME_75", 100, 0)
    pUnit:SendChatMessage(14, 0, "YELL_ON_90%_HP_TEXT")
    end
    end
    
    function NPCNAME_75(pUnit, Event)
    if pUnit:GetHealthPct() <= 75 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("NPCNAME_50", 100, 0)
    pUnit:SendChatMessage(14, 0, "YELL_ON_75%_HP_TEXT")
    end
    end
    
    function NPCNAME_50(pUnit, Event)
    if pUnit:GetHealthPct() <= 50 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("NPCNAME_35", 100, 0)
    pUnit:SendChatMessage(14, 0, "YELL_ON_50%_HP_TEXT")
    end
    end
    
    function NPCNAME_35(pUnit, Event)
    if pUnit:GetHealthPct() <= 35 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("NPCNAME_15", 100, 0)
    pUnit:SendChatMessage(14, 0, "YELL_ON_35%_HP_TEXT")
    end
    end
    
    function NPCNAME_15(pUnit, Event)
    if pUnit:GetHealthPct() <= 15 then
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("NPCNAME_7", 100, 0)
    pUnit:SendChatMessage(14, 0, "YELL_ON_15%_HP_TEXT")
    end
    end
    
    function NPCNAME_7(pUnit, Event)
    if pUnit:GetHealthPct() <= 7 then
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "YELL_ON_7%_HP_TEXT")
    end
    end

    [Release] LUA Boss Template
  2. #2
    Thelordofsummon's Avatar Member
    Reputation
    6
    Join Date
    Mar 2008
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could add some spell template between the Lua? Thanks, would be really pleased.

  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)
    Good and simpel Template =)

  4. #4
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I like it bro keep it up xDDD +Rep
    Immortal GamerZ Under Development!

  5. #5
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Glad you guys like it, Ill post up a spell caster lua boss script tomorrow, im going to bed now... G'night

  6. #6
    hönan's Avatar Member
    Reputation
    2
    Join Date
    Sep 2008
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice Lua Mate ! i going to try it in a sec Thx +rep

  7. #7
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Glad your Enjoying it,

  8. #8
    jordddm's Avatar Member
    Reputation
    11
    Join Date
    Nov 2007
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is just EPIC this helped alot ty ground zero i would +rep but wont let me Nice release man

  9. #9
    jordddm's Avatar Member
    Reputation
    11
    Join Date
    Nov 2007
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Edit:
    Edit:got it to rep you nice one man

    soz for double posting gettin ust to this but anyway nice one dude

  10. #10
    TheZaronz's Avatar Active Member
    Reputation
    97
    Join Date
    Dec 2007
    Posts
    567
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well.. Some Spell templates and stuff like that is always cool, add some more features to it :P

  11. #11
    bader520's Avatar Member
    Reputation
    1
    Join Date
    Nov 2008
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice one +rep

Similar Threads

  1. [RELEASE]LUA Boss 1st - Shalazar.
    By VictoRo in forum WoW EMU General Releases
    Replies: 10
    Last Post: 02-10-2009, 01:51 PM
  2. [Test Release] Lua Boss [Killjoy]
    By brandonrulz1 in forum WoW EMU General Releases
    Replies: 1
    Last Post: 01-01-2009, 07:11 AM
  3. [RELEASE] LUA BOSS O'Brien!
    By VictoRo in forum WoW EMU General Releases
    Replies: 12
    Last Post: 12-03-2008, 11:08 AM
  4. [Release] LUA Boss - Gilford the Legend
    By Babbaa in forum WoW EMU General Releases
    Replies: 12
    Last Post: 09-05-2008, 04:15 PM
All times are GMT -5. The time now is 11:30 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