There are many PvP scripts for many different classes. Speeder can auto-target players based on their HP, status effects, distance, class, etc. For attacking, you can check cooldown status, status effects, HP/MP, etc., everything you need to optimize the rotation. The free/example scripts included with the program are well optimized for PvE and just need some tweaks for PvP.
[Only registered and activated users can see links. Click Here To Register...]. There are also some more recent hacks I added to the program, such as being able to move during CC/animation locks, which can be useful in PvP.