Lua Help menu

Shout-Out

User Tag List

Thread: Lua Help

Results 1 to 4 of 4
  1. #1
    svedin's Avatar Contributor
    Reputation
    124
    Join Date
    Jun 2008
    Posts
    557
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Help

    Hello, now im here with a question.

    How can i do so a GameObject deletes after use?!?

    I have a thought that this script will work but i dont know
    (not good in Lua when it came to Objects)

    Code:
    function SM_Objectiv_onUse(Unit)
    Unit:SpawnCreature(940808, 374.531311, -124.924187, 32.495598, 1.610082, 168, 60000)
    end
    
    function SM_Objectiv_delete(pGameObject, event, pMisc)
    pMisc:Gameobjectdelete (950900)
    end
    
    RegisterGameObjectEvent (950900 ,4, "SM_Objectiv_onUse")
    RegisterGameObjectEvent (950900 ,5, "SM_Objectiv_delete")
    and here is the Sql of the Object.

    Code:
    INSERT INTO  `gameobject_names` VALUES ('950900','10','210','Scarlet Hold Registry','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0');
    Plox Help ^^

    Lua Help
  2. #2
    lesone's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    52
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use c++ better to spawn objects

  3. #3
    TheNacho's Avatar Member
    Reputation
    12
    Join Date
    Apr 2008
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lesone, Lua is the preference of most people due to C++ being harder to learn.

  4. #4
    svedin's Avatar Contributor
    Reputation
    124
    Join Date
    Jun 2008
    Posts
    557
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I maby will learn to script in C++, but i just thought that some one can tell what "command" that will be for get the object deleted after use.

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 12:15 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