Throw bot_camp_timer behind Bots:Enabled rule

This commit is contained in:
nytmyr committed 2025-01-20 12:09:30 -06:00
1 parent 744a1d23c0
commit 28fbdc6877
2 files changed
+10 -3

No files matched your search

+6 -1
View File
@@ -4292,8 +4292,13 @@ void Client::Handle_OP_Camp(const EQApplicationPacket *app)
OnDisconnect(true);
return;
}
camp_timer.Start(29000, true);
bot_camp_timer.Start((RuleI(Bots, CampTimer) * 1000), true);
if (RuleB(Bots, Enabled)) {
bot_camp_timer.Start((RuleI(Bots, CampTimer) * 1000), true);
}
return;
}
+4 -2
View File
@@ -193,8 +193,10 @@ bool Client::Process() {
return false; //delete client
}
if (bot_camp_timer.Check()) {
CampAllBots();
if (RuleB(Bots, Enabled)) {
if (bot_camp_timer.Check()) {
CampAllBots();
}
}
if (camp_timer.Check()) {