Jump to content
  • 0

HELP! Hourly Points with limit per day


AshuraX

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  06/10/13
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  07/27/15
  • Last Seen:  


//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;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  06/10/13
  • Last Seen:  

	//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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  193
  • Reputation:   41
  • Joined:  07/21/16
  • Last Seen:  

Post the entire script?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...