why does this script not working properly /.... when i restart the server the hourly item reward is not working again
even i recompile the server many times
but before its working how does this happen
BTW this is the script
- script hourlypoints -1,{
//--Start of the Script
OnPCLoginEvent:
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;
OnTimer30000:
//Check if Vending (normal or @at)
if(checkvending() >= 1) {
dispbottom "The hourly badge rewards has stopped because you were vending . Please relog if you wish to start again.";
stopnpctimer;
end;
}
OnTimer60000:
set @minute, @minute + 1;
//Check for 1 Minute
if(@minute == 60){
set @minute,0;
getitem 7859,1;
dispbottom "You received 1 "+getitemname( 7859 )+" by staying ingame for 1 hour.";
set @consecutive_hour, @consecutive_hour + 1;
}
//Check for 12 hours consecutive
if(@consecutive_hour == 5) {
set @consecutive_hour,0;
getitem 7859,5;
dispbottom "You received 5 "+getitemname( 7859 )+" by staying ingame for consecutive of 5 hours.";
}
stopnpctimer;
initnpctimer;
end;
}
Question
Quesooo
can you please help me for my problem
why does this script not working properly /.... when i restart the server the hourly item reward is not working again
even i recompile the server many times
but before its working how does this happen
BTW this is the script
- script hourlypoints -1,{ //--Start of the Script OnPCLoginEvent: attachnpctimer ""+strcharinfo(0)+""; initnpctimer; end; OnTimer30000: //Check if Vending (normal or @at) if(checkvending() >= 1) { dispbottom "The hourly badge rewards has stopped because you were vending . Please relog if you wish to start again."; stopnpctimer; end; } OnTimer60000: set @minute, @minute + 1; //Check for 1 Minute if(@minute == 60){ set @minute,0; getitem 7859,1; dispbottom "You received 1 "+getitemname( 7859 )+" by staying ingame for 1 hour."; set @consecutive_hour, @consecutive_hour + 1; } //Check for 12 hours consecutive if(@consecutive_hour == 5) { set @consecutive_hour,0; getitem 7859,5; dispbottom "You received 5 "+getitemname( 7859 )+" by staying ingame for consecutive of 5 hours."; } stopnpctimer; initnpctimer; end; }
thank you more power
Link to comment
Share on other sites
12 answers 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.