Lua Wait Command? Script. menu

User Tag List

Results 1 to 6 of 6
  1. #1
    moongo's Avatar Member
    Reputation
    14
    Join Date
    Mar 2007
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Wait Command? Script.

    Hey, could anyone tell me what the wait command is?
    I need a 5 sec pause between 2 lines in my script...
    -Ekarc

    Lua Wait Command? Script.
  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)
    Just make another function, then register it in 5000ms
    There is no "wait" command
    you could try something like, sleep(ms)
    But i doubt it will work
    Life Puzzler WoW - Website | Forums

  3. #3
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope. Sleep(ms) doesn't work.

  4. #4
    Pwntzyou's Avatar Contributor
    Reputation
    264
    Join Date
    Dec 2007
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    GHETTO SLEEP INC


    Code:
    timer = 0
    
    function sleep_lua(pUnit, event)
    
    timer = timer + 1
    
    if timer >= numberinseconds then
    pUnit:RegisterEvent("eventname", 1000, 1)
    
    else
    pUnit:RegisterEvent("sleep_lua",1000,1)
    end
    end

    A complete working script of this ==

    Code:
    timer = 0
    
    function sleep_lua(pUnit, event)
    
    timer = timer + 1
    print timer
    
    if timer >= 5 then
    pUnit:RegisterEvent("testmob_lua", 1000, 1)
    
    else
    pUnit:RegisterEvent("sleep_lua",1000,1)
    end
    end
    
    function testmob_lua(pUnit, event, win)
    pUnit:SendChatMessage(12, 0, "SLEEP COMMAND LULZ")
    end
    
    RegisterUnitEvent(939, 1, "sleep_lua")
    Last edited by Pwntzyou; 05-14-2008 at 12:41 AM.

    <3 MysterioussouL for the sig

  5. #5
    Demonkunga's Avatar Banned
    Reputation
    124
    Join Date
    Jun 2006
    Posts
    2,376
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OWNED!!1111!!!1

  6. #6
    Skype's Avatar Member
    Reputation
    133
    Join Date
    Dec 2007
    Posts
    116
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Agreed with Demon
    Owned.
    xD


Similar Threads

  1. [2.4][LUA] The Boss Scripts!
    By BrantX in forum World of Warcraft Emulator Servers
    Replies: 30
    Last Post: 10-07-2008, 05:17 PM
  2. [LUA][SQL] Angel Script
    By BrantX in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 06-11-2008, 02:21 PM
  3. VanCleef LUA - 4 Phases Script
    By Creepfold in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 05-11-2008, 05:13 AM
  4. [LUA] Mulgore Creatures Scripted
    By SectorSeven in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 04-11-2008, 01:00 AM
  5. GM - Command scripts -need help-
    By Ganoran in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 11-03-2007, 02:32 PM
All times are GMT -5. The time now is 09:45 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