The AI was created by this guy:
I couldn't find it on the forums using the search function so I thought I'd post it. If it has already been posted let me know and I will take this down or mods can take it down.
<rules>
<rule name="prepare smash">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="1" timeout="2000"/>
<cmd name="chase" chase_target="enemy" run="true" timeout="500"/>
<cmd name="move_against" distance="200" run="true" timeout="500"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="smash"/>
</rule>
<rule name="smash, prepare ice">
<conditions>
<condition name="skill_preparable" pet_skill="icebolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="move_against" distance="300" run="true" timeout="500"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="smash" down="true"/>
</rule>
<rule name="ice unavailable=>smash, prepare lightning">
<conditions>
<condition name="skill_preparable" pet_skill="lightningbolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="move_against" distance="300" run="true" timeout="500"/>
<cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="smash" down="true"/>
</rule>
<rule name="release ice">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="process_skill" target="enemy" timeout="0"/>
<cmd name="move_against" distance="200" run="true" timeout="500"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="icebolt"/>
</rule>
<rule name="release lightning">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="process_skill" target="enemy" timeout="0"/>
<cmd name="move_against" distance="200" run="true" timeout="500"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="smash"/>
</rule>
</rules>
This little small piece of code is ingenious and I use it all the time with my pandas.