[HELP] Check Time

07/13/2010 03:59 Manly393#1
I am trying to add a rewards npc to my server, although the npc and rewards are easy I only want people to be able to collect it once a day. Can anyone help me with the cq action for this? I assume some sort of phase is involved?
07/13/2010 17:30 magewarior2#2
Code:
ACTION_USER_TASK_MANAGER = 1080, /////////////////////////////////////////////////
													////data:Mission number,
													//param: 'new' (for foundation new record)
													// 'delete' (deletion record)
													// 'isexit' (duty whether existence)
													/////////////////////////////////////////////////
		
		ACTION_USER_TASK_OPE =1081, /////////////////////////////////////////////////
													//data: Mission number, if data == -1, then the following operation is aims at findnext to carry on
													//param: 'ope opt data', data (value)
													// ope(phase) opt (>=, ==, +=, =) to duty stage operation										
													// ope(completenum) opt (>=, ==, +=, =) to end of mission number of times operation		
													// ope(begintime) opt (>=, ==, +=, =, reset) to duty beginning time operation, regarding += when take the second as the parameter;Regarding " >=, ==, = " when take " yyyy-mm-dd hh:mm:ss " as the form												
													// reset expression establishes the duty beginning time as the current time
		ACTION_USER_TASK_LOCALTIME = 1082, /////////////////////////////////////////////////////////
													//data: Mission number,      
													//param: `second number', current time and duty beginning time comparison action;If the current time and the duty difference of beginning time is bigger than param, otherwise then returns to true. to return to false
													//////////////////////////////////////////////////////////////////////
studdy the lottery for better options (begintime reset ect)