Jump to content

timer


matttu

Recommended Posts

Hey!

Im trying to show people that server gets refreshed in 30 minutes but when i change some stuff it bugs loot system

this is the right one.

function refreshItemLootPoints () 
    local time = getRealTime() 
    local hour = time.hour 
    outputChatBox("#ff2200ATTENTION #ffffff - Item refresh in 1 minute! #FF0000 BEWARE OF MASSIVE LAG!",getRootElement(),255,255,255,true) 
    setTimer(refreshItemLoots,60000,1) 
end 
setTimer(refreshItemLootPoints,gameplayVariables["itemrespawntimer"] ,1) 

This is what i've done... if maybe someone can help? =)

function refreshItemLootasd () 
    local time = getRealTime() 
    local hour = time.hour 
    outputChatBox("#ff2200ATTENTION #ffffff- Item refresh in 30 minute!",getRootElement(),255,255,255,true) 
    setTimer(1800000,1) 
end 

Edited by Guest
Link to comment

So it should look like this?

function refreshItemLootasd () 
    local time = getRealTime() 
    local hour = time.hour 
    outputChatBox("#ff2200ATTENTION #ffffff- Item refresh in 30 minute!",getRootElement(),255,255,255,true) 
    setTimer(refreshItemLoots, 1800000, 1) 
end 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...