- script hourlypoints -1,{
OnPCLoginEvent:
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;
OnTimer60000:
if(checkvending() >= 1) {
dispbottom "Kafra points event stopped because you were vending. Close your vending shop if you wish to get points again!";
stopnpctimer;
initnpctimer;
end;
}
set @minute, @minute + 1;
if(@minute == 60){
set @minute,0;
set .@point_amt, 10;
set #KAFRAPOINTS, #KAFRAPOINTS + .@point_amt;
dispbottom "You received "+.@point_amt+" Kafrapoints by staying ingame for 1 hour!";
dispbottom "Current Balance = "+#KAFRAPOINTS+" Kafrapoints";
set @consecutive_hour, @consecutive_hour + 1;
}
if(@consecutive_hour == 12) {
set @consecutive_hour,0;
set .@cpoint_amt, 50;
set #KAFRAPOINTS, #KAFRAPOINTS + .@cpoint_amt;
dispbottom "You receive "+.@cpoint_amt+" Kafrapoints in playing for 12 consecutive hours!";
dispbottom "Current Balance = "+#KAFRAPOINTS+" Kafrapoints";
}
stopnpctimer;
initnpctimer;
end;
}