PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: kepp on 15 December, 2003, 18:12:54

Title: Restart scripts on timer
Post by: kepp on 15 December, 2003, 18:12:54
Ok, i need a timer
that can RestartScript every 5-10 minutes or so by using the inbuilt command...
I just don't know how to...
Thanks
Title:
Post by: c h i l l a on 15 December, 2003, 22:56:09
to bad there is no restart func, in Ptokax, but hey..
kepp, just say what you need. Maybe it can be done without having to restart the scripts.
Title:
Post by: Guibs on 15 December, 2003, 23:21:05
Hi there,...

Yup,... It depends of what you want to get,....

maybe just:
---
function OnTimer()
 Main()
end
---
It could help,... :)

l8tr, ;)
Title:
Post by: [NL]trucker on 16 December, 2003, 00:04:02
look into this thread then you all know what he wants to accomplish


http://board.univ-angers.fr/thread.php?threadid=752&boardid=17&styleid=1&sid=579bd8b13817711a69f077accfb1883c
Title:
Post by: kepp on 16 December, 2003, 01:03:03
Yea, guibs, i thought about that too...
But, that won't restart all scripts in the dir folder :)

Hmm.. it is indeed a long time ago i used any inbuilt command but as far as i remember........ i've seen it somewhere... :S
Title:
Post by: kepp on 16 December, 2003, 17:30:00
Well, You can look at it at like this:

There is an Inbuilt Command like Restartscripts:

I've tried to send the command to main From my bot on a timer.... No Success, PtokaX won't even capture what's being sent...

There is not an inbuilt command like Restartscripts:

Then YES of corse, it's Impossible :(:(

 :rolleyes:  :rolleyes: