AshuraX Posted August 23, 2016 Posted August 23, 2016 please help me. i want the hourly point to have limit. Ex. after the player reached 5hours it will reset to 0 after when the server ticks to the next day thanks! hourlypoints.txt Quote
0 cjvirus09 Posted August 23, 2016 Posted August 23, 2016 //Check for 5 hours consecutive if(@consecutive_hour == 5) { set @consecutive_hour,0; getitem 31025,2; dispbottom "You receive "+.cpoint_amt+" Blue Potions in playing for 3 consecutive hours"; } else addtimer .timer,"hourlypoints::OnPointGet"; end; OnClock0000: // Exactly 12:00 Midnight @consecutive_hour=0; end; Quote
0 AshuraX Posted August 26, 2016 Author Posted August 26, 2016 //Check for 5 hours consecutive if(@consecutive_hour == 5) { set @consecutive_hour,0; getitem 31025,2; dispbottom "You receive "+.cpoint_amt+" Blue Potions in playing for 3 consecutive hours"; } else addtimer .timer,"hourlypoints::OnPointGet"; end; OnClock0000: // Exactly 12:00 Midnight @consecutive_hour=0; end; I get script_rid2sd: fatal error ! player not attached! help pls Quote
Question
AshuraX
please help me. i want the hourly point to have limit.
Ex.
after the player reached 5hours it will reset to 0 after when the server ticks to the next day
thanks!
hourlypoints.txt
3 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.