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