Pixel Posted April 15, 2020 Posted April 15, 2020 how to change a reward to attendance system be on account and not per character? Quote
0 pachupappy Posted April 15, 2020 Posted April 15, 2020 21 minutes ago, Pixel said: how to change a reward to attendance system be on account and not per character? can you post the full script here? it should be included in your config. Quote
0 Pixel Posted April 15, 2020 Author Posted April 15, 2020 14 minutes ago, pachupappy said: você pode postar o script completo aqui? deve ser incluído na sua configuração. Is the official system Quote
0 Mabuhay Posted April 16, 2020 Posted April 16, 2020 (edited) Not tested but do let me know : in pc.cpp Spoiler Search for the line with (-) then change to (+).. -return pc_readreg2( sd, ATTENDANCE_DATE_VAR ) >= date_get(DT_YYYYMMDD); +return pc_readaccountreg( sd, ATTENDANCE_DATE_VAR ) >= date_get(DT_YYYYMMDD); // Get the counter for the current period -int counter = pc_readreg2( sd, ATTENDANCE_COUNT_VAR ); +int counter = pc_readaccountreg( sd, ATTENDANCE_COUNT_VAR ); // Check if we have a remaining counter from a previous period -if( counter > 0 && pc_readreg2( sd, ATTENDANCE_DATE_VAR ) < period->start ){ +if( counter > 0 && pc_readaccountreg( sd, ATTENDANCE_DATE_VAR ) < period->start ){ // Reset the counter to zero -pc_setreg2( sd, ATTENDANCE_COUNT_VAR, 0 ); +pc_setaccountreg( sd, ATTENDANCE_COUNT_VAR, 0 ); return 0; } -int32 attendance_counter = pc_readreg2( sd, ATTENDANCE_COUNT_VAR ); +int32 attendance_counter = pc_readaccountreg( sd, ATTENDANCE_COUNT_VAR ); -pc_setreg2( sd, ATTENDANCE_DATE_VAR, date_get(DT_YYYYMMDD) ); -pc_setreg2( sd, ATTENDANCE_COUNT_VAR, attendance_counter ); +pc_setaccountreg( sd, ATTENDANCE_DATE_VAR, date_get(DT_YYYYMMDD) ); +pc_setaccountreg( sd, ATTENDANCE_COUNT_VAR, attendance_counter ); Edited April 16, 2020 by Mabuhay 1 Quote
0 mazvi Posted January 12, 2021 Posted January 12, 2021 the default is per account, not per character Quote
Question
Pixel
how to change a reward to attendance system be on account and not per character?
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.