add bot camp timer to prevent /camp exploits

This commit is contained in:
nytmyr
2024-11-13 10:10:47 -06:00
parent 6d97536e38
commit 2e0840db72
5 changed files with 10 additions and 0 deletions
+2
View File
@@ -4341,6 +4341,7 @@ void Client::Handle_OP_Camp(const EQApplicationPacket *app)
return;
}
camp_timer.Start(29000, true);
bot_camp_timer.Start((RuleI(Bots, CampTimer) * 1000), true);
return;
}
@@ -14760,6 +14761,7 @@ void Client::Handle_OP_SpawnAppearance(const EQApplicationPacket *app)
SetFeigned(false);
BindWound(this, false, true);
camp_timer.Disable();
bot_camp_timer.Disable();
}
else if (sa->parameter == Animation::Sitting) {
SetAppearance(eaSitting);