LUA Function Thread menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    steveo123's Avatar Member
    Reputation
    8
    Join Date
    Apr 2008
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Function Thread

    I didnt see a thread like this so I figured id create 1 for posting functions and events and what not that you guys know when using LUA scripting bosses. I only know a few and would to know if anyone knew how to make an NPC spawn my adds and what not...but anyway here are what I know.

    PHP Code:
    function Boss_EnterCombat (pUnitevent
    Im pretty sure that this is a must have when creating a script, its telling your mob to enter combat. How you can tell is like this, When you see "(pUnit, event) that means that "Boss_EnterCombat" is in that formant, so your pUnit would be "Boss" and the event is your telling it to enter combat and begin fighting.

    PHP Code:
    pUnit:SendChatMessage(140"What YOUR Mob Will Say"
    This lets your monster yell stuff, pUnit again is "Boss" (your mob) so thats telling your mob to Send a chat message of what you want it to say (Sorry im still new to this I forget what the numbers were I got them all listed on my home PC)

    PHP Code:
    if pUnit:GetHealthPct() < 90 then 
    This is what you will do if you want a mob do something at a certain percentage of health. This is saying that IF pUnit (Boss) gets down to 90% hp or lower it will start doing whatever function you registered it to do.

    Thats really all ive figured out so far, still learning so hopefully someone will get use out of this..Also if anyone knows the command to make a mob SPAWN ADDS thatd be so great for you to post haha...Any questions ill try to help with just make a post or message me on aim at xXxSteveo89xXx Enjoy.

    LUA Function Thread
  2. #2
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got three things to say,

    1st: Wrong Section
    2nd: Drop the blue color.
    3rd: We already knew this.

  3. #3
    steveo123's Avatar Member
    Reputation
    8
    Join Date
    Apr 2008
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry I was hoping id help someone who didnt know this stuff

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Yeah this is the wrong thread Should have gone in Ascent Guides
    This has already been done so many times,
    And yeah, make sure you can read the colours easily :P

    It's nice your trying to contribute though Think of an area that hasn't already been done a thousand times or is outdated, and update it or make it, you'll be sure to get nice posts from that

Similar Threads

  1. Big List of Lua Functions
    By Lytle69 in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 10-15-2008, 03:02 AM
  2. [Guide] How to use local LUA function!
    By Dartignan in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 08-05-2008, 09:28 PM
  3. LUA compiled threads and more
    By runiker in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 06-18-2008, 03:35 AM
  4. Replies: 22
    Last Post: 05-29-2008, 03:52 PM
  5. [Question] Lua functions
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 04-10-2008, 07:39 PM
All times are GMT -5. The time now is 08:12 PM. 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