AP: DEX is supposed to be twice your level until level 40. Once you reach level 40 your DEX is supposed to be your level +40. Your LUK is the determining factor in your damage, so all of your remaining AP should go into LUK.
SP: Your first priority is to get range, so you must max out keen eyes. After that, I would max out in this order:
and then the rest into Darkness
If you want the 2nd job skill Sudden Atack then put 3 into Disorder and then max Dark Sight before putting the rest of your SP into Darkness.