追蹤
凱琳_金色斧頭幫
關於部落格
瑪奇凱琳伺服器中,最古老、最優質的公會~
  • 16187

    累積人氣

  • 3

    今日人氣

    1

    追蹤人氣

[情報]寵物AI第四彈~

這個AI有下面這些效果,原創者DXZY設定了很多攻擊模式

主動攻擊、
對象使用反擊時火焰、對象使用反擊時冰矛、對象使用反擊時雷矢、
對象使用防禦時火焰、對象使用防禦時冰矛、對象使用防禦時雷矢、
對象使用防禦時重擊、對象使用弓箭時攻擊、
對象使用弓箭時撤退使用火焰、對象使用弓箭時撤退使用冰矛、
對象使用弓箭時撤退使用雷矢、
對方使用魔法時攻擊、對方使用魔法時防禦、
攻擊後反擊、攻擊後防禦、反擊後火焰、反擊後冰矛、
反擊後雷矢、反擊後防禦、火焰後反擊、冰矛後反擊、
冰矛後防禦、雷矢後反擊、雷矢後防禦、重擊後反擊、
受到警告後攻擊、
受到攻擊未倒後攻擊、受到攻擊擊倒後反擊、
受到重擊後反擊、受到反擊後反擊、
防禦攻擊後普攻。

<rules>
<rule name="主動攻擊">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="melee_attack" timeout="5000"/>
</sequence>
</pattern>
<event name="seek_target"/>
</rule>
<rule name="對象使用反擊時火焰">
<conditions>
<condition name="target_state" state="stop"/>
<condition name="skill_preparable" pet_skill="firebolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="對象使用反擊時冰矛">
<conditions>
<condition name="target_state" state="stop"/>
<condition name="skill_preparable" pet_skill="icebolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="stack_skill" stack_magic="icebolt" charge="1"/>
<cmd name="move_against" distance="900" run="true" timeout="1000"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="對象使用反擊時雷矢">
<conditions>
<condition name="target_state" state="stop"/>
<condition name="skill_preparable" pet_skill="lightningbolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="stack_skill" stack_magic="lightningbolt" charge="1"/>
<cmd name="move_against" distance="900" run="true" timeout="1000"/>
<cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="對象使用防禦時火焰">
<conditions>
<condition name="target_state" state="walk"/>
<condition name="skill_preparable" pet_skill="firebolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="對象使用防禦時冰矛">
<conditions>
<condition name="target_state" state="walk"/>
<condition name="skill_preparable" pet_skill="icebolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="stack_skill" stack_magic="icebolt" charge="1"/>
<cmd name="move_against" distance="900" run="true" timeout="1000"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="對象使用防禦時雷矢">
<conditions>
<condition name="target_state" state="walk"/>
<condition name="skill_preparable" pet_skill="lightningbolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="stack_skill" stack_magic="lightningbolt" charge="1"/>
<cmd name="move_against" distance="900" run="true" timeout="1000"/>
<cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="對象使用防禦時重擊">
<conditions>
<condition name="target_state" state="walk"/>
<condition name="skill_preparable" pet_skill="smash"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="1" timeout="5000"/>
<cmd name="process_skill" target="enemy" timeout="5000"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="對象使用弓箭時攻擊">
<conditions>
<condition name="target_state" state="run"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="melee_attack" timeout="5000"/>
</sequence>
</pattern>
<event name="aimed"/>
</rule>
<rule name="對象使用弓箭時撤退使用火焰">
<conditions>
<condition name="skill_preparable" pet_skill="firebolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="move_against" distance="1500" run="true" timeout="2000"/>
<cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="aimed"/>
</rule>
<rule name="對象使用弓箭時撤退使用冰矛">
<conditions>
<condition name="skill_preparable" pet_skill="icebolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="move_against" distance="1500" run="true" timeout="2000"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="aimed"/>
</rule>
<rule name="對象使用弓箭時撤退使用雷矢">
<conditions>
<condition name="skill_preparable" pet_skill="lightningbolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="cancel_skill"/>
<cmd name="move_against" distance="1500" run="true" timeout="2000"/>
<cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="aimed"/>
</rule>
<rule name="對方使用魔法時攻擊">
<conditions>
<condition name="target_state" state="stop"/>
</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="對方使用魔法時防禦">
<conditions>
<condition name="target_state" state="walk, run"/>
<condition name="skill_preparable" pet_skill="defence"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="defence" try_cnt="1" timeout="5000"/>
<cmd name="move_against" distance="1500" run="false" timeout="5000"/>
</sequence>
</pattern>
<event name="target_magic_prepare"/>
</rule>
<rule name="攻擊後反擊">
<conditions>
<condition name="skill_preparable" pet_skill="counter"/>
<condition name="target_state" state="shoved"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
<cmd name="wait" min="3000" max="10000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="basic" down="true"/>
</rule>
<rule name="攻擊後防禦">
<conditions>
<condition name="skill_preparable" pet_skill="defence"/>
<condition name="target_state" state="blowaway"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="defence" try_cnt="1" timeout="5000"/>
<cmd name="move_against" distance="400" run="false" timeout="1000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="basic" down="true"/>
</rule>
<rule name="反擊後火焰">
<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="反擊後冰矛">
<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="反擊後雷矢">
<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="反擊後防禦">
<conditions>
<condition name="skill_preparable" pet_skill="defence"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="defence" try_cnt="1" timeout="5000"/>
<cmd name="move_against" distance="400" run="false" timeout="5000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="counter" down="true"/>
</rule>
<rule name="火焰後反擊">
<conditions>
<condition name="skill_preparable" pet_skill="firebolt"/>
<condition name="skill_preparable" pet_skill="counter"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
<cmd name="wait" min="3000" max="10000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="firebolt" down="true"/>
</rule>
<rule name="冰矛後反擊">
<conditions>
<condition name="skill_preparable" pet_skill="icebolt"/>
<condition name="skill_preparable" pet_skill="counter"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
<cmd name="wait" min="3000" max="10000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="icebolt" down="false"/>
</rule>
<rule name="冰矛後防禦">
<conditions>
<condition name="skill_preparable" pet_skill="icebolt"/>
<condition name="skill_preparable" pet_skill="defence"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="defence" try_cnt="1" timeout="5000"/>
<cmd name="move_against" distance="600" run="false" timeout="500"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="icebolt" down="true"/>
</rule>
<rule name="雷矢後反擊">
<conditions>
<condition name="skill_preparable" pet_skill="lightningbolt"/>
<condition name="skill_preparable" pet_skill="counter"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
<cmd name="wait" min="3000" max="10000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="lightningbolt" down="false"/>
</rule>
<rule name="雷矢後防禦">
<conditions>
<condition name="skill_preparable" pet_skill="lightningbolt"/>
<condition name="skill_preparable" pet_skill="defence"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="defence" try_cnt="1" timeout="5000"/>
<cmd name="move_against" distance="600" run="false" timeout="500"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="lightningbolt" down="true"/>
</rule>
<rule name="重擊後反擊">
<conditions>
<condition name="skill_preparable" pet_skill="counter"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
<cmd name="wait" min="3000" max="10000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="smash" down="true"/>
</rule>
<rule name="受到警告後攻擊">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="5000"/>
</sequence>
</pattern>
<event name="targeted" targeting_type="attack"/>
</rule>
<rule name="受到攻擊未倒後攻擊">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="5000"/>
</sequence>
</pattern>
<event name="attacked" master_skill="all" down="false"/>
</rule>
<rule name="受到攻擊擊倒後反擊">
<conditions>
<condition name="skill_preparable" pet_skill="counter"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
<cmd name="wait" min="3000" max="10000"/>
</sequence>
</pattern>
<event name="attacked" master_skill="basic" down="true"/>
</rule>
<rule name="受到重擊後反擊">
<conditions>
<condition name="skill_preparable" pet_skill="counter"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
<cmd name="wait" min="3000" max="10000"/>
</sequence>
</pattern>
<event name="attacked" master_skill="smash" down="true"/>
</rule>
<rule name="受到反擊後反擊">
<conditions>
<condition name="skill_preparable" pet_skill="counter"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
<cmd name="wait" min="3000" max="10000"/>
</sequence>
</pattern>
<event name="attacked" master_skill="counter" down="true"/>
</rule>
<rule name="防禦攻擊後普攻">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="5000"/>
</sequence>
</pattern>
<event name="defence" defence_enable_skill="all"/>
</rule>
</rules>

相簿設定
標籤設定
相簿狀態