New macro detection features (#7359)

* Adds battle config macro_detection_punishment to ban or jail characters.
* Adds battle config macro_detection_punishment_time to adjust the duration of ban/jail for players who fail the captcha challenges.
* Adds script command macro_detector which invokes the captcha challenge.
* General cleanups to the jail functions to remove duplicate code.
* General cleanups to the macro punishment calls to remove duplicate code.
* Ending SC_JAILED will now properly remove the jail status rather than trying to reset the timer to 1 second resolving any possibility of players getting stuck.
Thanks to @Lemongrass3110!
This commit is contained in:
Aleos
2022-12-13 15:44:42 -05:00
committed by GitHub
parent 5a533a7a12
commit ee2dcf816e
10 changed files with 154 additions and 55 deletions

View File

@@ -24776,7 +24776,7 @@ void clif_parse_macro_reporter_ack(int fd, map_session_data *sd) {
return;
}
pc_macro_reporter_process(*sd, *tsd);
pc_macro_reporter_process(*tsd, sd->status.account_id);
clif_macro_reporter_status(*sd, MCR_MONITORING);
#endif
}