mmm this one doesn't seem to be a complete sentence.
The boy is the subject. And you've added many modifiers:
1. smart
2. cold
3. one who despises and ignores
4. one from whom you have to beg for attention
but what does this boy do?
a simple way to fix this would be:
He was a smart, cold boy who despises and ignores you; and from whom you have to beg for affection.
so you can't use which as well, because you're referring to the boy. and you're also begging for affection FROM him, not FOR him. I hope this helps!!