[Release] Holiday Releases # 1.5 - Custom Boss Template For Lua menu

User Tag List

Results 1 to 11 of 11
  1. #1
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Holiday Releases # 1.5 - Custom Boss Template For Lua

    Pretty much the tutle I use it for my Lua and its very helpful for all the newb Luaers out there. Ill Put a Little Guide In it to

    Template :
    Code:
    function Boss_Spell1(pUnit)
        pUnit:CastSpell(Spell Id Here!)
    end
    
    function Boss_Spell2(pUnit)
        pUnit:CastSpell(Spell Id Here!)
    end
    
    function Boss_Spell3(pUnit)
        pUnit:CastSpell(Spell Id Here!)
    end
    
    function Boss_Spell4(pUnit)
        pUnit:CastSpell(Spell Id Here!)
    end
    
    function Boss_Spell5(pUnit)
        pUnit:CastSpell(Spell Id Here!)
    end
    
    
    
    
    function Boss_Phase1(pUnit, event)
        if pUnit:GetHealthPct() < 95 then
            pUnit:RemoveEvents()
            pUnit:SendChatMessage(11, 0, "What You Want Him To Say")
            pUnit:RegisterEvent("Boss_Spell(Number Here)",8000, 0)
            pUnit:RegisterEvent("Boss_Phase2",1000, 0)
        end
    end
    
    
    
    function Boss_Phase2(pUnit, event)
        if pUnit:GetHealthPct() < 75 then
            pUnit:RemoveEvents()
            pUnit:SetScale(Scale Here!)
            pUnit:RegisterEvent("Boss_Spell(Number Here)",8000, 5)
            pUnit:RegisterEvent("Boss_Phase3",1000, 0)
        end
    end
    
    
    function Boss_Phase3(pUnit, event)
        if pUnit:GetHealthPct() < 50 then
            pUnit:RemoveEvents()
            pUnit:SetScale(Scale here)
            pUnit:SetModel(Model Id Here!)
            pUnit:CastSpell(Spell id Here!)
            pUnit:SendChatMessage(12, 0, "What you want him to say.")
            pUnit:RegisterEvent("Boss_Phase4",1000, 0)        
    
        end
    end
    
    
    function Boss_Phase4(pUnit, event)
        if pUnit:GetHealthPct() < 50 then
            pUnit:RemoveEvents()
            pUnit:SetScale(Scale here)
            pUnit:SetModel(Model Id Here!)
            pUnit:CastSpell(Spell id Here!)
            pUnit:SendChatMessage(12, 0, "What you want him to say.")
            pUnit:RegisterEvent("Boss_Phase5",1000, 0)        
    
        end
    end
    
    
    
    function Boss_Phase5(pUnit, event)
        if pUnit:GetHealthPct() < 50 then
            pUnit:RemoveEvents()
            pUnit:SetScale(Scale here)
            pUnit:SetModel(Model Id Here!)
            pUnit:CastSpell(Spell id Here!)
            pUnit:SendChatMessage(12, 0, "What you want him to say when hes about to die.")
        
    
        end
    end
    
    
    function Boss_OnCombat(pUnit, event)
        pUnit:SendChatMessage(11, 0, "What you want him to say on agro")
        pUnit:RegisterEvent("Boss_Phase1",1000, 0)
    end
    
    
    function Boss_OnLeaveCombat(pUnit, event)
        pUnit:RemoveEvents()
        pUnit:SendChatMessage(11, 0, "What you want to say when leave combat")
        pUnit:SetScale(1)
        pUnit:SetModel(17314)
    end
    
    
    function Boss_OnKilledTarget(pUnit)
        pUnit:SendChatMessage(11, 0, "What you want to say When he Kills someone!!")
        pUnit:CastSpell(13048)
    end
    
    
    function Boss_Death(pUnit)
        pUnit:SendChatMessage(12, 0, "what you want him to say when he dies.")
        pUnit:RemoveEvents()
        pUnit:SetScale(1)
        pUnit:SetModel(17314)
    end
    
    RegisterpUnitEvent(Id of Boss, 1, "Boss_OnCombat")
    RegisterpUnitEvent(Id of Boss, 2, "Boss_OnLeaveCombat")
    RegisterpUnitEvent(Id of Boss, 3, "Boss_OnKilledTarget")
    RegisterpUnitEvent(Id of Boss, 4, "Boss_Death")
    Or Download Here!

    Lets Get To Work

    Stuff ill put in to help ya :

    Id Of Boss : Spawn Id Of The Boss Mob

    Spell Id Here : Get Spell Ids From Wowhead click the spell then look at the Browser bar and you will see the number at the end Like This :


    Scale here : Put The Scale There dont put 6 or above if you have a live server

    Ty
    Snailz

    HOLIDAY RELEASES # 1.5
    Last edited by Snailz; 02-14-2008 at 07:18 AM.
    Cheese Cake?

    [Release] Holiday Releases # 1.5 - Custom Boss Template For Lua
  2. #2
    Cheesy's Avatar Member
    Reputation
    85
    Join Date
    May 2007
    Posts
    314
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great release and congratulations on contributor!
    I 'R' EPICNESS!

  3. #3
    King Shaun's Avatar Member
    Reputation
    419
    Join Date
    Dec 2007
    Posts
    1,305
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A great little release mate, this should help lots of people who are new to lua, great work and congratulations on contributor, I will see you in the shoutbawx!


    Threads of the Week: [Errage] [Blizzard] [Rapidshare]

  4. #4
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol will do shaun
    Cheese Cake?

  5. #5
    kanqaz's Avatar Banned
    Reputation
    235
    Join Date
    Oct 2007
    Posts
    410
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very nice (: gonna use it.

    Cant rep, need to spread some around first. Remind me later.

  6. #6
    leahedw1's Avatar Member
    Reputation
    8
    Join Date
    Jan 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is nice thank you for the share i am starting to learn lua

  7. #7
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good to see people learning =O
    Cheese Cake?

  8. #8
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wouldnt call you an advanced scripter yet :P

    In here, you only need to register phase 1, its a waste to register all of the other phases at the same time:

    Code:
    function Boss_OnCombat(Unit, event)
        Unit:SendChatMessage(11, 0, "What you want him to say on agro")
        Unit:RegisterEvent("Boss_Phase1",1000, 0)
        Unit:RegisterEvent("Boss_Phase2",1000, 0)
        Unit:RegisterEvent("Boss_Phase3",1000, 0)
        Unit:RegisterEvent("Boss_Phase4",1000, 0)
        Unit:RegisterEvent("Boss_Phase5",1000, 0)
    end
    All it needs to be is:

    Code:
    function Boss_OnCombat(Unit, event)
        Unit:SendChatMessage(11, 0, "What you want him to say on agro")
        Unit:RegisterEvent("Boss_Phase1",1000, 0)
    end
    And a bit of advice, you may want to use pUnit, instead of Unit.
    Life Puzzler WoW - Website | Forums

  9. #9
    Linkin.Park.'s Avatar Banned
    Reputation
    13
    Join Date
    Dec 2007
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice nice

  10. #10
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see Ty Gastric
    Cheese Cake?

  11. #11
    Ermok's Avatar Contributor
    Reputation
    212
    Join Date
    Jul 2007
    Posts
    447
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very nice, I may use some time ;p

Similar Threads

  1. [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
  2. [Release] Cow Lord! Custom Scripted Raid Boss!
    By Murlock. in forum World of Warcraft Emulator Servers
    Replies: 28
    Last Post: 04-05-2008, 10:16 PM
  3. [Release] Holiday Releases # 1.7 - Custom Aggro Template For Lua
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-12-2008, 10:44 AM
  4. [Release] The Soulstealer, Custom .LUA Boss.
    By Ebon in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-10-2008, 11:45 AM
  5. [Release] The Soulstealer, Custom .LUA Boss.
    By Ebon in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-10-2008, 08:12 AM
All times are GMT -5. The time now is 01:37 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