轉帖至仙研 loveu8 大大於 2011-4-23 11:40 編輯


 


我是參照,Openkore論壇上的巨集分享區
裡面有一個Party的分享專區
---
問答請到這邊問...
http://forums.openkore.com/viewtopic.php?f=33&t=8444
---
之後有曾經試用過,但是跟之前一樣
會有主人去找隨從問題
這個發生次數太多的話
直接會影響到
每一小時的經驗取得
上個禮拜想說自己來改看看
目標:"主人永遠不去找隨從,永遠是隨從找主人"
測試快一個禮拜之後,逐漸修改後
應該會比之前改善許多
---
或許有人會問,這樣乾脆直接用原本內建的功能去找就好
用甚麼Macro
主要內建的尋找,雖然自己會計算主人路徑
雖然可以找到,但是還是不夠快
利用對答效果
主人直接PM目前所在座標過去
這樣一來
隨從會加速找到主人
---
缺點:因為內建尋找主人問題,還是會出現
You tried too long to move


 


主人


#Master Macro
#######################################
########FIND SLAVE#####################
#######################################
#slave is lost
automacro findSlave {
   pm /Where are you?/
   call {
      $slavemap = $.lastMatch1
      $slavemapx = $.lastMatch2
      $slavemapy = $.lastMatch3


      $mymap = $.map
      if ($slavemap == $mymap) goto findslave
      do pm "$.lastpm" at $.map $.pos
      stop
:findslave
   do pm "$.lastpm" at $.map $.pos
   }
}
#when slave is found
automacro clear {
   pm /I found/
   call {
   do eval AI::clear("move", "route");
   }
}


 


隨從


#Slave Macro
################################
######FIND MASTER###############
################################
#find master
automacro findMaster {
   timeout 4
   console /I lost my master/
   call {
   $master = @config (followTarget)
   do pm "$master" Where are you?
   }
}
automacro findMaster2 {
   timeout 4
   console /Calculating route to find master/
   call {
   $master = @config (followTarget)
   do pm "$master" Where are you?
   }
}


#goto master
automacro gotoMaster {
   pm /at (.*) (.*) (.*)/
   call {
   $pm = $.lastpm
   if ($pm != $master) stop
   do move $.lastMatch1 $.lastMatch2 $.lastMatch3
   }
}


#when master is found
automacro foundMaster {
   console /Found my master/
   call {
   do pm "$master" I found
   }
}


 


---
1.在 "config.txt" 的選項followBot請設成 0
"followBot 0"
2.overallAuth.txt 也請不要設定
3.隨從的Step從15改成21左右
route_step 21
---
轉貼可,但請貼上原連結及作者,Openkorek的ID

arrow
arrow
    全站熱搜

    aaa1314 發表在 痞客邦 留言(4) 人氣()