You can't just bolt them right on, the shocks are too long and will cause damage to the ball joints, possibly resulting in personal injury.
You would have to either modify your frame, modify the a-arms, get a mount kit from Diamond J customs that relocates the upper shock mounts, or get custom made a-arms that can handle the longer shocks. The safest way without permanently modifying your frame is using the D.J. kit, but that's around $90, and you'll be spending at least another $150 more on the shocks, so you're not too far off getting a set of works shocks valved to your specs at that point.
I can't speak from experience with yfz shocks on the warrior, but I know yfz shocks are stiff as **** even with the longer a-arms that yfz's have, so I would suspect the ride would really beat the hell out of you with the warrior's short a-arms. My raptor 700 has basically the same 4-way adjustable shocks like the yfz with slightly different valving from the factory, and they are great shocks for not being aftermarket, but they also beat you up more than the soft damper rod style shocks on the warrior and older raptors. It's up to you but I wouldn't recommend them. If you do want to try them though, I could probably sell you the Diamond J mount kit that's been sitting in my shed for 3 years. I used it for about a week and took it off because it didn't help the problem with my shitty burgard a-arms.