BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Module Requests => Topic started by: Nytridr on July 29, 2007, 12:28:37 am

Title: starting a bot from a bot
Post by: Nytridr on July 29, 2007, 12:28:37 am
is there a way to start a bot from a bot?  I mean I have a bot that I never need excpet for certain things, and dont need to keep it running.  is there a way to have the bot started from in game?
Title: Re: starting a bot from a bot
Post by: Khalem on July 29, 2007, 02:26:15 am
Technically you can likely use exec() if it is allowed by your PHP configuration.

http://no2.php.net/manual/en/ref.exec.php
Title: Re: starting a bot from a bot
Post by: Vhab on July 29, 2007, 09:19:41 am
Doesn't that freeze the calling process till the new process stops?
Title: Re: starting a bot from a bot
Post by: kuznechik on July 29, 2007, 10:22:31 am
Hm, any reason to not have that bot running always? Not that it generates much traffic or CPU load...
Title: Re: starting a bot from a bot
Post by: Vhab on July 29, 2007, 08:51:42 pm
Well, if the process froze it means the bot "running" the other bot would go unresponsive.
Example: bot1 starts bot2, bot2 works fine, bot1 doesn't respond till bot2 shuts down.
Not really an effective solution.
That would be if exec() is used.
SimplePortal 2.3.7 © 2008-2025, SimplePortal