Throw bot_camp_timer behind Bots:Enabled rule

This commit is contained in:
nytmyr
2025-01-20 12:09:30 -06:00
parent 744a1d23c0
commit 28fbdc6877
2 changed files with 10 additions and 3 deletions
+5
View File
@@ -4292,8 +4292,13 @@ void Client::Handle_OP_Camp(const EQApplicationPacket *app)
OnDisconnect(true); OnDisconnect(true);
return; return;
} }
camp_timer.Start(29000, true); camp_timer.Start(29000, true);
if (RuleB(Bots, Enabled)) {
bot_camp_timer.Start((RuleI(Bots, CampTimer) * 1000), true); bot_camp_timer.Start((RuleI(Bots, CampTimer) * 1000), true);
}
return; return;
} }
+2
View File
@@ -193,9 +193,11 @@ bool Client::Process() {
return false; //delete client return false; //delete client
} }
if (RuleB(Bots, Enabled)) {
if (bot_camp_timer.Check()) { if (bot_camp_timer.Check()) {
CampAllBots(); CampAllBots();
} }
}
if (camp_timer.Check()) { if (camp_timer.Check()) {
Raid *myraid = entity_list.GetRaidByClient(this); Raid *myraid = entity_list.GetRaidByClient(this);