[Scripting Idea] How to make a great boss event in LUA! menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Arthas117's Avatar Knight-Champion
    Reputation
    151
    Join Date
    Mar 2007
    Posts
    483
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Scripting Idea] How to make a great boss event in LUA!

    This is just an idea for you that know lua scripting, but not how to create a "great" boss event :P If you don't understand, you dont know how to do lua scripting.

    OBS: I wont tell you ids and such, you can get it yourself from Illidan1's lua scripting guide at http://www.mmowned.com/forums/emulat...-updating.html


    Take a look at this...

    [quote]

    function Arthas_Shadow_Bolt(Unit, event, miscunit, misc)
    print "Arthas Shadow Bolt"
    Unit:FullCastSpellOnTarget(29924,Unit:GetClosestPlayer())
    Unit:SendChatMessage(11, 0, "Shadow Bolt on you...")
    end
    function Arthas_Reflection(Unit, event, miscunit, misc)
    print "Arthas Reflection"
    Unit:FullCastSpellOnTarget(40832,Unit:GetRandomPlayer())
    Unit:SendChatMessage(11, 0, "Flames...Great flames of Death...")
    end
    function Arthas_Arthas(Unit, event, miscunit, misc)
    print "Arthas Arthas"
    Unit:FullCastSpellOnTarget(41078,Unit:GetRandomPlayer())
    Unit:SendChatMessage(11, 0, "I call upon the SHADOW POWER!")
    end
    function Arthas_Cleave(Unit, event, miscunit, misc)
    print "Arthas Cleave"
    Unit:FullCastSpell(31779)
    Unit:SendChatMessage(11, 0, "Cleave...")
    end
    function Arthas_Thunderclap(Unit, event, miscunit, misc)
    print "Arthas Thunderclap"
    Unit:FullCastSpellOnTarget(40647,Unit:GetClosestPlayer())
    Unit:SendChatMessage(11, 0, "Shadow Prison for you! You got no way to escape!") [quote]

    This, is a example of a phase... To make it useable with time, do input something like this...
    function Kazzak(unit, event, miscunit, misc)
    print "Kazzak"
    unit:RegisterEvent("Kazzak_Enrage",1000,1)
    unit:RegisterEvent("Kazzak_Shadow_Bolt",10000,0)
    unit:RegisterEvent("Kazzak_Reflection",17000,0)
    unit:RegisterEvent("Kazzak_Kazzak",23000,0)
    unit:RegisterEvent("Kazzak_Cleave",27000,0)
    unit:RegisterEvent("Kazzak_Thunderclap",33000,0)
    unit:RegisterEvent("Kazzak_Void_Bolt",37000,0)
    unit:RegisterEvent("Kazzak_Soul",600000,1)
    Now I'll make a lil guide on how to make a phase...

    First of all, you got to decide when it will be done... Choose one of those Id's


    You start it like this...

    function <mobname>_<function> (Unit, event, miscunit, misc)
    print <mobname> <function>
    pUnit:<choose something of the next list...>
    end

    now make another one...and other one...

    The pUnit things... I gonna link some myself

    :SendChatMessage (type, lang, "message")
    :FullCastSpell(spellID)
    :Scale(Scale)
    :EmoteState(EmoteStateID)
    isplayID(DisplayID)
    ok, when you're done with the functions...You'll make the phase thing...


    function <mobname_phase_<id>(unit, event, miscunit, misc)
    print "mobname_phase_id>"
    unit:RegisterEvent("MobName_Function",Time(Miliseconds),1)
    end
    RegisterUnitEvent(mob_id,event_id,"Mobname_Phase_Id")

    How to: Make your mob do more than one thing while dying/etc

    Lets take a look at something and you'll find out yourself...

    function Arthas_Death_1(unit, event, miscunit, misc)
    print (Arthas Death 1)
    pUnit:EmoteState(1)
    pUnit:SendChatMessage(11, 0, "Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
    end

    function Arthas_Death_2(unit, event, miscunit, misc)
    print (Arthas Death 2)
    pUnit:SendChatMessage(11, 0, "You...mortals... You are not prepared to face the wrath... of Allidari...!")
    end

    function Arthas_Death_3(unit, event, miscunit, misc)
    print ("Arthas Death 3)
    pUnit:EmoteState(0)
    end

    function Arthas_Death(unit, event, miscunit, misc)
    print ("Arthas Death")
    Unit:RegisterEvent("Arthas_Death_1", 1, 1)
    Unit:RegisterEvent("Arthas_Death_2", 100, 1)
    Unit:RegisterEvent("Arthas_Death_3", 150, 1)
    end
    Unit:RegisterEvent(232323, 4, "Arthas_Death")

    (I made this now for you)

    Well, I know that its not a good guide, but also its not a guide... If you think it sucks, you really dont know the point of it :P

    World best PvP Paladin=Me? GG ;D


    [Scripting Idea] How to make a great boss event in LUA!
  2. #2
    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)
    The "print ()" function does not need to be included at all : /
    It just prints words to logon.exe for devs to see.
    Life Puzzler WoW - Website | Forums

  3. #3
    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)
    Time to disect your fight...

    Code:
    function Arthas_Death_1(unit, event, miscunit, misc)
    print (Arthas Death 1)
    pUnit:EmoteState(1)
    pUnit:SendChatMessage(11, 0, "Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
    end
    
    function Arthas_Death_2(unit, event, miscunit, misc)
    print (Arthas Death 2)
    pUnit:SendChatMessage(11, 0, "You...mortals... You are not prepared to face the wrath... of Allidari...!")
    end
    
    function Arthas_Death_3(unit, event, miscunit, misc)
    print ("Arthas Death 3)
    pUnit:EmoteState(0)
    end
    
    function Arthas_Death(unit, event, miscunit, misc)
    print ("Arthas Death")
    Unit:RegisterEvent("Arthas_Death_1", 1, 1)
    Unit:RegisterEvent("Arthas_Death_2", 100, 1)
    Unit:RegisterEvent("Arthas_Death_3", 150, 1)
    end
    Unit:RegisterEvent(232323, 4, "Arthas_Death")


    1) Nothing will work in the first three functions, as you've declared the npc as a "unit" and you are trying to run functions as "pUnit:..."
    2) You've forgot the quotes in your "print" functions.
    3) In your Arthas_Death function, Each sequence will rapidly repeat itself until the npc is gone. Since you have no restrictions, Arthas_death_1 will repeat itself every .001 second. The Arthas_death_2 will repeat itself every .1 second. And the Arthas_Death_3 function will repeat itself every .15 seconds.
    In the end, your chatlog will fill up in less than a second with:
    Code:
    Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
    Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
    Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
    Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
    You...mortals... You are not prepared to face the wrath... of Allidari...!")
    Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
    You...mortals... You are not prepared to face the wrath... of Allidari...!")
    Ner'zhul, mylord... I have failed you... They make me a paladin once again...")
    You...mortals... You are not prepared to face the wrath... of Allidari...!")
    Life Puzzler WoW - Website | Forums

  4. #4
    Arthas117's Avatar Knight-Champion
    Reputation
    151
    Join Date
    Mar 2007
    Posts
    483
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hehe...Ty for correcting it +rep btw Now I know whats wrong with my script...xD

    World best PvP Paladin=Me? GG ;D


Similar Threads

  1. Replies: 13
    Last Post: 10-27-2008, 11:42 PM
  2. [Idea] How to make scammed cash legit
    By cooper101 in forum WoW Scam Prevention
    Replies: 8
    Last Post: 06-18-2008, 12:29 AM
  3. [Guide] How to make a great website with account registration [Noob Friendly]
    By King Shaun in forum WoW EMU Guides & Tutorials
    Replies: 84
    Last Post: 06-16-2008, 08:26 PM
  4. [Guide] How to make Custom Raid Bosses + Quest!
    By Drop_Warcrack in forum WoW EMU Guides & Tutorials
    Replies: 18
    Last Post: 02-29-2008, 10:29 PM
  5. Ideas how to make gold
    By G_Masta in forum Community Chat
    Replies: 2
    Last Post: 05-19-2007, 09:42 AM
All times are GMT -5. The time now is 11:31 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