+20 for this
any update of this npc?
query_sql "select timestampdiff( hour, completion, now() ), unix_timestamp( date_add( completion, interval "+ .@redo_delay +" hour ) ) from player_mission where cid = "+ getcharid(0) +" and mission_id = "+ .@id[.@i] +" order by completion desc limit 1", .@diff_delay, .@deny_time;
that line of code might conflict so that npc says "You cant pick this mission, you have mission redo delay isnt finish yet."