PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: Hemarr on 04 January, 2008, 14:15:59

Title: Auto script restarter
Post by: Hemarr on 04 January, 2008, 14:15:59
Hi I was wondering if there is a script out  that
would  restart scripts on a timed basis..

For new API



Title: Re: Auto script restarter
Post by: speedX on 04 January, 2008, 17:33:29
Here


-- Auto Script Restarter [NEW API] by speedX (05/01/08)

-- Requested By Hemarr


-- Bot Name
sBot = SetMan.GetString(21)

-- Time Interval for script restart
mins = "10"

function OnStartup()
    Core.RegBot(sBot,"","",true)
    tmr = TmrMan.AddTimer(mins*60000)
end

function OnTimer(tmr)
    ScriptMan.Restart()
end
Title: Re: Auto script restarter
Post by: Hemarr on 05 January, 2008, 04:09:17
Thanks so much  speedX

awesome ;D