[ULTIMATE] Lua Guide & Tutorial menu

User Tag List

Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 57
  1. #31
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Extreme bumpage.

    [ULTIMATE] Lua Guide & Tutorial
  2. #32
    ~Keric Vi Britannia~'s Avatar Member
    Reputation
    13
    Join Date
    Oct 2007
    Posts
    91
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This thread does need some epic bumpage... It's one of the most fluent, well-thought, written out, and explained guides I have seen. Not compared to those crappy "How to script a boss!" guides, which are oh so horrible, even if done by a high ranking person on MMOwned. I'm still re-reading this for the fifth time, to try and learn Lua on my own. x) I still need help though..
    Caeli Absolutio.
    Picking back up C++, learning Lua later.

  3. #33
    shadowstep0705's Avatar Member
    Reputation
    9
    Join Date
    Aug 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i got a question: can i use a flag a text message, like when i type something in, the script will get activated

  4. #34
    WargRider's Avatar Member
    Reputation
    20
    Join Date
    Oct 2007
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When your doing the part with the teleporting only GMS, I dont know if this works with LUA but I am pro C so instead of all the elseifs, try something like

    elseif(playername != "GM n1" && playername != "GM n2") then

    the && signifies an "and" statement instead of all the ifs, so basically what your syaing if the player here is NOT a GM and if you want ONLY gms, then based on the name change the && to || which is an "or" statement and change the != to == which is obvious what it means . IK if ti will work or not I dont really script too much in LUA but it might work give it a try.

  5. #35
    Found's Avatar Banned
    Reputation
    239
    Join Date
    Mar 2009
    Posts
    642
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +Rep but seriously stop with the LUA tuts.

  6. #36
    digger514's Avatar Member
    Reputation
    1
    Join Date
    Jun 2009
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help

    ok i read the variables but i don't really get what the variable does/is. Is it just there? please help

  7. #37
    Saedusii's Avatar Contributor
    Reputation
    116
    Join Date
    Nov 2007
    Posts
    457
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bumpification/Nomination.
    Last edited by Saedusii; 10-16-2009 at 10:38 PM.


  8. #38
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Amazing. Simply Amazing, Use to be into .Lua alot, This might be what it takes to get me back into trying again.

    Thank you!

    +Rep

  9. #39
    xgamer08's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem....

    this is my first script and i have it in my script folder and lua is enabled but it still wnt work. is there something wrong with my script? i made the boss from wow-v btw if that is any help.

  10. #40
    xgamer08's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    here is the script:

    function Deathwing_OnCombat (Unit, Event)
    pUnit:SendChatMessage (12, 0, "You will burn by the fires of the Black Dragon Flight!")
    pUnit:RegisterEvent ("Deathwing_Boulder", 5000, 5)
    pUnit:RegisterEvent ("Deathwing_Armageddon", 10000, 0)
    end

    function Deathwing_Boulder (pUnit, Event)
    pUnit:CastSpellOnTarget (59732, pUnit:GetRandomPlayer (0))
    end

    function Deathwing_Armageddon (pUnit, Event)
    pUnit:CastSpell (45915)
    end

    function Deathwing_OnDied (Unit, Event)
    pUnit:SendChatMessage (12, 0, "No........This cannot be.....I promise all of you will burn!")
    pUnit:RemoveEvents()
    end

    function Deathwing_OnKilledTarget (Unit, Event)
    pUnit:SendChatMessage (12, 0, "HAHAHAHA. Yet another incinerated soul!")
    end

    function Deathwing_OnLeaveCombat (Unit, Event)
    pUnit:RemoveEvents()
    end

    RegisterUnitEvent(50, 1, "Deathwing_OnCombat")
    RegisterUnitEvent(50, 4, "Deathwing_OnDied")
    RegisterUnitEvent(50, 3, "Deathwing_OnKilledTarget")
    RegisterUnitEvent(50, 2, "Deathwing_OnLeaveCombat")

  11. #41
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xgamer08 View Post
    here is the script:

    function Deathwing_OnCombat (Unit, Event)
    pUnit:SendChatMessage (12, 0, "You will burn by the fires of the Black Dragon Flight!")
    pUnit:RegisterEvent ("Deathwing_Boulder", 5000, 5)
    pUnit:RegisterEvent ("Deathwing_Armageddon", 10000, 0)
    end

    function Deathwing_Boulder (pUnit, Event)
    pUnit:CastSpellOnTarget (59732, pUnit:GetRandomPlayer (0))
    end

    function Deathwing_Armageddon (pUnit, Event)
    pUnit:CastSpell (45915)
    end

    function Deathwing_OnDied (Unit, Event)
    pUnit:SendChatMessage (12, 0, "No........This cannot be.....I promise all of you will burn!")
    pUnit:RemoveEvents()
    end

    function Deathwing_OnKilledTarget (Unit, Event)
    pUnit:SendChatMessage (12, 0, "HAHAHAHA. Yet another incinerated soul!")
    end

    function Deathwing_OnLeaveCombat (Unit, Event)
    pUnit:RemoveEvents()
    end

    RegisterUnitEvent(50, 1, "Deathwing_OnCombat")
    RegisterUnitEvent(50, 4, "Deathwing_OnDied")
    RegisterUnitEvent(50, 3, "Deathwing_OnKilledTarget")
    RegisterUnitEvent(50, 2, "Deathwing_OnLeaveCombat")
    Well, First off all it would be nice if you was to put it into [code] boxes, but none the less i will help you out, what you have done is placed a " " after each of the commands, which in call is probably not making them be called to work. So let me fix it up for you!

    Code:
    function Deathwing_OnCombat(Unit, Event)
        Unit:SendChatMessage(12, 0, "You will burn by the fires of the Black Dragon Flight!")
        Unit:RegisterEvent("Deathwing_Boulder", 5000, 5)
        Unit:RegisterEvent("Deathwing_Armageddon", 10000, 0)
    end
    
    function Deathwing_Boulder(Unit, Event)
        Unit:CastSpellOnTarget(59732, Unit:GetRandomPlayer (0))
    end
    
    function Deathwing_Armageddon(Unit, Event)
        Unit:CastSpell(45915)
    end
    
    function Deathwing_OnDied(Unit, Event)
        Unit:SendChatMessage(12, 0, "No........This cannot be.....I promise all of you will burn!")
        Unit:RemoveEvents()
    end
    
    function Deathwing_OnKilledTarget(Unit, Event)
        Unit:SendChatMessage(12, 0, "HAHAHAHA. Yet another incinerated soul!")
    end
    
    function Deathwing_OnLeaveCombat(Unit, Event)
        Unit:RemoveEvents()
    end
    
    RegisterUnitEvent(50, 1, "Deathwing_OnCombat")
    RegisterUnitEvent(50, 4, "Deathwing_OnDied")
    RegisterUnitEvent(50, 3, "Deathwing_OnKilledTarget")
    RegisterUnitEvent(50, 2, "Deathwing_OnLeaveCombat")
    Now that is just from what i can quickly see, there seems to be no noticable errors so try that one. Thanks for posting

    EDIT:Aha even noticed another one, you have a mix of "pUnit" and "Unit", which im guessing could also be clashing, and the fact you are sometimes calling on "Unit" and using "pUnit" instead. So, One sec ill fix it again.

    There you go, that one should work.
    Last edited by Kiev; 10-22-2009 at 01:56 PM. Reason: Correction

  12. #42
    xgamer08's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok ive fixed wat u said was wrong but it still isnt working. ive tried making the id my entry id and the npc that i used id but neither of them works. any ideas?

  13. #43
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found a "error".
    Here you state this:
    Code:
    Unit:SendChatMessage(language, channeltype, "Message")
    However, here, you clearly ment to broadcast a message in universal, but you put it wrong.

    Code:
    Unit:SendChatMessage(41, 0, "Creature begins to transform!, and his minion appears!")

  14. #44
    Valmere's Avatar Contributor
    Reputation
    166
    Join Date
    Apr 2007
    Posts
    362
    Thanks G/R
    16/31
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just was I was looking for, nice guide! +Rep when I can.
    Last edited by Valmere; 10-29-2009 at 10:44 AM.
    wat

  15. #45
    Gooze's Avatar Member
    Reputation
    11
    Join Date
    Oct 2008
    Posts
    9
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    After reading this through a couple of times i'm starting to get a sense of lua scripting, this guide just rock!

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [Lua Script] Ultimate Lua Tutorial
    By Trle94 in forum WoW EMU Guides & Tutorials
    Replies: 9
    Last Post: 01-05-2011, 10:08 PM
  2. Ultimate Reputation Guide
    By Krazzee in forum World of Warcraft Guides
    Replies: 12
    Last Post: 06-06-2007, 07:47 PM
  3. Ultimate Gold Guide <User and Pass>
    By janzi9 in forum World of Warcraft General
    Replies: 16
    Last Post: 12-16-2006, 07:58 PM
  4. Blackwing Lair: Ultimate Boss Guide
    By Matt in forum World of Warcraft Guides
    Replies: 11
    Last Post: 11-02-2006, 05:18 AM
  5. Ultimate Battlegrounds Guide!!!
    By Krazzee in forum World of Warcraft Guides
    Replies: 5
    Last Post: 10-29-2006, 08:34 PM
All times are GMT -5. The time now is 11:34 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search