User Tag List

Results 1 to 3 of 3

Thread: Timers

  1. #1
    Member
    Join Date
    Jul 2016
    Posts
    15
    XP
    176
    Level
    2
    Thanks
    0
    Thanked 1 Time in 1 Post

    Timers

    Does Eluna have any timers?

    Like i want to execute something each 30 mins fomr the moment the server starts.
    There an timer that runs an function on certain intervals?

  2. #2
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,860
    XP
    13,531
    Level
    35
    Thanks
    95
    Thanked 592 Times in 419 Posts
    Code:
    local function timed(event, delay, repeats)
       -- code
    end
    
    CreateLuaEvent(timed, 1000, 0)
    http://eluna.emudevs.com/Global/CreateLuaEvent.html

    If you are looking for creature/player/gameobject specific timed events later, they are creature:RegisterEvent(...)
    and they work exactly the same way as createluaevent except a 4th argument is passed to the function that is triggered, in this case the "creature" would be after the "repeats" in the code above
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  3. #3
    Original Poster
    Member
    Join Date
    Jul 2016
    Posts
    15
    XP
    176
    Level
    2
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thank you very much.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •