Magic Counter Pet AI

Go down

Magic Counter Pet AI

Post  Ledah on Sun Apr 12, 2009 6:48 am

This is the pet ai that I use! :3
For those interested in using it, this pet ai was not originally made by me and was found by a friend of mine.

Code:
<rules>
   <rule name="Counter after Normal no KD">
      <conditions>
         <condition name="target_state" state="shoved"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="basic" down="false"/>
   </rule>
   <rule name="Counter after Normal">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="basic" down="true"/>
   </rule>
   <rule name="Counter after Smashing">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="smash" down="true"/>
   </rule>
   <rule name="IB after Countering">
      <conditions>
         <condition name="skill_preparable" pet_skill="icebolt"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="counter" down="true"/>
   </rule>
   <rule name="LB after Countering">
      <conditions>
         <condition name="skill_preparable" pet_skill="lightningbolt"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="counter" down="true"/>
   </rule>
   <rule name="FB after Countering">
      <conditions>
         <condition name="skill_preparable" pet_skill="firebolt"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="counter" down="true"/>
   </rule>
   <rule name="Counter after Getting Meleed">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attacked" master_skill="basic" down="false"/>
   </rule>
   <rule name="Counter after Getting KDed">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attacked" master_skill="all" down="true"/>
   </rule>
   <rule name="Counter after IBing">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="icebolt" down="false"/>
   </rule>
   <rule name="Counter after IBing KD">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="icebolt" down="true"/>
   </rule>
   <rule name="Counter after LBing">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="lightningbolt" down="false"/>
   </rule>
   <rule name="Counter after LBing KD">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="lightningbolt" down="true"/>
   </rule>
   <rule name="Counter after FBing">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="firebolt" down="true"/>
   </rule>
   <rule name="Rush if Enemy RAs">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="cancel_skill"/>
            <cmd name="melee_attack" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="aimed"/>
   </rule>
   <rule name="Rush if Enemy Casts">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="cancel_skill"/>
            <cmd name="melee_attack" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="target_magic_prepare"/>
   </rule>
   <rule name="Rush after Getting Magnumed">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="5000"/>
            <cmd name="melee_attack" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attacked" master_skill="magnum_shot" down="true"/>
   </rule>
   <rule name="Rush after Getting RAed">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="cancel_skill"/>
            <cmd name="melee_attack" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attacked" master_skill="ranged_attack" down="false"/>
   </rule>
   <rule name="Counter when Alerted">
      <conditions>
         <condition name="skill_preparable" pet_skill="counter"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="cancel_skill"/>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="targeted" targeting_type="attack"/>
   </rule>
   <rule name="Counter when Possible">
      <conditions>
         <condition name="skill_preparable" pet_skill="counter"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="1000"/>
         </sequence>
      </pattern>
      <event name="now_targeting"/>
   </rule>
   <rule name="=AI by Aokouu [Mari Ch4]=">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence/>
      </pattern>
      <event name="now_targeting"/>
   </rule>
</rules>
avatar
Ledah

Posts : 11
Join date : 2009-04-09
Location : Avoiding Guild Recruiters Dx

Character sheet
Awesome 'o' Meter:
100/100  (100/100)

Back to top Go down

Re: Magic Counter Pet AI

Post  Jake on Sun Apr 12, 2009 7:12 am

I'm not sure if I'm quoting right - but this helps a lot actually, Ledah - thanks. Uhmn..I'll have to see if I can...get myself a pet to use these.
Ledah wrote:This is the pet ai that I use! :3
For those interested in using it, this pet ai was not originally made by me and was found by a friend of mine.

Code:
<rules>
   <rule name="Counter after Normal no KD">
      <conditions>
         <condition name="target_state" state="shoved"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="basic" down="false"/>
   </rule>
   <rule name="Counter after Normal">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="basic" down="true"/>
   </rule>
   <rule name="Counter after Smashing">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="smash" down="true"/>
   </rule>
   <rule name="IB after Countering">
      <conditions>
         <condition name="skill_preparable" pet_skill="icebolt"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="counter" down="true"/>
   </rule>
   <rule name="LB after Countering">
      <conditions>
         <condition name="skill_preparable" pet_skill="lightningbolt"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="counter" down="true"/>
   </rule>
   <rule name="FB after Countering">
      <conditions>
         <condition name="skill_preparable" pet_skill="firebolt"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="counter" down="true"/>
   </rule>
   <rule name="Counter after Getting Meleed">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attacked" master_skill="basic" down="false"/>
   </rule>
   <rule name="Counter after Getting KDed">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attacked" master_skill="all" down="true"/>
   </rule>
   <rule name="Counter after IBing">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="icebolt" down="false"/>
   </rule>
   <rule name="Counter after IBing KD">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="icebolt" down="true"/>
   </rule>
   <rule name="Counter after LBing">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="lightningbolt" down="false"/>
   </rule>
   <rule name="Counter after LBing KD">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="lightningbolt" down="true"/>
   </rule>
   <rule name="Counter after FBing">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attack" pet_attackable_skill="firebolt" down="true"/>
   </rule>
   <rule name="Rush if Enemy RAs">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="cancel_skill"/>
            <cmd name="melee_attack" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="aimed"/>
   </rule>
   <rule name="Rush if Enemy Casts">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="cancel_skill"/>
            <cmd name="melee_attack" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="target_magic_prepare"/>
   </rule>
   <rule name="Rush after Getting Magnumed">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="smash" try_cnt="5" timeout="5000"/>
            <cmd name="melee_attack" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attacked" master_skill="magnum_shot" down="true"/>
   </rule>
   <rule name="Rush after Getting RAed">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="cancel_skill"/>
            <cmd name="melee_attack" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="attacked" master_skill="ranged_attack" down="false"/>
   </rule>
   <rule name="Counter when Alerted">
      <conditions>
         <condition name="skill_preparable" pet_skill="counter"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="cancel_skill"/>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="5000"/>
         </sequence>
      </pattern>
      <event name="targeted" targeting_type="attack"/>
   </rule>
   <rule name="Counter when Possible">
      <conditions>
         <condition name="skill_preparable" pet_skill="counter"/>
      </conditions>
      <pattern>
         <param_decl/>
         <sequence>
            <cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="1000"/>
         </sequence>
      </pattern>
      <event name="now_targeting"/>
   </rule>
   <rule name="=AI by Aokouu [Mari Ch4]=">
      <conditions/>
      <pattern>
         <param_decl/>
         <sequence/>
      </pattern>
      <event name="now_targeting"/>
   </rule>
</rules>
avatar
Jake

Posts : 68
Join date : 2009-04-09
Age : 27
Location : ONtario - Canada -

Character sheet
Awesome 'o' Meter:
100/100  (100/100)

Back to top Go down

Re: Magic Counter Pet AI

Post  ShyNinja on Sun Apr 12, 2009 2:07 pm

Cool but it would be nice if you post in which magic your pet must have. xDDD
This could be a Firebolt Ai, Icebolt Ai, or perhaps Lightningbolt Ai.
Heh..
But good job with this, now some people would find it useful in dungeons.
avatar
ShyNinja

Posts : 51
Join date : 2009-04-09
Age : 28
Location : Tir Na Nog

Character sheet
Awesome 'o' Meter:
100/100  (100/100)

Back to top Go down

Re: Magic Counter Pet AI

Post  Ledah on Sun Apr 12, 2009 11:53 pm

silent
It works with any of the basic magics (even if you only have one)...
avatar
Ledah

Posts : 11
Join date : 2009-04-09
Location : Avoiding Guild Recruiters Dx

Character sheet
Awesome 'o' Meter:
100/100  (100/100)

Back to top Go down

Great.

Post  Endrance on Tue Apr 14, 2009 10:50 pm

This - if it's the one from Nexon Forums. - Works wonders against Hell Hounds in G3 Baol. o.o
avatar
Endrance

Posts : 6
Join date : 2009-03-26
Age : 27
Location : Paradise

Back to top Go down

Re: Magic Counter Pet AI

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum