* *

News

Nexon has recently updated Mabinogi to a 64 bit client. This update has broken many mods in memory patchers for the time being. The mod creators are working hard to essentially rebuild all mods from scratch, and this process will take some time. Please be patient, and stay tuned for more updates.

Keep in mind that you must register an account, and be logged in to view any content on this site.

Mabinogi Status

Erinn Timer

Time
Erinn Time 14:58
Local 01:34
Server 01:34
Moongate Prior G16 [ + / - ]
11:11 Tir Chonaill
12:22 Dunbarton
13:33 Emain Macha
14:44 Bangor
14:44 Emain Macha
16:66 Emain Macha

Ceo in days.

Price [ + / - ]
01:12 Emain Macha - Island in South Pathway
01:48 Sen Mag 5th house from West
Rua [ + / - ]
01:39 Resting
02:15 Resting

Themes





Author Topic: Archer AI  (Read 1129 times)

0 Members and 1 Guest are viewing this topic.

Offline Oddisy

Archer AI
« on: September 27, 2009, 12:47:36 pm »
What's a good AI for a pet thats going to keep the monster away, while I range it? Like.. within a certain distance of me.

Offline ~JUST~ Taco

Re: Archer AI
« Reply #1 on: September 27, 2009, 01:44:31 pm »
I'd think lightning/fire/ice spam AI, I made one for.... anthony I think? If he still has it, maybe ask him to give you it, it should work well enough.

animefan122

  • Guest
Re: Archer AI
« Reply #2 on: November 20, 2009, 12:31:09 am »
here is the code i use that helps (olny works with pets that know ice)
sorry for the long post i dont know how to "hide" it yet
Code: [Select]
<rules>
<rule name="1">
<conditions/>
<pattern>
<param_decl/>
<sequence/>
</pattern>
<event name="now_targeting"/>
</rule>
<rule name="2">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="stack_skill" stack_magic="icebolt" charge="1"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="ranged_attack"/>
</rule>
<rule name="3">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="stack_skill" stack_magic="icebolt" charge="1"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="magnum_shot"/>
</rule>
<rule name="4">
<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="5">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="defence" try_cnt="0" timeout="5000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="counter" down="true"/>
</rule>
<rule name="6">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="defence" defence_enable_skill="basic"/>
</rule>
<rule name="7">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_aimed"/>
</rule>
<rule name="8">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_target_magic_prepare"/>
</rule>
<rule name="9">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_defence" defence_enable_skill="basic"/>
</rule>
<rule name="10">
<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="true"/>
</rule>
<rule name="11">
<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="12">
<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_target_skill_prepare"/>
</rule>
<rule name="13">
<conditions>
<condition name="skill_preparable" pet_skill="healing"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="5000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
</sequence>
</pattern>
<event name="master_attacked" master_skill="all" down="false"/>
</rule>
<rule name="14">
<conditions>
<condition name="skill_preparable" pet_skill="healing"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="5000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
</sequence>
</pattern>
<event name="master_attacked" master_skill="all" down="true"/>
</rule>
<rule name="15">
<conditions>
<condition name="target_state" state="blowaway"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="stack_skill" stack_magic="icebolt" charge="1"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="counter"/>
</rule>
<rule name="16">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="5" timeout="5000"/>
</sequence>
</pattern>
<event name="attacked" master_skill="basic" down="false"/>
</rule>
<rule name="17">
<conditions>
<condition name="target_state" state="walk"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="enemy" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_target_skill_prepare"/>
</rule>
<rule name="18">
<conditions>
<condition name="target_state" state="walk"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="enemy" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="targeted" targeting_type="alert"/>
</rule>
<rule name="19">
<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="20">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="smash" down="true"/>
</rule>
<rule name="21">
<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="basic" down="false"/>
</rule>
<rule name="22">
<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="basic" down="true"/>
</rule>
<rule name="23">
<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="basic" down="false"/>
</rule>
</rules>

adam

  • Guest
Re: Archer AI
« Reply #3 on: November 21, 2009, 12:21:23 pm »
Now, even sheep can be pro in battle?!?!

Just find and replace "Icebolt" with "Lightningbolt" or "Firebolt" for other pets.

You could also set it to only fire when the enemy comes within a certain range, I do believe.

Oblivious

  • Guest
Re: Archer AI
« Reply #4 on: February 25, 2010, 06:33:19 pm »
and where do we put the file in?

Offline Archie

Re: Archer AI
« Reply #5 on: February 25, 2010, 06:46:21 pm »
*your* documents>mabi>Pet AI
Might help with the patcher problem, but after than that I'll be done. If some people want to stay in touch with me if there is ever help needed, PM me and I'll give contact info.

I'm also surprised how many people are still around, Mark, Skitty, Skai, Halfslashed, Etc... Sorry if I didn't name anyone.

Virtually everything I say is meant with no offense. If something sounds offensive, I'm sorry!! Please tell me if you find it upsetting.