[LUA] Deathlord #1 menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [LUA] Deathlord #1

    Hello!
    Ok this is my first LUA Script, so there might be some errors in it
    Feel free to comment and give advice
    I dont have pics, because Im not on my computer, but when it comes, I will take some screens and post here!

    Code:
    function Deathlord_OnEnterCombat(pUnit,Event)
    pUnit:SendChatMessage(12, 0, "Foolish people!")
    pUnit:CastSpell(29406)
    pUnit:RegisterEvent("Deathlord_ShadowBlow", 30000, 0)
    pUnit:RegisterEvent("Deathlord_ShadowBolt", 25000, 0)
    pUnit:RegisterEvent("Deathlord_ConsumeShadow", 20000, 0)
    end
    
    
              ---ShadowFase (100 to 75 %)---
    
    function Deathlord_ShadowBlow(pUnit,Event)
    pUnit:CastSpellOnTarget(41063,pUnit:GetRandomPlayer(0))
    end
    
    function Deathlord_ShadowBolt(pUnit,Event)
    pnit:CastSpellOnTarget(59013,pUnit:GetMainTank())
    end
    
    function Deathlord_ConsumeShadow(pUnit,Event)
    pUnit:CastSpellOnTarget(49380,pUnit:GetRandomPlayer(0))
    pUnit:SendChatMessage(12,0,"You shall die!")
    end
    
    
              ---FirePhase (75 to 50 %)---
    
    function Deathlord_FireBolt(pUnit,Event)
    pUnit:CastSpellOnTarget(19811,pUnit:GetMainTank())
    pUnit:CastSpellOnTarget(19811,pnit:GetAddTank())
    pUnit:SendChatMessage(12,0,"DIE FOOL!")
    
    function Deathlord_FireAura(pUnit,Event)
    pUnit:CastSpellOnTarget(30616,pUnit:GetMainTank())
    pUnit:SendChatMessage(12,0,"You shall burn till you melt!")
    end
    
    function Deathlord_BoneCracker(pUnit,Event)
    pUnit:CastSpellOnTarget(17445,pUnit:GetMainTank())
    pUnit:CastSpellOnTarget(17445,pUnit:GetRandomPlayer(7))
    end
    
    function Deathlord_StunBomb(pUnit,Event)
    pUnit:CastSpellOnTarget(19780,pUnit:GetRandomPlayer(4))
    end
    
    
              ---IcePhase (50 to 25 %)---
    
    function Deathlord_FreezeBolt(pUnit,Event)
    pUnit:CastSpellOnTarget(31012,pUnit:GetMainTank)
    end
    
    function Deathlord_PeriodicFreeze(pUnit,Event)
    pUnit:CastSpellOnTarget(55799,pUnit:GetRandomPlayer(0))
    end
    
    function Deathlord_BoundFreeze(pUnit,Event)
    pUnit:CastSpellOnTarget(36989,pUnit:GetRandomPlayer(6))
    end
    
    
              ---DeathPhase (25 to 1 %)---
    
    function Deathlord_DeathBlast(pUnit,Event)
    pUnit:CastSpellOnTarget(36662,pUnit:GetMainTank())
    pUnit:CastSpellOnTarget(36662,pUnit:GetRandomPlayer(0))
    end
    
    function Deathlord_DeathCut(pUnit,Event)
    pUnit:CastSpellOnTarget(38810,pUnit:GetMainTank())
    end
    
    function Deathlord_DeathBane(pUnit,Event)
    pUnit:CastSpell(48295)
    end
    
    function Deathlord_Rage(pUnit,Event)
    pUnit:CastSpel(41924)
    end
    
    
    
    
    
    
    
    
                                        --- PHASES ---
    
              ---Phase 1 (Fire)---
    
    function Fire_Phase1(Unit,Event)
    if Unit:GetHealthPct() <= 75 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Begin to pray!")
    Unit:CastSpell(25431)
    Unit:RegisterEvent("Deathlord_FireBolt", 40000, 0)
    Unit:RegisterEvent("Deathlord_FireAura", 20000, 0)
    Unit:RegisterEvent("Deathlord_BoneCracker", 60000, 0)
    Unit:RegisterEvent("Deathlord_StunBomb", 35000, 0)
    Unit:RegisterEvent("Ice_Phase2", 1000, 0)
    end
    end
    
              ---Phase 2 (Ice)---
    
    function Ice_Phase2(Unit,Event)
    if Unit:GetHealthPct() <=50 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "You shall freeze to death!")
    Unit:CastSpell(7301)
    Unit:RegisterEvent("Deathlord_FreezeBolt", 40000, 0)
    Unit:RegisterEvent("Deathlord_PeriodicFreeze", 23000, 0)
    Unit:RegisterEvent("Deathlord_BoundFreeze", 60000, 0)
    Unit:RegisterEvent("Death_Phase3", 1000, 0)
    end
    end
    
              ---Phase 3 (Death)---
    
    function Death_Phase3(Unit,Event)
    if Unit:GetHealthPct() <= 25 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "This is where you ALL DIE!"
    Unit:SetModel(21168)
    Unit:CastSpell(15473)
    Unit:SetScale(3)
    Unit:RegisterEvent("Deathlord_DeathBlast", 20000, 0)
    Unit:RegisterEvent("Deathlord_DeathCut", 50000, 0)
    Unit:RegisterEvent("Deathlord_DeathBane", 120000 , 0)
    Unit:RegisterEvent("Deathlord_Rage", 300000, 0)
    end
    end
    
    
    
    function Deathlord_OnLeaveCombat(pUnit, event)
    pUnit:RemoveEvents()
    end
    
    function Deathlord_OnKilledTarget(pUnit)
    pUnit:SendChatMessage(12, 0, "AHAH, DIE")
    end
    
    
    function Deathlord_Death(pUnit)
    pUnit:SendChatMessage(12, 0, "I Will get MY REVENGE!")
    pUnit:RemoveEvents()
    end
    
    RegisterUnitEvent(<ID>, 1, "Deathlord_OnEnterCombat")
    RegisterUnitEvent(<ID>, 2, "Deathlord_OnLeaveCombat")
    RegisterUnitEvent(<ID>, 3, "Deathlord_OnKilledTarget")
    RegisterUnitEvent(<ID>, 4, "Deathlord_Death")
    Enjoy it
    Last edited by Edude; 10-31-2008 at 10:42 AM.

    [LUA] Deathlord #1
  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)
    Provide an sql. Some people are rubbish at that sort of thing,
    Post pictures, loads of people will flaim for that,
    Describe the fight, people wont want a random fight which they don't even know what happens and for what level, how hard etc.
    You say there may be some bugs, bugs as in the script now working or bugs as in a spell or something doesn't work? You shouldn't be releasing a broken script.
    /flame off.

    Apart from that, it looks like you've put some effert into this and i'm glad your contributing +Rep x2

  3. #3
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the +Rep ^^

    When I my computer gets fixed, I will provide SQL and pics

    I dont know if there are errors, but its the first time i did it, so there might be some.

    Anyway, thanks for your contribution



    Oh about the fight, its a 10-20 man boss and he has 4 stages: 1st-Shadow / 2nd-Fire / 3rd-Ice / 4th-Death

    Every stage has a ranged attack, which takes 3000-7000 dmg

    Overtime, the boss casts buffs on himself, getting stronger, increasing armor, etc...

    When he reaches the Death Phase, he changes his model, looking like a demon slayer lol


    Basically, thats the fight
    Last edited by Edude; 10-23-2008 at 03:50 PM.

  4. #4
    AzolexX's Avatar Contributor
    Reputation
    179
    Join Date
    May 2007
    Posts
    587
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Stoneharry is completely right,i see some effort in this script so i added 2x reputation 2 you,this was good contribution for leecher,welcome to mmowned, you are no longer leecher.

    Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!

  5. #5
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, im really glad, and im going to continue to make boss scripts and post them here of course

  6. #6
    Leadx's Avatar Member
    Reputation
    3
    Join Date
    Oct 2007
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like you've put alot of time in this script. Looks great! Could be a good use to me! +Rep whenever I can, but I currently can't because I am still a leecher. :yuck:

  7. #7
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks

    Please comment ^^

  8. #8
    AzolexX's Avatar Contributor
    Reputation
    179
    Join Date
    May 2007
    Posts
    587
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is community you are free to use other peoples templates without giving any credits. And he used it as template, but anyway it is nice if you post thanks or credits to helpers.

    Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!

  9. #9
    Tomatsuppen's Avatar Member
    Reputation
    2
    Join Date
    Sep 2007
    Posts
    73
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If all people did like Edude there would be some serious problems. How can he say that he has the basic knowledge of lua scripting. When all he does is to c/p usefull stuff from other peoples work. And rename some names , editing dmg and claiming it as his own new script.Read #1

    Any person can edit a luascript. Names / spells / dmg.

    I think its sad that some people even gave this guy rep. For what ?

    I could be a jerk. editing another guys script and get rep for higher rank. So could anyone else.

    This is so lame and disrespectful

  10. #10
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Tomatsuppen View Post
    If all people did like Edude there would be some serious problems. How can he say that he has the basic knowledge of lua scripting. When all he does is to c/p usefull stuff from other peoples work. And rename some names , editing dmg and claiming it as his own new script.Read #1

    Any person can edit a luascript. Names / spells / dmg.

    I think its sad that some people even gave this guy rep. For what ?

    I could be a jerk. editing another guys script and get rep for higher rank. So could anyone else.

    This is so lame and disrespectful
    He at least contributes, right?

  11. #11
    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)
    Okay, so someone deleted my posts about him Stealing my script.

    I will drop the matter, but i find it stupid that he is able to get away with this.

  12. #12
    Gunzarles's Avatar Active Member

    Reputation
    32
    Join Date
    Aug 2007
    Posts
    339
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Nymphx View Post
    Okay, so someone deleted my posts about him Stealing my script.

    I will drop the matter, but i find it stupid that he is able to get away with this.
    Maybe he used one of the thousand LUA guides to make this script?
    I dont have to be yours. Theres also a LUA script generator.

  13. #13
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok I didnt use a LUA script generator

    I used the first part of a script. BUT I edited it! Totaly mine now... Btw Im working on another script, and no confusions will be made you'll see.

    All the best ^^

  14. #14
    Etna's Avatar Banned
    Reputation
    20
    Join Date
    Sep 2007
    Posts
    349
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice mate ! keep ut the work

  15. #15
    [nitt]'s Avatar Member
    Reputation
    6
    Join Date
    Oct 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice work mate.
    And he "mite" of stole ur template but it's sure as hell better then yours.

    +Rep

Page 1 of 2 12 LastLast

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
  3. Lua Ascent Script Documentation
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-26-2007, 12:42 PM
  4. LUA Refrences
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 11-22-2007, 08:09 PM
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