Read these two links closely.
http://www.macroquest2.com/wiki/index.php/Modbot_Class_INI_Examples#Enchanter
http://www.macroquest2.com/wiki/index.php/ModBot
On the examples page, do not cookbook the examples! Some still need alittle/alot of tweaking to work properly.
On the MQ2 site, there...