凱琳_金色斧頭幫

關於部落格
瑪奇凱琳伺服器中,最古老、最優質的公會~
  • 15596

    累積人氣

  • 1

    今日人氣

    0

    訂閱人氣

[情報]寵物AI第一彈~

(1)寵物主動火反攻擊
<rules>
  
 <rule name="主動普攻敵人">
  <conditions/>
  <pattern>
   <param_decl/>
   <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
   </sequence>
  </pattern>
  <event name="seek_target"/>
 </rule>
 
 <rule name="普攻接防(怪被擊退)">
  
  <conditions>
   <condition name="target_state" state="shoved"/>
  </conditions>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="prepare_skill" pet_skill="defence" try_cnt="1" timeout="5000"/>
    <cmd name="move_against" distance="500" run="false" timeout="3000"/>
   </sequence>
  </pattern>
  <event name="attack" pet_attackable_skill="basic" down="true"/>
 </rule>
 
 <rule name="普攻接反擊(怪倒時)">
  
  <conditions>
   <condition name="target_state" state="blowaway"/>
  </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="basic" down="true"/>
 </rule>
 
 <rule name="重擊接反擊">
  <conditions/>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="8000"/>
   </sequence>
  </pattern>
  <event name="attack" pet_attackable_skill="smash" down="true"/>
 </rule>
 
 <rule name="反擊接火焰">
  <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/>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
   </sequence>
  </pattern>
  <event name="attack" pet_attackable_skill="firebolt" down="true"/>
 </rule>
 
 <rule name="反擊接火焰(新情況)">
  <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="target_state" state="walk, run"/>
  </conditions>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
   </sequence>
  </pattern>
  <event name="aimed"/>
 </rule>
 
 <rule name="對方不動時準備火焰並攻擊">
  
  <conditions>
   <condition name="target_state" state="stop"/>
  </conditions>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="5000"/>
   </sequence>
  </pattern>
  <event name="aimed"/>
 </rule>
 
 <rule name="對方走路時使用重擊">
  
  <conditions>
   <condition name="target_state" state="walk"/>
  </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="對方不動時準備火焰並攻擊2">
  
  <conditions>
   <condition name="target_state" state="stop"/>
  </conditions>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <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="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="對方使用普攻">
  
  <conditions>
   <condition name="target_distance" min_distance="100" max_distance="300"/>
  </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="對方使用魔法,進行普攻">
  
  <conditions>
   <condition name="target_distance" min_distance="100" max_distance="700"/>
  </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="對方使用魔法但超出射程,使用火焰碰!!">
  
  <conditions>
   <condition name="target_distance" min_distance="700" max_distance="1500"/>
  </conditions>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="5000"/>
   </sequence>
  </pattern>
  <event name="target_magic_prepare"/>
 </rule>
 
 <rule name="防接普攻">
  <conditions/>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
   </sequence>
  </pattern>
  <event name="defence" defence_enable_skill="all"/>
 </rule>
 
 <rule name="寵物被怪物發現,使用普攻">
  <conditions/>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
   </sequence>
  </pattern>
  <event name="targeted" targeting_type="alert"/>
 </rule>
 
 <rule name="寵物被怪物警告時,使用普攻">
  <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="寵物被擊退,使用普攻">
  <conditions/>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="cancel_skill"/>
    <cmd name="melee_attack" timeout="0"/>
   </sequence>
  </pattern>
  <event name="attacked" master_skill="all" down="false"/>
 </rule>
 
 <rule name="寵物被打飛,使用反擊">
  <conditions/>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="5000"/>
   </sequence>
  </pattern>
  <event name="attacked" master_skill="all" down="true"/>
 </rule>
 <rule name="鎖定對方">
  <conditions/>
  
  <pattern>
   <param_decl/>
   
   <sequence>
    <cmd name="melee_attack" timeout="0"/>
   </sequence>
  </pattern>
  <event name="now_targeting"/>
 </rule>
</rules>


(2)寵物主動雷反攻擊
<rules>
<rule name="找怪 一雷開怪">
<conditions>
<condition name="skill_preparable" pet_skill="lightningbolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="stack_skill" stack_magic="lightningbolt" charge="1"/>
<cmd name="move_against" distance="1000" run="true" timeout="1000"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="2000"/>
</sequence>
</pattern>
<event name="seek_target"/>
</rule>
<rule name="雷後反">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="0"/>
<cmd name="wait" min="4000" max="6000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="lightningbolt" down="false"/>
</rule>
<rule name="解反重破防">
<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"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="解反雷破反">
<conditions>
<condition name="target_state" state="stop"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="lightningbolt" try_cnt="0" timeout="500"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="反後雷">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="counter" down="true"/>
</rule>
<rule name="雷打D血補雷">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="lightningbolt" down="true"/>
</rule>
<rule name="攻後反">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="0"/>
<cmd name="wait" min="6000" max="6000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="basic" down="true"/>
</rule>
<rule name="重後反">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="0"/>
<cmd name="wait" min="4000" max="6000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="smash" down="true"/>
</rule>
<rule name="倒後反">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
<cmd name="wait" min="6000" max="6000"/>
</sequence>
</pattern>
<event name="attacked" master_skill="all" down="true"/>
</rule>
<rule name="被打後攻">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="attacked" master_skill="basic" down="false"/>
</rule>
<rule name="對魔防">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="defence" try_cnt="1" timeout="0"/>
<cmd name="move_around" clockwise="true" radius="100" run="false" timeout="500"/>
</sequence>
</pattern>
<event name="target_magic_prepare"/>
</rule>
<rule name="防魔後攻">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="500"/>
</sequence>
</pattern>
<event name="attacked" master_skill="lightningbolt" down="false"/>
</rule>
<rule name="防魔後攻2">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="500"/>
</sequence>
</pattern>
<event name="attacked" master_skill="icebolt" down="false"/>
</rule>
<rule name="普打的規則">
<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>
</rules>

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