Hi ! I just want to ask if there is an hourly points system like this that wont hault even if I reloadscript ??? Also I tried adding gepard settings ...I dont know if my modification is right. I dont know who is the author of this script, a friend just gave this to me ... Thankyou !
Quote
- script hangoutpoints FAKE_NPC,{
OnInit:
set .Gepard,0;
announce "[Hang Out Reward System]: Hang out reward system has been reloaded, please relog again to get more points.", bc_all;
.point_name$ = "Hango Out Points";
.point_amt = 1; // Normal points gained.
.dlimit = 900; // Stop points if afk greater then in seconds. 600s = 10 minutes //43200
.enable = 1;
.level = 30;
.online_time = 1800; // One hour = 3600 seconds
OnPCLoginEvent:
/*if (.Gepard == 1) { //GEPARD SHIELD ID CHECKER
query_sql("SELECT last_unique_id FROM `login` WHERE account_id = "+getcharid(3)+"", .@UniqueId$);
query_sql("SELECT account_id FROM `login` WHERE last_unique_id = '"+.@UniqueId$+"'", .@CuentaId);
set .@error,getcharid(3,strcharinfo(0));
for(set .@i ,0;.@i<getarraysize(.@CuentaId);set .@i,.@i+1) {
if(attachrid(.@CuentaId[.@i])) {
if (.@CuentaId == 2000001) {
set .@j,0;
}
else {
set .@j,.@j+1;
}
}
}
detachrid;
attachrid .@error;
if(.@j > 1) {
#acctick += @idle_time; // Add idle time
#idle = 1;
dispbottom "The hang out reward system haulted because you were loggedin with same Gepard ID.";
end;
}
}*/
if (BaseLevel >= .level)
{
#idle = 0;
@backup_time = 0;
if (checkvending() >= 1 || @idle_time >= .dlimit) // checkchatting() == 1 ||
{
#acctick += @idle_time; // Add idle time
#idle = 1;
dispbottom "The hang out reward system haulted because you were vending, chatting, or idle.";
}
else
{
sleep2 1000;
if (.@Minutes == 15 && .@time_left == 0 || .@Minutes == 30 && .@time_left == 0 || .@Minutes == 45 && .@time_left == 0)
dispbottom "[Hang Out Reward System]: You spend a total of [" + .@Time$ + "] playing.";
}
}
if (#idle)
break;
}
}
end;
OnPCLogoutEvent:
// BackUP online time
if (BaseLevel >= .level)
{
if (@backup_time)
#acctick = @backup_time;
}
end;
OnCheckPoints:
dispbottom "[Hang Out Reward System]: You have a total of ["+ #HANGOUTPOINTS +"] Hang Out Points.",0xRRGGBB;
end;
OnAtcommand:
if (BaseLevel >= .level)
{
if (#idle)
{
.@Time$ = "";
.@Minutes = @idle_time / 60;
.@time_left = @idle_time - (.@Minutes * 60);
Question
Eross
Hi ! I just want to ask if there is an hourly points system like this that wont hault even if I reloadscript ??? Also I tried adding gepard settings ...I dont know if my modification is right. I dont know who is the author of this script, a friend just gave this to me ... Thankyou !
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.