I have an include I have been debugging for a month now. I can tell you what I did, since it isn't quite ready for the snippets forum. :-)
Basically, you need to load an array from the ini file. Actually, if you look in my forage w/ ini support in the snippets forum. I use pretty much the same routine
http://macroquest2.com/phpBB2/viewtopic.php?t=7485
Look at the loadFromIni subroutine.
Then, after you RTFM. Use a for loop to iterate through your array. And just add the array value to your target line.
Check out some of the hunter macros for good examples of properly handling combat. In fact I thinck there is a ini based hunter posted.
Good Luck. This should get you started.