There is better information in the AFK bard kiting thread than I could provide here, so I will just walk you through compiling a plugin for MQ2.
First, follow the MQ2 compiling thread and get yourself a working version. Now, find the plugin you want to add. For instance, let's say you want to add the MQ2Twist plugin (twists for you):
-Open up the command prompt
-Change to your MQ2 directory (for instance if it is c:\mq2 you would type cd \mq2)
-Type mkplugin MQ2Twist
This will create all of the necessary files for you. Now, go grab the MQ2Twist source (it can be found on the macroquest forums, inside the plugin forum), copy the source, open up MQ2Twist.c and paste it in there (replace all).
Now, open up the MQ2 solution, go to file->add project->existing project. Navigate to MQ2Twist, and add the vcproj file. Next, rebuild MQ2 and it will build your new plugin with it. Once you are inside EQ (remember MQ2 can NOT be running while you build a new version), type /plugin MQ2Twist.
As per the AFK bard macros, there is more to it than just MQ2Twist. You will need MQ2MoveUtils (from the MQ forums), a targeting macro (is one in the AFK Bard Macro thread), and a location to start your kiting from.
Macros are easier to get running than plugins. All you do is go to your MQ2\release\Macros folder and create a new file with your macro name (like target.mac). Open up that file, copy and paste your macro into it and save it. Once inside EQ just type /macro target (or whatever you named your file).