Help how to make it 1 Per IP
- script faith -1,{
OnPCLoginEvent:
if(gettimetick(2) - #faithd < (60 * 60 * 24)){ end; }
if(gettime(4) == 6) goto L_7Day;
message strcharinfo(0), "You received 5 Loyalty Points";
set #LoyaltyPoints,#LoyaltyPoints+5;
set #faithd,gettimetick(2);
set #consecutive,#consecutive+1;
end;
L_7Day:
if(gettimetick(2) - #faithd < (60 * 60 * 24)){ end; }
if(#consecutive == 7){
set #consecutive,1;
set #LoyaltyPoints,#LoyaltyPoints+20;
message strcharinfo(0), "Congratulations, You receive 20 Loyalty Points";
set #faithd,gettimetick(2);
end;
}
message strcharinfo(0), "You received 5 Loyalty Points";
set #LoyaltyPoints,#LoyaltyPoints+5;
set #faithd,gettimetick(2);
set #consecutive,1;
end;
}