paladin boss lua menu

User Tag List

Results 1 to 6 of 6
  1. #1
    matlar0503's Avatar Member
    Reputation
    2
    Join Date
    Jul 2008
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    paladin boss lua

    this is my first script so plz tell me if there is any bugs in it

    he'll start off by just useing holy nova,holy shock and seal of justice.
    then at 75% he'll use a spell which makes him attack 150% faster for the next 15 sec and fear some people hell do this at 50% and 25% too then at 10% he'll bubble and heal himself to 20%.

    change the stuff coloued red to the entry id

    Code:
    function Alex_OnCombat(Unit, Event)
    	Unit:SendChatMessage(12, 0, "You Stand No Chance Against The Pover of The Light!!!")
    	Unit:RegisterEvent("Alex_HolyNova", 15000, 0)
    	Unit:RegisterEvent("Alex_HolyShock", 10000, 0)
    	Unit:RegisterEvent("Alex_Justice", 25000, 0)
    	Unit:RegisterEvent("Alex_75hp", 100, 0)
    end
    
    function Alex_75hp(pUnit, Event)
    	if pUnit:GetHealthPct() <= 75 then
    		pUnit:RemoveEvents()
    		pUnit:SendChatMessage(12, 0, "You Are Stronger That I Expected!")
    		pUnit:CastSpell(36950)
    		pUnit:CastSpell(38664)
    		pUnit:RegisterEvent("Alex_50hp", 1000, 0)
    		pUnit:RegisterEvent("Alex_HolyNova", 15000, 0)
    		pUnit:RegisterEvent("Alex_HolyShock", 10000, 0)
    		pUnit:RegisterEvent("Alex_Justice", 25000, 0)
    end
    end
    
    function Alex_50hp(pUnit, Event)
    	if pUnit:GetHealthPct() <= 50 then
    		pUnit:RemoveEvents()
    		pUnit:SendChatMessage(12, 0, "Give Up While You Still Have The Chance!!")
    		pUnit:CastSpell(38664)
    		pUnit:CastSpell(36950)
    		pUnit:RegisterEvent("Alex_HolyNova", 15000, 0)
    		pUnit:RegisterEvent("Alex_HolyShock", 10000, 0)
    		pUnit:RegisterEvent("Alex_Justice", 25000, 0)
    		pUnit:RegisterEvent("Alex_25hp", 0, 0)
    end
    end
    
    function Alex_25hp(pUnit, Event)
    	if pUnit:GetHealthPct() <= 25 then
    		pUnit:RemoveEvents()
    		pUnit:SendChatMessage(12, 0, "FOOLS I'LL SLAY YOU ALL!")
    		pUnit:CastSpell(38664)
    		pUnit:CastSpell(36950)
    		pUnit:RegisterEvent("Alex_HolyNova", 15000, 0)
    		pUnit:RegisterEvent("Alex_HolyShock", 10000, 0)
    		pUnit:RegisterEvent("Alex_Justice", 25000, 0)
    		pUnit:RegisterEvent("Alex_Bubble", 0, 0)
    end
    end
    
    function Alex_Bubble(pUnit, Event)
    	if pUnit:GetHealthPct() <= 10 then
    		pUnit:RemoveEvents()
    		pUnit:SendChatMessage(12, 0, "You'll Never Defeat Me!!!")
    		pUnit:CastSpell(642)
    		pUnit:CastSpell(43451)
    		pUnit:CastSpell(46565)
    		pUnit:RegisterEvent("Alex_HolyNova", 15000, 0)
    		pUnit:RegisterEvent("Alex_HolyShock", 10000, 0)
    		pUnit:RegisterEvent("Alex_Justice", 25000, 0)
    end
    end
    
    function Alex_Justice(pUnit, Event)
    	pUnit:CastSpell(20164)
    end
    
    function Alex_HolyShock(pUnit, Event)
    	pUnit:FullCastSpellOnTarget(38921, pUnit:GetRandomPlayer(0))
    end
    
    function Alex_HolyNova(pUnit, Event)
    	pUnit:CastSpell(36985)
    end
    
    function Alex_OnKilledTarget(pUnit, Event)
    	KillTargChoice = math.random(1, 3)
    		if KillTargChoice == 1 then
    		pUnit:SendChatMessage(12, 0, "Feel Eternal Light!")
    end
    		if KillTargChoice == 2 then
    		pUnit:SendChatMessage(12, 0, "In The Name of The Gods!")
    end
    		if KillTargChoice == 3 then
    		pUnit:SendChatMessage(12, 0, "By The Light Be Gone!")
    end
    end
    
    function Alex_OnLeaveCombat(pUnit, Event)
    	pUnit:RemoveEvents()
    end
    
    function Alex_OnDied(pUnit, Event)
    	pUnit:SendChatMessage(12, 0, "I've...Failed...But...How...")
    	pUnit:RemoveEvents()
    end
    
    RegisterUnitEvent(EntryID, 1, "Alex_OnCombat")
    RegisterUnitEvent(EntryID, 2, "Alex_OnLeaveCombat")
    RegisterUnitEvent(EntryID, 3, "Alex_OnKilledTarget")
    RegisterUnitEvent(EntryID, 4, "Alex_OnDied")
    hope you like it

    paladin boss lua
  2. #2
    Helstedxd's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2008
    Posts
    78
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    screenshot?
    PHP: | | | | | | | | | |HTML: | | | | | | | | | |

  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)
    Upload some screenshots and i will +rep you :P

  4. #4
    matlar0503's Avatar Member
    Reputation
    2
    Join Date
    Jul 2008
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    screenshots

    ok ill post some screenshots later

  5. #5
    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 i will test the script after school and then i can report if they are any bugs.

    //Svedin

  6. #6
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
      --- Made by ---
    --- Matlar0503 ---
    
     --- Reworked ---
          --- by ---
    --- AngelSandy ---
    
    
    function Alex_OnCombat(Unit, Event)
    	Unit:SendChatMessage(14, 0, "You Stand No Chance Against The Power of The Light!!!")
    	RegisterUnitEvent("Alex_HolyNova", 15000, 0)
    	RegisterUnitEvent("Alex_HolyShock", 10000, 0)
    	RegisterUnitEvent("Alex_Justice", 25000, 0)
    	RegisterUnitEvent("Alex_75hp", 0, 1)
    end
    
    function Alex_75hp(Unit, Event)
    	if Unit:GetHealthPct() <= 75 then
    		Unit:SendChatMessage(14, 0, "You Are Stronger That I Expected!")
    Unit:RemoveEvents()
    		Unit:CastSpell(36950)
    		Unit:CastSpell(38664)
    		RegisterUnitEvent("Alex_50hp", 1000, 1)
    		RegisterUnitEvent("Alex_HolyNova", 15000, 0)
    		RegisterUnitEvent("Alex_HolyShock", 10000, 0)
    		RegisterUnitEvent("Alex_Justice", 25000, 0)
                                    RegisterUnitEvent("Alex_50hp", 0, 1)
    end
    end
    
    function Alex_50hp(Unit, Event)
    	if Unit:GetHealthPct() <= 50 then
    		Unit:RemoveEvents()
    		Unit:SendChatMessage(14, 0, "Give Up While You Still Have The Chance!!")
    		Unit:CastSpell(38664)
    		Unit:CastSpell(36950)
    		RegisterUnitEvent("Alex_HolyNova", 15000, 0)
    		RegisterUnitEvent("Alex_HolyShock", 10000, 0)
    		RegisterUnitEvent("Alex_Justice", 25000, 0)
    		RegisterUnitEvent("Alex_25hp", 0, 1)
    end
    end
    
    function Alex_25hp(Unit, Event)
    	if pUnit:GetHealthPct() <= 25 then
    		Unit:RemoveEvents()
    		Unit:SendChatMessage(14, 0, "FOOLS I'LL SLAY YOU ALL!")
    		Unit:CastSpell(38664)
    		Unit:CastSpell(36950)
    		RegisterUnitEvent("Alex_HolyNova", 15000, 0)
    		RegisterUnitEvent("Alex_HolyShock", 10000, 0)
    		RegisterUnitEvent("Alex_Justice", 25000, 0)
    		RegisterUnitEvent("Alex_Bubble", 0, 1)
    end
    end
    
    function Alex_Bubble(Unit, Event)
    	if pUnit:GetHealthPct() <= 10 then
    		Unit:RemoveEvents()
    		Unit:SendChatMessage(14, 0, "You'll Never Defeat Me!!!")
    		Unit:CastSpell(642)
    		Unit:CastSpell(43451)
    		Unit:CastSpell(46565)
    		RegisterUnitEvent("Alex_HolyNova", 15000, 0)
    		RegisterUnitEvent("Alex_HolyShock", 10000, 0)
    		RegisterUnitEvent("Alex_Justice", 25000, 0)
    end
    end
    
    function Alex_Justice(Unit, Event)
    	Unit:CastSpell(20164)
    end
    
    function Alex_HolyShock(Unit, Event)
    	Unit:FullCastSpellOnTarget(38921, pUnit:GetRandomPlayer(0))
    end
    
    function Alex_HolyNova(Unit, Event)
    	Unit:CastSpellOnTarget(36985)
    end
    
    function Alex_OnKilledTarget(Unit, Event)
    	KillTargChoice = math.random(1, 3)
    		if KillTargChoice == 1 then
    		Unit:SendChatMessage(14, 0, "Feel Eternal Light!")
    end
    		if KillTargChoice == 2 then
    		Unit:SendChatMessage(14, 0, "In The Name of The Gods!")
    end
    		if KillTargChoice == 3 then
    		Unit:SendChatMessage(14, 0, "By The Light Be Gone!")
    end
    end
    
    function Alex_OnLeaveCombat(Unit, Event)
    	Unit:RemoveEvents()
    end
    
    function Alex_OnDied(Unit, Event)
    	Unit:SendChatMessage(14, 0, "I've...Failed?!...But...How...")
    	Unit:RemoveEvents()
    end
    
    RegisterUnitEvent(EntryID, 1, "Alex_OnCombat")
    RegisterUnitEvent(EntryID, 2, "Alex_OnLeaveCombat")
    RegisterUnitEvent(EntryID, 3, "Alex_OnKilledTarget")
    RegisterUnitEvent(EntryID, 4, "Alex_OnDied")
    COLOUR EXPLANATIONS:
    Red = Things I've changed
    Blue = Things you should look at

    Not sure if its completely right but I think I did make up some errors ^^
    Like small spelling mistakes, and such. Hope its right now. Someone have to test it tho.

    Also changed your "pUnit" with "Unit". Its just two ways of defineing a value, but you can change it back if you want to..
    Also changed your "pUnit:RegisterEvent" with "RegisterUnitEvent" as you did in the bottom, since that is more correct.

    And by the way. You said you were going to make him heal himself at the Bubble phase.
    Basically I think it would be best if you made a function called something like "Bubble_heal", and then make it register only once, so you are sure he will do it. Else you should put a command that modifies Health at bubble stage.
    Also be aware, that with every Holy Nova, the mob heals itself, so you may wanna redo the Holy Nova Timer.
    Last edited by AngelSandy; 01-13-2009 at 07:51 AM.

Similar Threads

  1. [Epic Release] Rick Astley - Rickroll Boss [LUA]
    By Creepfold in forum WoW EMU General Releases
    Replies: 13
    Last Post: 10-04-2008, 10:01 PM
  2. [Release] Saben's Lord Boldon boss LUA
    By Sabens in forum WoW EMU General Releases
    Replies: 4
    Last Post: 08-14-2008, 12:09 AM
  3. [Release] Many Custom Bosses LUAs ***EPIC***
    By MisterEMU in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-22-2008, 02:35 PM
  4. [Release] Dragon boss lua script
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 04-18-2008, 07:56 PM
  5. [Release] Nalorakk, ZulAman Boss LUA
    By Creepfold in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-02-2008, 02:15 PM
All times are GMT -5. The time now is 04:36 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