- script Hourly Active -1,{
OnUpdate:
if( checkvending() == 0 || checkchatting() == 1 ){
set @Minute,@Minute + 1;
if( @Minute % 30 == 0 ){
set #CASHPOINTS, #CASHPOINTS + 1;
dispbottom "You've been Active for 30 minutes, +1 Cash point(s) in your Balance.";
set @Hour,@Hour + 1;
if( @Hour % 7 == 0 ){
set #CASHPOINTS, #CASHPOINTS + 10;
getitem 14232,4;
getitem 25138,10;
dispbottom "You've been Actively Online for 7 Hours, +10 Cash point(s) in your Balance.";
}
}
} else {
if( checkvending() == 0 || checkchatting() == 0){
set @Minute,@Minute + 1;
if( @Minute % 60 == 0 ){
set #CASHPOINTS, #CASHPOINTS + 2;
// getitem 7227,1;
dispbottom "You've Been AFK for 1 hour, +1 Cash point(s) in your Balance.";
set @Hour,@Hour + 1;
if( @Hour % 12 == 0 ){
set #CASHPOINTS, #CASHPOINTS + 10;
// getitem 14232,10;
// getitem 25138,10;
dispbottom "You've Been AFK for 12 hours, +1 Cash point(s) in your Balance.";
}
}
}
}
OnPCLoginEvent:
addtimer 60000,strnpcinfo(0)+"::OnUpdate";
end;
}
My problem with this Hourly Points script that i am using .. made by sir Euphy i guess but i modified this for my server.
this script should work like this:
If a player is not vending and is chatting he will receive 1cash point every 30mins
while the other one
if a player is not vending and is afk he will receive 1cash point every 1 hour
PROBLEM:
still it gives vending player 1 cash points per hour even it is in normal vend or using autotrade..
please help