- script AttendanceScript -1,{
OnPCLoginEvent:
// last login was BEFORE today
if (#lastDayOnline < gettimetick(2)/86400) {
// last login was exactly YESTERDAY, set consecutive_days +1
if (#lastDayOnline == (gettimetick(2)/86400 - 1))
set #consecutive_days, #consecutive_days+1;
else // reset their streak to 1
set #consecutive_days, 1;
set #lastDayOnline, gettimetick(2)/86400;
set #CASHPOINTS, #CASHPOINTS + 2;
dispbottom "Gained 2 HPRO Points. Total = " + #CASHPOINTS;
// check for 7-day streak
if (#consecutive_days % 7 == 0){
set #CASHPOINTS, #CASHPOINTS + 50; // Jellopy
dispbottom "Gained 50 HPRO Points. Total = " + #CASHPOINTS;
// check for 30-day streak
if (#consecutive_days % 30 == 0){
set #CASHPOINTS, #CASHPOINTS + 200; // Jellopy
dispbottom "Gained 200 HPRO Points. Total = " + #CASHPOINTS;
// save today as the Last Day they were Online
}
}
}
end;
}
Question
Jhosef
i want to change this item to mithrill coin
Link to comment
Share on other sites
1 answer 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.