NPC keep alive

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

DigiDood
Posts: 10
Joined: 12 Aug 2010, 13:44

NPC keep alive

Postby DigiDood » 07 Jun 2011, 20:06

I need help in keeping bots alive. I have successfully created bots, and joined them to rooms, etc.

However, I can't figure out how to keep them from timing out.
I've reviewed the npc example provided by smartfox, but it doesn't have anything in it to keep the bot alive.
Viktor
Posts: 36
Joined: 27 Jan 2011, 22:25

Re: NPC keep alive

Postby Viktor » 07 Jun 2011, 20:48

DigiDood wrote:I need help in keeping bots alive. I have successfully created bots, and joined them to rooms, etc.

However, I can't figure out how to keep them from timing out.
I've reviewed the npc example provided by smartfox, but it doesn't have anything in it to keep the bot alive.


Make the bot speak right before kick time?
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 08 Jun 2011, 06:41

You'll need to increase the MaxUserIdleTime value, or as Victor said - send a empty message to the server every once in a while to keep the connection alive.

SFS2X will have a better control of NPCs.
Smartfox's forum is my daily newspaper.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 25 guests