SA-MP Forums Archive
About Bots [Info] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: About Bots [Info] (/showthread.php?tid=365040)



About Bots [Info] - Sting. - 01.08.2012

I'm going to follow kc's wonderful tutorial on how to create/add bots. "NPC". Now I just have a few questions for those who have the experience on this.
Question 1: Will the bots join my server even if I have a login/register system? Will it have problems?

Question 2: Adding many bots will cause lag or problems? Or is it just fine?

That will be all. Please answer if you know about BOTS. Thanks.


Re: About Bots [Info] - DeathOnaStick - 01.08.2012

Quote:
Originally Posted by RTR12
Посмотреть сообщение
I'm going to follow kc's wonderful tutorial on how to create/add bots. "NPC". Now I just have a few questions for those who have the experience on this.
Question 1: Will the bots join my server even if I have a login/register system? Will it have problems?

Question 2: Adding many bots will cause lag or problems? Or is it just fine?

That will be all. Please answer if you know about BOTS. Thanks.
1: Depends on how good your login system is. There is a function you can use to determine wether a player is a bot or a real client, IsPlayerNPC, or sth like that.

2. Depends on how good your host is. The movement of bots has to be calculated and also be transferred to the clients. The impact on connection is the same as with a real client, I think, so it will be like if you have one more player on the server. Ofcourse Bots will use RAM and CPU of your host, but I don't think that will be that much.

I hope this helped you a little bit.


Re: About Bots [Info] - Sting. - 02.08.2012

Yeah it did. Sorry I took long to reply.


Re: About Bots [Info] - Sting. - 02.08.2012

Yeah I have another question. Example I have 50 player slots. Now in the serverlist it says 1/50 because Im playing in it right now for example. Now I added bots. Lets say 5 Bots. Now the remaining player slots will be 45 right? But I wanted to ask now, with the bots, will the serverlist say 1/50 (But there are bots in the server). Your id will be 5 am I right? Just this very big curious question.


Re: About Bots [Info] - jeremy8810 - 02.08.2012

Quote:
Originally Posted by RTR12
Посмотреть сообщение
Yeah I have another question. Example I have 50 player slots. Now in the serverlist it says 1/50 because Im playing in it right now for example. Now I added bots. Lets say 5 Bots. Now the remaining player slots will be 45 right? But I wanted to ask now, with the bots, will the serverlist say 1/50 (But there are bots in the server). Your id will be 5 am I right? Just this very big curious question.
Thats right


Re: About Bots [Info] - Sting. - 02.08.2012

Oh I see. Thanks.