LUA help menu

User Tag List

Thread: LUA help

Results 1 to 4 of 4
  1. #1
    marcelo_20xx's Avatar Active Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    165
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA help

    Ok I have another question. Can a spawned mob be lua scripted? by spawned I mean the mob is spawned by a script be it LUA or C++

    LUA help
  2. #2
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes, and here is how:
    :SpawnCreature(entryID, x, y, z, o, faction, duration) : Spawns a creature at a position with specified faction, despawning after duration milliseconds.

  3. #3
    Blackboy0's Avatar Member
    Reputation
    70
    Join Date
    Nov 2007
    Posts
    377
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Example script:

    Code:
    function Boss_Combat(Unit, event)
    Unit:SendChatMessage(14, 0, "You will never kill me!! Minions, attack!!")
    Unit:RegisterEvent("Boss_SpawnMinion", 1000, 1)
    end
    
    function Boss_SpawnMinion(Unit, event)
    x = Unit:GetX()
    y = Unit:GetY()
    z = Unit:GetZ()
    o = Unit:GetO()
    Unit:SpawnCreature(MINIONENTRYID, x - 3, y - 3, z, o, 14, 60000) -- Spawns beside the boss with Faction 14 for 1 minute
    end
    
    RegisterUnitEvent(BOSSENTRYID, 1, "Boss_Combat")

  4. #4
    marcelo_20xx's Avatar Active Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    165
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys, but no, I mean exactly this:

    - I spawned a mob via C++ on item spell use (something lua cant make right now):
    - I need to update the mobs flags at a certain reached health.

    error, the spawned mob didnt do anything once he reached the health percent defined.

    Oddly enough it works perfect on mobs that are already spawned via creature_spawns tables in the database.

    EDIT: Nevermind I already found another way to fix my problem, I am gonna to release it soon.
    Last edited by marcelo_20xx; 12-01-2008 at 11:00 PM.

Similar Threads

  1. [Help] Need LUA help? Post here!
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 10-03-2010, 01:18 PM
  2. [Help] i need Lua help with this script...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 25
    Last Post: 03-03-2008, 03:45 PM
  3. LUA help
    By stoneharry in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 02-25-2008, 03:27 PM
  4. Lua help
    By reconz in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-18-2008, 07:03 PM
  5. Lua help
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-04-2008, 12:17 PM
All times are GMT -5. The time now is 07:07 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