Check out the patch notes for the Dungeon Guide System update: https://mabinogi.nexon.net/news/63107/dungeon-guide-system-patch-notes-november-12th-2020
[NEW MILLETIANS] Please note that all new forum users have to be approved before posting. This process can take up to 24 hours, and we appreciate your patience.
If this is your first visit, be sure to check out the Nexon Forums Code of Conduct. You have to register before you can post, so you can log in or create a forum name above to proceed. Thank you for your visit!

~One of My Personally Designed & Coded Pet A.I.'s~

HabimaruHabimaru
Mabinogi Rep: 2,925
Posts: 667
Member
in General Chat
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>
SherriLiberatepawcalypseYoridenMairu

Comments

  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    <rule name="{M[MM]}{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="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{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="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Stop]}{LB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Walk]}{Sm[5x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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>
    <rule name="{M[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_attack" master_skill="magnum_shot"/>
    </rule>
    <rule name="{M[MS]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="magnum_shot"/>
    </rule>
    <rule name="{M[MS]}{O[Stop]}{LB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="magnum_shot"/>
    </rule>
    <rule name="{M[MS]}{O[Walk]}{Sm[5x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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="magnum_shot"/>
    </rule>
    <rule name="{M[RA]}{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="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{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="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{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="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Stop]}{LB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Walk]}{Sm[5x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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="ranged_attack"/>
    </rule>
    <rule name="{P[BA]Down}{}{CT[5x]None+Wait[10-10s]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Down}{O[Fly]}{Def[5x]None+Hover[12ft]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Fly]}{Def[5x]None+Hover[12ft.Run]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="true" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Froz]}{BA{None]}">
    <conditions>
    <condition name="target_state" state="hit"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Down}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[CT]Down}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="counter" down="true"/>
    </rule>
    <rule name="{P.Def[BA]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="basic"/>
    </rule>
    <rule name="{P.Def[LB]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="firebolt"/>
    </rule>
    <rule name="{P.Def[IB]}}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="icebolt"/>
    </rule>
    <rule name="{P.Def[LB]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="lightningbolt"/>
    </rule>
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    <rule name="{P.Def[MM]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="mirage_missile"/>
    </rule>
    <rule name="{P.Def[MS]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="magnum_shot"/>
    </rule>
    <rule name="{P.Def[RA]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="ranged_attack"/>
    </rule>
    <rule name="{P.Def[W]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="windmill"/>
    </rule>
    <rule name="{P[LB]Down}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="lightningbolt" down="true"/>
    </rule>
    <rule name="{P[LB]Up}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{P[Sm]Down}{}{CT[5x]None+Wait(10-10s)}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[CC]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[CC]}{O[Stop]}{LB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[BA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="basic" down="false"/>
    </rule>
    <rule name="{!!M[CT]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!M[LB]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="firebolt" down="true"/>
    </rule>
    <rule name="{!!M[IB]Down}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="true"/>
    </rule>
    <rule name="{!!M[IB]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!M[LB]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="down"/>
    </rule>
    <rule name="{!!M[LB]Up}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!M[MM]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!M[MM]Up}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!M[MS]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="magnum_shot" down="true"/>
    </rule>
    <rule name="{!!M[RA]Down}{}{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_attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!M[RA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!M[Sm]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[WM]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="windmill" down="true"/>
    </rule>
    <rule name="{!!P[CC]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="target_skill_prepare"/>
    </rule>
    <rule name="{!!P[CT]Down}{}{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="attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!P[LB]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="firebolt" down="false"/>
    </rule>
    <rule name="{!!P[IB]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="down"/>
    </rule>
    <rule name="{!!P[IB]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!P[LB]Down}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="true"/>
    </rule>
    <rule name="{!!P[LB]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!P[MA]}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="target_magic_prepare"/>
    </rule>
    <rule name="{!!P[MM]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!P[MM]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!P[MS]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="magnum_shot" down="down"/>
    </rule>
    <rule name="{!!P[RA]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!P[RA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!P[RA~]}{O[3-12ft]}{Hover[18ft]2s+LB[1x]None+BA[None]}">
    <conditions>
    <condition name="target_distance" min_distance="100" max_distance="500"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="move_around" clockwise="false" radius="1800" run="true" timeout="2"/>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="aimed"/>
    </rule>
    <rule name="{!!P[W]Down}{}{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="attacked" master_skill="windmill" down="true"/>
    </rule>
    </rules>
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    Feel free to use if you do not wish to be stuck with the «Default» Pet A.I. options. Let others know how this Pet A.I. may have helped (or killed) you.
  • LordLyrumLordLyrum
    Mabinogi Rep: 100
    Post: 1
    Member
    I just wanna say thank you since I used to have a whole list to use a little back but since returning and having not saved my files this saves time on updating my pets!
  • GretaGreta
    Mabinogi Rep: 46,270
    Posts: 6,881
    Member
    edited November 22, 2019
    This is one really long A.I. or...? I'm confused.

    EDIT: Oh... Yup. Now i checked it gain.
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    edited November 22, 2019
    Good to know that it's working and without errors. I would find it ideal for my own purposes if our pets could be scaled up the way that Milletians were with those «Potential» levels but maybe the «Perks» system might have that possibility some day (A.I. tends to be less useful when pets end up being one-shot cannon-fodder after all).

    I shall add more in the future, probably some time before Christmas, but, before that, a brief explanation of some of my pet A.I. naming schemes...

    The in-parentheses names to track behaviour-types are as follows : Familiar, Full-Hybrid, Magi-Knight, Ninja, Ranger, Summoner, Tag-Team.

    Familiar : Only co-ordinates attacks when the pet's Master/Mistress uses Magic-Attacks (this was designed for the times when I wanted the pet to do its own thing while I melee or range-attacked a different target so that the pet wouldn't switch target to what I was attacking if I Smashed or Magnum-Shot something).

    Full-Hybrid : What this particular «mode» indicates is that the pet will co-ordinate with you in battle when you use certain skills from any of the three basic skill-types (the skill-types being Close-Combat, Magic-Attack and Ranged Attack [i.e.: Archery]). You may have already noticed this when casting Fire-Bolt or Magnum-Shot on an enemy spawn that didn't get one-shot. For Archery it was extremely crucial back in the day before Milletians became what might be considered OP.

    Magi-Knight : Co-Ordinates with you on the same target when you are using certain skills from the Close-Combat or Magic-Attack skill-sets.

    Ninja : Same as above except only for Close-Combat and Ranged (will not respond to your Magic-Attacks which was useful for not interrupting the Ice-Bolt/Counter-Attack combo back in the day when said strategy was one of the few reliable ways to defeat a much stronger opponent over time...).

    Ranger : Co-Ordinates only with Ranged Attack-Skill (Magnum-Shot in particular as I recall).

    Summoner : Co-Ordinates only with Magic-Attacks and Ranged-Attacks.

    Tag-Team : Co-Ordinates only with Close-Combat skills.

    ----

    Additional Potentially Useful Information : Now that free «Cloud» services exist, such as OneDrive, I tend to put the data-files that I always want to have accessible from any computer-device onto a Cloud-account (such as OneDrive). They are free, and if you are familiar with multiple languages, you can even find free versions of Cloud-Services in other languages, too (such as Oblaka from mail.ru; Oblaka being the transliteration of Облака from Russian which means Cloud).

    Alright, I was wondering what the «P-S» Tab meant in my Excel-File for Pet-Code, but, now, I remember it being the abbreviation for Pet-Solo. I think it might be able to fit in only one reply to this post, but, if not, I know for a fact that I only need to post twice for the whole sequence to be available. Will find out soon...
    LordLyrum wrote: »
    I just wanna say thank you since I used to have a whole list to use a little back but since returning and having not saved my files this saves time on updating my pets!
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    Nope, was 1404 characters too long to post, but here is Part 1/2 of Pet-Solo :
    <rules>
    <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="{P[BA]Down}{}{CT[5x]None+Wait[10-10s]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Down}{O[Fly]}{Def[5x]None+Hover[12ft]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Fly]}{Def[5x]None+Hover[12ft.Run]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="true" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Froz]}{BA{None]}">
    <conditions>
    <condition name="target_state" state="hit"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Down}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[CT]Down}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="counter" down="true"/>
    </rule>
    <rule name="{P.Def[BA]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="basic"/>
    </rule>
    <rule name="{P.Def[LB]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="firebolt"/>
    </rule>
    <rule name="{P.Def[IB]}}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="icebolt"/>
    </rule>
    <rule name="{P.Def[LB]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="lightningbolt"/>
    </rule>
    <rule name="{P.Def[MM]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="mirage_missile"/>
    </rule>
    <rule name="{P.Def[MS]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="magnum_shot"/>
    </rule>
    <rule name="{P.Def[RA]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="ranged_attack"/>
    </rule>
    <rule name="{P.Def[W]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="windmill"/>
    </rule>
    <rule name="{P[LB]Down}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="lightningbolt" down="true"/>
    </rule>
    <rule name="{P[LB]Up}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{P[Sm]Down}{}{CT[5x]None+Wait(10-10s)}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[CC]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[CC]}{O[Stop]}{LB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[BA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="basic" down="false"/>
    </rule>
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    Just note that I believe that I made all (or most) of these A.I. so that the pet would not initiate attacks as there used to be a time in Mabinogi when such behaviour could have been very dangerous for the whole team running a dungeon since it could have brought back a whole big huge large group of monsters to multi-agro the whole party at a time instead of everyone luring a single target one at a time in order to clear the dungeon strategically (although the need for that has been pretty much thrown out the window these days since quite a few years ago). Anyway, without further ado, this is Part 2/2 of Pet-Solo :
    <rule name="{!!M[CT]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!M[LB]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="firebolt" down="true"/>
    </rule>
    <rule name="{!!M[IB]Down}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="true"/>
    </rule>
    <rule name="{!!M[IB]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!M[LB]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="down"/>
    </rule>
    <rule name="{!!M[LB]Up}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!M[MM]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!M[MM]Up}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!M[MS]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="magnum_shot" down="true"/>
    </rule>
    <rule name="{!!M[RA]Down}{}{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_attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!M[RA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!M[Sm]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[WM]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="windmill" down="true"/>
    </rule>
    <rule name="{!!P[CC]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="target_skill_prepare"/>
    </rule>
    <rule name="{!!P[CT]Down}{}{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="attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!P[LB]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="firebolt" down="false"/>
    </rule>
    <rule name="{!!P[IB]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="down"/>
    </rule>
    <rule name="{!!P[IB]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!P[LB]Down}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="true"/>
    </rule>
    <rule name="{!!P[LB]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!P[MA]}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="target_magic_prepare"/>
    </rule>
    <rule name="{!!P[MM]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!P[MM]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!P[MS]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="magnum_shot" down="down"/>
    </rule>
    <rule name="{!!P[RA]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!P[RA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!P[RA~]}{O[3-12ft]}{Hover[18ft]2s+LB[1x]None+BA[None]}">
    <conditions>
    <condition name="target_distance" min_distance="100" max_distance="500"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="move_around" clockwise="false" radius="1800" run="true" timeout="2"/>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="aimed"/>
    </rule>
    <rule name="{!!P[W]Down}{}{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="attacked" master_skill="windmill" down="true"/>
    </rule>
    </rules>
  • pawcalypsepawcalypse
    Mabinogi Rep: 4,305
    Posts: 486
    Member
    Testing and making custom Pet AI's is what I do most often in Mabi, now-a-days. It is the only "complicated" thing left to do in the game. It's also fun when your pet can take down enemies better than a leecher in your party.
    In my experience, the only thing that annoys me is how your pet's stamina can affect their behavior. It does not matter what the command/rule is, once their stamina goes down at a certain level, they behave like there is no Pet AI, they become default.
    HP nor MP does not matter to the pet, they will continue to behave according to the AI you made as well as their default AI setting, only stamina greatly influences the pet's overall performance.
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    Here is another set. I did notice that there is a «A» (for «Aggressive») Tab in some of my Excel-Files but I haven't found the Aggressive-Version in this current set. Anyway, this one is called «Fast-Run(Full-Hybrid)», designed for pets like the Labrador Retriever, Golden Retriever, etc., due to the fact that their only offensive magic-spell is Fire-Bolt... anyway, without further delay, here is the code... Part 1/3:
    <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[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_defence" defence_enable_skill="firebolt"/>
    </rule>
    <rule name="{M.Def[IB]}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_defence" defence_enable_skill="icebolt"/>
    </rule>
    <rule name="{M.Def[LB]}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" 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]}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_defence" defence_enable_skill="ranged_attack"/>
    </rule>
    <rule name="{M.Def[WM]}{}{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]}{}{FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="firebolt"/>
    </rule>
    <rule name="{M[IB]}{O[Fly]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="icebolt"/>
    </rule>
    <rule name="{M[IB]}{O[Hit&Slid]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="icebolt"/>
    </rule>
    <rule name="{M[LB]}{O[Fly]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="lightningbolt"/>
    </rule>
    <rule name="{M[LB]}{O[Hit&Froz]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="hit"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="lightningbolt"/>
    </rule>
    <rule name="{M[LB]}{O[Hit&Slid]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" 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>
    <rule name="{M[MM]}{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="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{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="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Stop]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Run]}{BA[None]+FB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Walk]}{Sm[5x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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>
    <rule name="{M[MS]}{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="magnum_shot"/>
    </rule>
    <rule name="{M[MS]}{O[Run]}{BA[None]+FB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="magnum_shot"/>
    </rule>
    <rule name="{M[MS]}{O[Stop]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="magnum_shot"/>
    </rule>
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    ...just realised that I could shorten the number of characters and possibly fit this into only two posts next time by removing all of the tabbed spaces... anyway... here is the last part... with tab-spaces removed...Fast-Run(Full-Hybrid) Part 3/3:
    <rule name="{!!M[IB]Down}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="true"/>
    </rule>
    <rule name="{!!M[IB]Up}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!M[LB]Down}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="down"/>
    </rule>
    <rule name="{!!M[LB]Up}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!M[MM]Down}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!M[MM]Up}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!M[MS]Down}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="magnum_shot" down="true"/>
    </rule>
    <rule name="{!!M[RA]Down}{}{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_attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!M[RA]Up}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!M[Sm]Down}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[WM]Down}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="windmill" down="true"/>
    </rule>
    <rule name="{!!P[CC]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="target_skill_prepare"/>
    </rule>
    <rule name="{!!P[CT]Down}{}{FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!P[FB]Down}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="firebolt" down="false"/>
    </rule>
    <rule name="{!!P[IB]Down}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="down"/>
    </rule>
    <rule name="{!!P[IB]Up}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!P[LB]Down}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="true"/>
    </rule>
    <rule name="{!!P[LB]Up}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!P[MA]}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="target_magic_prepare"/>
    </rule>
    <rule name="{!!P[MM]Down}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!P[MM]Up}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!P[MS]Down}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="magnum_shot" down="down"/>
    </rule>
    <rule name="{!!P[RA]Down}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!P[RA]Up}{}{Def[5x]None+Hover[3ft.Walk]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="300" run="false" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!P[RA°]}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="aimed"/>
    </rule>
    <rule name="{!!P[W]Down}{}{FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="windmill" down="true"/>
    </rule>
    </rules>
    ...make sure to let me know if there are any issues in case I need to edit post for coding corrections.
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    Fast-Run(Full-Hybrid) Part 2/3:
    <rule name="{M[MS]}{O[Walk]}{Sm[5x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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="magnum_shot"/>
    </rule>
    <rule name="{M[RA]}{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="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{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="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{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="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Run]}{BA[None]+FB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Stop]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Walk]}{Sm[5x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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="ranged_attack"/>
    </rule>
    <rule name="{P[BA]Down}{}{CT[5x]None+Wait[10-10s]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Down}{O[Fly]}{Def[5x]None+Hover[12ft]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Fly]}{Def[5x]None+Hover[12ft.Run]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="true" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Froz]}{BA{None]}">
    <conditions>
    <condition name="target_state" state="hit"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Down}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[CT]Down}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="counter" down="true"/>
    </rule>
    <rule name="{P.Def[BA]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="basic"/>
    </rule>
    <rule name="{P.Def[FB]}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="firebolt"/>
    </rule>
    <rule name="{P.Def[IB]}}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="icebolt"/>
    </rule>
    <rule name="{P.Def[LB]}{}{FB[1x]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="lightningbolt"/>
    </rule>
    <rule name="{P.Def[MM]}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="mirage_missile"/>
    </rule>
    <rule name="{P.Def[MS]}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="magnum_shot"/>
    </rule>
    <rule name="{P.Def[RA]}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="ranged_attack"/>
    </rule>
    <rule name="{P.Def[W]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="windmill"/>
    </rule>
    <rule name="{P[FB]Down}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="firebolt" down="true"/>
    </rule>
    <rule name="{P[Sm]Down}{}{CT[5x]None+Wait(10-10s)}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[CC]}{O[Run]}{BA[None]+FB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[CC]}{O[Stop]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[BA]Up}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="basic" down="false"/>
    </rule>
    <rule name="{!!M[CT]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!M[FB]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="firebolt" down="true"/>
    </rule>
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    edited December 14, 2019
    Somehow the previous posts I added to this thread somehow got posted in the wrong chronological-order.
    Anyway, this next set, I call : Mystical(Magic-Knight)

    This will mostly be useful for Archers (or at least how I use it anyway). When it came to the previous Full-Hybrid version of this A.I., some of you may have noticed, that, when you used Magnum-Shot, the pet would automatically load Smash and prepare to attack the target you just hit. Said particular AI-pattern, how-ever, became problematic if you were trying to Magnum-spam on multiple targets, due to the fact that it interrupted your pet from using its Pet-Solo Combat-Sequences.

    Now, with this version of the A.I., you don't have to worry about inadvertently taking your pet out of its Counter-Attack stance when an opponent is approaching it with a Normal Attack, when using Magnum-Shot on a different target. To get the pet to start attacking your target of choice, use either a Bolt-Spell (Lightning Bolt or Ice-Bolt might fastest for Loading) or Smash on it, then you should't have to worry about that particular opponent whilst you prepare to Magnum-Shot a different opponent.

    Always make use of Divine-Link when possible ! Note that all of the A.I. I have produced/coded/designed will be much more useful for those who are not yet AoE-OHKO-ing everything in the Missions/Dungeons they run. Pet A.I. is largely irrelevant for those who can handle Phantasm-level Quests. For those of us who are not there yet, provided that you are combining it with High-Ranked Divine-Link, this should prove to be fairly useful in difficult Missions/Dungeons.

    I would like more people to get used to how this A.I. works if they don't have one that they use already, tell all of your Friends and Contact-List-members or even Guild-Members about it if you think they might benefit, and point every «new» player or returning player starting a-fresh to this thread. Alright... <looks around, left and right, glances about, and double-checks to make sure that I am not going to get called out for making «inappropriate» suggestions about how it is too bad that we cannot «Divine-Link» with our maids/butlers/commerce-partners/etc> ...anyway, Divine-Link is rather necessary in this current evolutionary stage of Mabi, so always make use of it and try to rank up Divine-Link as much as you possibly can, for the sake of being able to get the most benefit out of these A.I.'s.

    There is one thing I should mention that Divine-Link might interfere with that was not an issue prior to Divine-Link's existence, and that is that the Pet may take agro, even though you might want the agro to be on yourself when trying to co-ordinate attacks with your pet, which would cause the pet to get attacked and hit if the target you were trying to bait is rushing at your pet with a Normal-Attack instead of rushing at you (the reason I had it coded that way was so that the pet would interrupt what-ever was running at me by smashing it whilst I took the time to load up another big attack but Divine-Link may end up re-directing that agro to your pet instead).

    Anyway, without further delays, here are the code-sequences you will want to copy/paste for Mystical(Magi-Knight...
    Part 1/2:
    <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="{P[BA]Down}{}{CT[5x]None+Wait[10-10s]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Down}{O[Fly]}{Def[5x]None+Hover[12ft]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Fly]}{Def[5x]None+Hover[12ft.Run]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="true" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Froz]}{BA{None]}">
    <conditions>
    <condition name="target_state" state="hit"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Down}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[CT]Down}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="counter" down="true"/>
    </rule>
    <rule name="{P.Def[BA]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="basic"/>
    </rule>
    <rule name="{P.Def[LB]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="firebolt"/>
    </rule>
    <rule name="{P.Def[IB]}}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="icebolt"/>
    </rule>
    <rule name="{P.Def[LB]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="lightningbolt"/>
    </rule>
    <rule name="{P.Def[MM]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="mirage_missile"/>
    </rule>
    Tsukachikki
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    Mystical(Magi-Knight)... Part 2/2:
    <rule name="{P.Def[MS]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="magnum_shot"/>
    </rule>
    <rule name="{P.Def[RA]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="ranged_attack"/>
    </rule>
    <rule name="{P.Def[W]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="windmill"/>
    </rule>
    <rule name="{P[LB]Down}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="lightningbolt" down="true"/>
    </rule>
    <rule name="{P[LB]Up}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{P[Sm]Down}{}{CT[5x]None+Wait(10-10s)}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[CC]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[CC]}{O[Stop]}{LB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[BA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="basic" down="false"/>
    </rule>
    <rule name="{!!M[CT]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!M[LB]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="firebolt" down="true"/>
    </rule>
    <rule name="{!!M[IB]Down}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="true"/>
    </rule>
    <rule name="{!!M[IB]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!M[LB]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="down"/>
    </rule>
    <rule name="{!!M[LB]Up}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!M[MM]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!M[MM]Up}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!M[MS]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="magnum_shot" down="true"/>
    </rule>
    <rule name="{!!M[RA]Down}{}{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_attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!M[RA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!M[Sm]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[WM]Down}{}{Sm[5x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="windmill" down="true"/>
    </rule>
    <rule name="{!!P[CC]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="target_skill_prepare"/>
    </rule>
    <rule name="{!!P[CT]Down}{}{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="attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!P[LB]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="firebolt" down="false"/>
    </rule>
    <rule name="{!!P[IB]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="down"/>
    </rule>
    <rule name="{!!P[IB]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!P[LB]Down}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="true"/>
    </rule>
    <rule name="{!!P[LB]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!P[MA]}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="target_magic_prepare"/>
    </rule>
    <rule name="{!!P[MM]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!P[MM]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!P[MS]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="magnum_shot" down="down"/>
    </rule>
    <rule name="{!!P[RA]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!P[RA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!P[RA~]}{O[3-12ft]}{Hover[18ft]2s+LB[1x]None+BA[None]}">
    <conditions>
    <condition name="target_distance" min_distance="100" max_distance="500"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="move_around" clockwise="false" radius="1800" run="true" timeout="2"/>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="aimed"/>
    </rule>
    <rule name="{!!P[W]Down}{}{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="attacked" master_skill="windmill" down="true"/>
    </rule>
    </rules>
    Tsukachikki
  • cedwards9cedwards9
    Mabinogi Rep: 200
    Posts: 4
    Member
    edited January 15
    I'm excited to try these out. I spend a couple dozen hours meticulously fine-tuning my own AI like five years ago, decided for the 20th time I was done with mabi, and came back 6 months later to realize I'd lost it on reinstall. I'll try to come back if I have any useful feedback.

    EDIT - Got buried in projects. Following your instructions and placing them in the correct folder, I can't get Mabinogi to read the files as AI, even properly renamed. Do you have any suggestions on how to work around this?
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    edited March 16
    I hope you got it to work by now with my response(s) to your other thread about this (if you're still around anyway). I am surprised that this thread didn't go back up towards the top of the new-posts list when you posted (or maybe too many other threads ended up getting all of the activity right afterwards). Anyway, this time, I am posting another version of the same (or similar ?) A.I. that I named : Magical(Summoner)

    This version is meant for pets that have the ability to cast all three basic-bolts (and do not necessarily have to be fast-run). I was observing my pet-behaviour from yesterday whilst letting it do its thing in combat and I noticed that my attacks were causing my pet to change target (I probably should have been using a «Pet-Solo» version of my A.I. instead)... even though it was not necessarily good for my pet. Historically, when I designed these A.I.s, it was back during a time when we wanted as much back-up as we could possibly get on the same target, due to combat having formerly been so dangerous/lethal if you even made one mistake attacking only one target. The A.I. was designed for specific «tag-team» combinations, such as Smash-Pong, Magnum-Smash Recycling, and even Bolt-Smash (to give the Mage enough time to charge up the next formerly big-hit full-charge Fire-Bolt).

    Although I have not yet tested this particular version of this A.I. on the current version of Mabinogi, I think it may be more useful for people who play the «Warrior» Talent most-often who don't want their Melee-Attacks to interrupt their pets if their pet is attacking a different target. I believe this was one of the A.I. versions that I had originally used the most-often and, the manner in which I used it was, when I was in Warrior-Mode, but wanted my pet to «Solo» some other target whilst I fought a different target, I would Aux-Equipment to Range/Mage then Magnum/Fire-Bolt what-ever I wanted my pet to attack (it should cause the pet to load Smash and attack whatever was hit by the Magnum/Fire-Bolt) whilst I switched back to Main-Equipment slot in order to deal with a separate target. Well, enough of that long story of a past day, without further delay I include the next parts of the «Magical(Summoner)» A.I. (what I named it) below in the spoilers...
    cedwards9 wrote: »
    I'm excited to try these out. I spend a couple dozen hours meticulously fine-tuning my own AI like five years ago, decided for the 20th time I was done with mabi, and came back 6 months later to realize I'd lost it on reinstall. I'll try to come back if I have any useful feedback.

    EDIT - Got buried in projects. Following your instructions and placing them in the correct folder, I can't get Mabinogi to read the files as AI, even properly renamed. Do you have any suggestions on how to work around this?
    Part 1 of 2 for A.I. : Magical(Summoner)...
    <rules>
    <rule name="{M[FB]}{}{FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="firebolt"/>
    </rule>
    <rule name="{M[IB]}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="icebolt"/>
    </rule>
    <rule name="{M[LB]}{}{LB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="lightningbolt"/>
    </rule>
    <rule name="{M[MM]}{O[Fly]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Hit&Froz]IB[1x]None}">
    <conditions>
    <condition name="target_state" state="hit"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Hit&Slid]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Run]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Walk-Stop]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop, walk"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MS]}{O[Fly]}{LB[1x]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="magnum_shot"/>
    </rule>
    <rule name="{M[MS]}{O[Run]}{LB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="magnum_shot"/>
    </rule>
    <rule name="{M[MS]}{O[Walk-Stop]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop, walk"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="magnum_shot"/>
    </rule>
    <rule name="{M[RA]}{O[Fly]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Hit&Froz]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="hit"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Hit&Slid]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Run]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Stop]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Walk]}{Sm[1x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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="ranged_attack"/>
    </rule>
    <rule name="{P[BA]Down}{O[Fly]}{Def[5x]None+Hover[12ft.Run]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Fly]}{Def[5x]None+Hover[12ft.Run]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Down}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[CT]Down}{O[Fly]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="counter" down="true"/>
    </rule>
    <rule name="{P.Def[BA]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="basic"/>
    </rule>
    <rule name="{P.Def[FB]}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="firebolt"/>
    </rule>
    <rule name="{P.Def[IB]}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="icebolt"/>
    </rule>
    <rule name="{P.Def[LB]}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="lightningbolt"/>
    </rule>
    <rule name="{P.Def[MM]}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="mirage_missile"/>
    </rule>
    <rule name="{P.Def[MS]}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="magnum_shot"/>
    </rule>
    <rule name="{P.Def[RA]}{}{BA[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="ranged_attack"/>
    </rule>
    <rule name="{P.Def[W]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="windmill"/>
    </rule>
    <rule name="{P[FB]Down}{O[Fly]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="firebolt" down="true"/>
    </rule>
    <rule name="{P[IB]Down}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="icebolt" down="true"/>
    </rule>
    <rule name="{P[IB]Up}{}{CT[5x]None+Wait[10-10s]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="icebolt" down="false"/>
    </rule>
    <rule name="{P[LB]Down}{}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="lightningbolt" down="true"/>
    </rule>
    <rule name="{P[LB]Up}{}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="hit"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="lightningbolt" down="false"/>
    </rule>
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    edited March 16
    Aaaaaaand now for Part 2 of 2 for the A.I. that I had named...: Magical(Summoner)...
    <rule name="{P[Sm]Down}{}{Def[5x]None+Hover[12ft.Run]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M}{}{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_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[BA]Down}{M[HP80X]}{Chase[M]3s.Run+Heal[5x]None+5(Use[M]None+Wait[10-10s])}">
    <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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="basic" down="true"/>
    </rule>
    <rule name="{!!M[BA]Up}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="basic" down="false"/>
    </rule>
    <rule name="{!!M[CC]}{O[Run]}{IB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_target_skill_prepare"/>
    </rule>
    <rule name="{!!M[CC]}{O[Walk]}{Sm[5x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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_target_skill_prepare"/>
    </rule>
    <rule name="{!!M[CC]}{O[Stop]}{[FB[1x]None}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_target_skill_prepare"/>
    </rule>
    <rule name="{!!M[CT]Down}{M[HP80X]}{Chase[M]3s.Run+Heal[5x]None+5(Use[M]None+Wait[10-10s])}">
    <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_attacked" master_skill="counter" down="false"/>
    </rule>
    <rule name="{!!M[FB]Down}{M[HP80X]}{Chase[M]3s.Run+Heal[5x]None+5(Use[M]None+Wait[10-10s])}">
    <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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!M[IB]Down}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="true"/>
    </rule>
    <rule name="{!!M[IB]Up}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!M[LB]Down}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="true"/>
    </rule>
    <rule name="{!!M[LB]Up}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!M[MA]}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_target_magic_prepare"/>
    </rule>
    <rule name="{!!M[MM]Down}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="down"/>
    </rule>
    <rule name="{!!M[MM]Up}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!M[MS]Down}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="magnum_shot" down="true"/>
    </rule>
    <rule name="{!!M[RA]Down}{}{IB[1x]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!M[RA]Up}{}{IB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!M[RA°]}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_aimed"/>
    </rule>
    <rule name="{!!M[Sm]Down{M[HP80X]}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[W]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="windmill" down="false"/>
    </rule>
    <rule name="{!!P}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!P}{}{O[Run]}{BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!P[BA]Down}{}{CT[5x]None+Wait[10-10s]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="basic" down="true"/>
    </rule>
    <rule name="{!!P[BA]Up}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="basic" down="false"/>
    </rule>
    <rule name="{!!P[CT]Down}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!P[FB]Down}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="firebolt" down="true"/>
    </rule>
    <rule name="{!!P[IB]Up}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!P[LB]Up}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!P[MM]Down}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!P[MM]Up}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!P[MS]Down}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="magnum_shot" down="true"/>
    </rule>
    <rule name="{!!P[RA]Down}{}{IB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!P[RA]Up}{}{IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!P[RA+]}{}{Hover[18ft]3s+IB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="move_around" clockwise="false" radius="1800" run="true" timeout="3"/>
    <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="aimed"/>
    </rule>
    <rule name="{!!P[Sm]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="smash" down="true"/>
    </rule>
    <rule name="{!!P[W]Down}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="windmill" down="true"/>
    </rule>
    <rule name="{!!P[W]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="windmill" down="false"/>
    </rule>
    </rules>
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    Alright, guys, I think I need to add one more version/variation of the Fast-Run Archetype Pet-Code, for which I personally believe is best-suited for most retriever-style dogs, flame-mare horses, etc., the description I give being «Fast-Run(Summoner)» name it whatever you want...
    Fast-Run(Summoner)/Part 1 of 2:
    <rules>
    <rule name="{M.Def[FB]}{M[HP80°]}{Chase[M]3s+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_defence" defence_enable_skill="firebolt"/>
    </rule>
    <rule name="{M.Def[IB]}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_defence" defence_enable_skill="icebolt"/>
    </rule>
    <rule name="{M.Def[LB]}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" 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]}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_defence" defence_enable_skill="ranged_attack"/>
    </rule>
    <rule name="{M.Def[WM]}{}{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[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]}{}{FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="firebolt"/>
    </rule>
    <rule name="{M[IB]}{O[Fly]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="icebolt"/>
    </rule>
    <rule name="{M[IB]}{O[Hit&Slid]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="icebolt"/>
    </rule>
    <rule name="{M[LB]}{O[Fly]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="lightningbolt"/>
    </rule>
    <rule name="{M[LB]}{O[Hit&Froz]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="hit"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="lightningbolt"/>
    </rule>
    <rule name="{M[LB]}{O[Hit&Slid]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" 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>
    <rule name="{M[MM]}{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="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{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="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Stop]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Run]}{BA[None]+FB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="mirage_missile"/>
    </rule>
    <rule name="{M[MM]}{O[Walk]}{Sm[5x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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>
    <rule name="{M[MS]}{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="magnum_shot"/>
    </rule>
    <rule name="{M[MS]}{O[Run]}{BA[None]+FB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="magnum_shot"/>
    </rule>
    <rule name="{M[MS]}{O[Stop]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="magnum_shot"/>
    </rule>
    <rule name="{M[MS]}{O[Walk]}{Sm[5x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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="magnum_shot"/>
    </rule>
    <rule name="{M[RA]}{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="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{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="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{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="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Run]}{BA[None]+FB[1x]None}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Stop]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attack" master_skill="ranged_attack"/>
    </rule>
    <rule name="{M[RA]}{O[Walk]}{Sm[5x]None+BA[None]}">
    <conditions>
    <condition name="target_state" state="walk"/>
    </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="ranged_attack"/>
    </rule>
    <rule name="{P[BA]Down}{}{CT[5x]None+Wait[10-10s]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Down}{O[Fly]}{Def[5x]None+Hover[12ft]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Fly]}{Def[5x]None+Hover[12ft.Run]None}">
    <conditions>
    <condition name="target_state" state="blowaway"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="true" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Froz]}{BA{None]}">
    <conditions>
    <condition name="target_state" state="hit"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
    <rule name="{P[BA]Down}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="true"/>
    </rule>
    <rule name="{P[BA]Up}{O[Hit&Slid]}{CT[5x]None+Wait[10-10s]}">
    <conditions>
    <condition name="target_state" state="shoved"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="basic" down="false"/>
    </rule>
  • HabimaruHabimaru
    Mabinogi Rep: 2,925
    Posts: 667
    Member
    Fast-Run(Summoner)/Part 2 of 2:
    <rule name="{P[CT]Down}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="counter" down="true"/>
    </rule>
    <rule name="{P.Def[BA]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="basic"/>
    </rule>
    <rule name="{P.Def[FB]}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="firebolt"/>
    </rule>
    <rule name="{P.Def[IB]}}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="icebolt"/>
    </rule>
    <rule name="{P.Def[LB]}{}{FB[1x]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="lightningbolt"/>
    </rule>
    <rule name="{P.Def[MM]}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="mirage_missile"/>
    </rule>
    <rule name="{P.Def[MS]}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="magnum_shot"/>
    </rule>
    <rule name="{P.Def[RA]}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="ranged_attack"/>
    </rule>
    <rule name="{P.Def[W]}{}{BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="defence" defence_enable_skill="windmill"/>
    </rule>
    <rule name="{P[FB]Down}{}{Def[5x]None+Hover[12ft]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="5" timeout="0"/>
    <cmd name="move_around" clockwise="false" radius="1200" run="true" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="firebolt" down="true"/>
    </rule>
    <rule name="{P[Sm]Down}{}{CT[5x]None+Wait(10-10s)}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="0"/>
    <cmd name="wait" min="10000" max="10000"/>
    </sequence>
    </pattern>
    <event name="attack" pet_attackable_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[CC]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[CC]}{O[Stop]}{FB[1x]None}">
    <conditions>
    <condition name="target_state" state="stop"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_targeted" targeting_type="attack"/>
    </rule>
    <rule name="{!!M[BA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="basic" down="false"/>
    </rule>
    <rule name="{!!M[CT]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!M[FB]Down}{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"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="firebolt" down="true"/>
    </rule>
    <rule name="{!!M[IB]Down}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="true"/>
    </rule>
    <rule name="{!!M[IB]Up}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!M[LB]Down}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="down"/>
    </rule>
    <rule name="{!!M[LB]Up}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!M[MM]Down}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!M[MM]Up}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!M[MS]Down}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="magnum_shot" down="true"/>
    </rule>
    <rule name="{!!M[RA]Down}{}{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_attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!M[RA]Up}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!M[Sm]Down}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="smash" down="true"/>
    </rule>
    <rule name="{!!M[WM]Down}{}{Sm.None[None]+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="0"/>
    <cmd name="process_skill" target="enemy" timeout="0"/>
    </sequence>
    </pattern>
    <event name="master_attacked" master_skill="windmill" down="true"/>
    </rule>
    <rule name="{!!P[CC]}{O[Run]}{X+BA[None]}">
    <conditions>
    <condition name="target_state" state="run"/>
    </conditions>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="target_skill_prepare"/>
    </rule>
    <rule name="{!!P[CT]Down}{}{FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="counter" down="true"/>
    </rule>
    <rule name="{!!P[FB]Down}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="firebolt" down="false"/>
    </rule>
    <rule name="{!!P[IB]Down}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="down"/>
    </rule>
    <rule name="{!!P[IB]Up}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="icebolt" down="false"/>
    </rule>
    <rule name="{!!P[LB]Down}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="true"/>
    </rule>
    <rule name="{!!P[LB]Up}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="lightningbolt" down="false"/>
    </rule>
    <rule name="{!!P[MA]}{}{BA[None]+FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="melee_attack" timeout="0"/>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="target_magic_prepare"/>
    </rule>
    <rule name="{!!P[MM]Down}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="true"/>
    </rule>
    <rule name="{!!P[MM]Up}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="mirage_missile" down="false"/>
    </rule>
    <rule name="{!!P[MS]Down}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="magnum_shot" down="down"/>
    </rule>
    <rule name="{!!P[RA]Down}{}{FB[1x]None+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="true"/>
    </rule>
    <rule name="{!!P[RA]Up}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="ranged_attack" down="false"/>
    </rule>
    <rule name="{!!P[RA°]}{}{X+BA[None]}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
    </sequence>
    </pattern>
    <event name="aimed"/>
    </rule>
    <rule name="{!!P[W]Down}{}{FB[1x]None}">
    <conditions/>
    <pattern>
    <param_decl/>
    <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="0"/>
    </sequence>
    </pattern>
    <event name="attacked" master_skill="windmill" down="true"/>
    </rule>
    </rules>
  • RivalexRivalex
    Mabinogi Rep: 100
    Post: 1
    Member
    Thank you for posting these, I plan to use them.

    I only have Eagle/Horse/Broom. Do you have recommended AIs for them? Im a dual sword warrior with magic