The
entire code
will not fit into
one post so I'll be adding it section-by-section in my own replies to this thread.
Instructions : Copy/Paste what is written in the «Spoilers» it into NotePad.Exe, then go to the next Spoiler-Code,
append that to what you have already pasted into NotePad, repeat and rinse or rinse and repeat until all sections are combined, then go into your Mabi-Client with a pet summoned, right-click on your pet, choose «Set Guidelines» followed by clicking on the «New AI» button, make the «See Source» tab active, then all of that code that you pasted into NotePad, high-light the whole thing (such as with the Ctrl+A short-cut when the cursor is blinking within NotePad), copy it then switch to your Mabinogi-Window, followed by clicking on the «Paste» button. Don't forget to give this a name in the upper-box where it shows «AI Name» in your AI Editor. Finally, when you click the «Confirm» button, everything should be saved into your A.I. list, with the name you provided.
When I named it originally, I went with calling it «Mystical(Full-Hybrid)», due to it based on pet-archetypes that I deemed to fit that theme-name.
Some of my others included «Fast-Run» for most of the Horses & Canines as «Fire-Bolt» was their only magic-spell & was coded accordingly. Anyway...
Let's go over all of those steps one more time just for the sake of having an organised check-list :
➤ Open NotePad.Exe or any other equivalent text-editing program/app
➤ Click the «Spoiler» button in this thread/post below to open the first part of the Pet-AI-Code
➤ High-Light the entire available Pet-AI-Code
➤ Copy the Pet-AI-Code (such as via Ctrl+C)
➤ Switch to your Text-Editor and Paste (such as via Ctrl+V)
➤ Click on the next «Spoiler» button in my follow-up post to this thread for the second part of the Pet-AI-Code
➤
Append the next part of the Pet-AI-Code into your Text-Editor
(
adding to what's IN the text-editor from the end and
not replacing it from the beginning
!)
➤ Repeat the above steps until
all «Spoiler» Pet-AI-Codes have been
combined into your Text-Editor
➤
Select the
entire Pet-AI-Code Text from your Text-Editor (such as via Ctrl+A while in your Text-Editor)
➤ Now «Copy» the
entire Pet-AI-Code onto your Clip-Board from your Text-Editor (such as via Ctrl+C)
➤ Summon a Pet from the Mabinogi-Client Window (Any Pet will Do at This Stage)
➤ Right-Click on Pet and Select «Set Guidelines»
➤ Click on the «New AI» button in the AI Editor box
➤ Click on the «See Source» Tab to make it Active
➤ Now click on the «Paste» button within the «AI Editor» box in order to transfer all of that Pet-AI-Code from your Clip-Board for your Mabi-Pet(s)
➤ Give this Pet-A.I.-Code a name up in the box indicated by «AI Name» in the AI Editor Box
➤ Now click on the «Confirm» button (should save it into your list of Pet A.I. options)
Although I made several, this one is the one that I find myself usually using the most, and it is compatible with the majority of the more recent pets, too.
Most of its behaviours were designed for back in the day/era when it was important not to interrupt skill-load combos (but that's largely irrelevant now).
This Pet-AI-Code
can «Solo» one-on-one against most non-hax-level melee-type monster-spawns as long as you do not interrupt its sequences.
Without further delay...
<rules>
<rule name="{M[BA]}{O[Fly]}{Sm[5x]None+BA[None]}">
<conditions>
<condition name="target_state" state="blowaway"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="basic"/>
</rule>
<rule name="{M[BA]}{O[Hit&Slid]}{Sm[5x]None+BA[None]}">
<conditions>
<condition name="target_state" state="shoved"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="basic"/>
</rule>
<rule name="{M[CT]}{}{Sm[5x]None+BA[None]}">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="counter"/>
</rule>
<rule name="{M.Def[BA]}{}{Sm[5x]None+BA[None]}">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_defence" defence_enable_skill="basic"/>
</rule>
<rule name="{M.Def[FB]}{M[HP80~]}{Chase[M]3s+Heal[None]None+5(Use[M]None+Wait[1-1s])}">
<conditions>
<condition name="master_damaged_life_greater" life="80"/>
<condition name="skill_preparable" pet_skill="healing"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="master" timeout="3000" run="true"/>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="5" timeout="0"/>
<cmd name="process_skill" target="master" timeout="0"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="0"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="0"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="0"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="0"/>
</sequence>
</pattern>
<event name="master_defence" defence_enable_skill="firebolt"/>
</rule>
<rule name="{M.Def[IB]}{}{Sm[5x]None+BA[None]}">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_defence" defence_enable_skill="icebolt"/>
</rule>
<rule name="{M.Def[LB]}{}{Sm[5x]None+BA[None]}">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_defence" defence_enable_skill="lightningbolt"/>
</rule>
<rule name="{M.Def[MM]}{}{Sm[5x]None+BA[None]}">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_defence" defence_enable_skill="mirage_missile"/>
</rule>
<rule name="{M.Def[MS]}{}{Sm[5x]None+BA[None]}">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_defence" defence_enable_skill="magnum_shot"/>
</rule>
<rule name="{M.Def[RA]}{}{Sm[5x]None+BA[None]}">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_defence" defence_enable_skill="ranged_attack"/>
</rule>
<rule name="{M.Def[W]}{}{Sm[5x]None+BA[None]}">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_defence" defence_enable_skill="windmill"/>
</rule>
<rule name="{M[Sm]}{}{Sm[5x]None+BA[None]}">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="smash"/>
</rule>
<rule name="{M[W]}{M[HP80~]}{Chase[M]3s.Run+Heal[5x]None+5(Use[M]None+Wait[1-1s])}">
<conditions>
<condition name="master_damaged_life_greater" life="80"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="master" timeout="3000" run="true"/>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="5" timeout="0"/>
<cmd name="process_skill" target="master" timeout="0"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="0"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="0"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="0"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="0"/>
<cmd name="wait" min="1000" max="1000"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="windmill"/>
</rule>
<rule name="{M[FB]}{}{Sm[5x]None+BA[None]}">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="firebolt"/>
</rule>
<rule name="{M[IB]}{O[Fly]}{Sm[5x]None+BA[None]}">
<conditions>
<condition name="target_state" state="blowaway"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="icebolt"/>
</rule>
<rule name="{M[IB]}{O[Hit&Slid]}{Sm[5x]None+BA[None]}">
<conditions>
<condition name="target_state" state="shoved"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="icebolt"/>
</rule>
<rule name="{M[LB]}{O[Fly]}{Sm[5x]None+BA[None]}">
<conditions>
<condition name="target_state" state="blowaway"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="lightningbolt"/>
</rule>
<rule name="{M[LB]}{O[Hit&Froz]}{Sm[5x]None+BA[None]}">
<conditions>
<condition name="target_state" state="hit"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="lightningbolt"/>
</rule>
<rule name="{M[LB]}{O[Hit&Slid]}{Sm[5x]None+BA[None]}">
<conditions>
<condition name="target_state" state="shoved"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="lightningbolt"/>
</rule>
<rule name="{M[MM]}{O[Fly]}{Sm[5x]None+BA[None]}">
<conditions>
<condition name="target_state" state="blowaway"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="mirage_missile"/>
</rule>