int counter = static_cast<int>(pc_readreg2( sd, ATTENDANCE_COUNT_VAR ));
// Check if we have a remaining counter from a previous period
if( counter >= 25 && !pc_attendance_rewarded_today(sd) ){
pc_setreg2( sd, ATTENDANCE_COUNT_VAR, 0 );
return 0;
}
@jamesandrew You're getting lots of errors because you didn't close the if statement, here:
if (stristr(output, " : ") || stristr(output, " ; ") || stristr(output, " ") ||
stristr(output, "Tokei") || stristr(output, "Saga") || stristr(output, "Pegasus") ||
stristr(output, "GM ") || stristr(output, "[G M]") || stristr(output, " GM") || strstr(output, "GM") || stristr(output, "[GM]") || stristr(output, "(GM)") || stristr(output, "{GM}") ||
stristr(output, "skype") || stristr(output, "discord") || stristr(output, "facebook")) {
clif_colormes(sd->fd, color_table[COLOR_RED], "You are only allowed to type a maximum of 3 spaces in a row.");
return;
Also, I don't know if that code is old, but my emulator would treat any sent msg as detected and filtered out, and thats because on the output variable there is a " : " char sequence, so stristr(output, " : ") triggers on it
So, yeah, you're missing a bracket. (And I removed the faulty check)
On conf/battle/battle.conf
// Do weapon attacks have a attack speed delay before actual damage is applied? (Note 1)
// NOTE: The official setting is yes, even though it degrades performance a bit.
delay_battle_damage: yes