Limit Bot Class Count per Group
Hello there,
i am currently trying to limit the amount of same class-bots per group for my solo server project and am having a little trouble doing so. what i was trying was to simply not let them being invited to group when there is already the same class present: Code:
void Bot::ProcessBotGroupInvite(Client* c, std::string botName) { anyone able to help me out on that ? would highly appreciate it :D |
I'm assuming that it's crashing, or at least letting the bot in?
As far as the code..try this: Code:
void Bot::ProcessBotGroupInvite(Client* c, std::string botName) { That's off the cuff..so, I don't know if it works. |
thanks, gonna try it :D
|
it works perfectly and in case someone is looking to do the same, thats what my code looks like atm:
Code:
void Bot::ProcessBotGroupInvite(Client* c, std::string botName) { the reason for Code:
BotGroupOrderFollow(g,c); //godrage my personal reason for this change is to simply enforce a policy to see bots as dearly beloved group members and not as zerg fodder :) |
All times are GMT -4. The time now is 01:06 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.