mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 07:17:16 +00:00
Throw bot_camp_timer behind Bots:Enabled rule
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user