搜尋


返回清單
切換到指定樓層
通知這文章過時或找檔案 發表主題

關於閃王設定

[複製連結]
1
rain9 ( Lv.10 見習生 ) 發表於 2011-1-9 19:22:51 | 只看該作者 回覆獎勵 |降序瀏覽 |閱讀模式
##走迴避怪物## 這是閃避用,把你要閃避的MVP或是特定怪打上去 要用逗點分開喔!!
automacro avoid Dark lord,Dark Illusion {
      # 當地圖為...時
      map gl_chyard
      # 當魔物為...且距離你 20 格以內時
      # Notice the coma space and number 12 above? This avoid automacro only trigger if any of the monster list
      # distance is equal or less than the number given.
      monster Dark lord, 20
      # 間隔 5 秒
      timeout 1
    exclusive 1
      # 打算要往反方向走幾格
      # set Move to how many distance per trigger you want it to move.
      set Move 20
      call check
}
macro check {
[
      $mon = $.lastMonster
      $monID = $.lastMonsterID
      $dist = $.lastMonsterDist
      $monPos = $.lastMonsterPos
      $map = $.map
      $myPos = $.pos
      $myPosX = @arg ("$myPos", 1)
      $myPosY = @arg ("$myPos", 2)
      $monPosX = @arg ("$monPos", 1)
      $monPosY = @arg ("$monPos", 2)
      $map = $.map
      do eval message T("Macro Avoid: $::Macro::Data::varStack{mon} \($::Macro::Data::varStack{monID}\)
"), "teleport"; message T("魔物距離\= $::Macro::Data::varStack{dist} \, 魔物座標\: \($::Macro::Data::varStack{monPosX},$::Macro::Data::varStack{monPosY}\) 地圖名\= $::Macro::Data::varStack{gl_chyard}
"), "teleport";
]
    do as

    if ($myPosX > $monPosX) goto east
    if ($myPosX < $monPosX) goto west
:X0
    if ($myPosY < $monPosY) goto X0south
    if ($myPosY > $monPosY) goto X0north
    log We have the same co-ord to the Monster
    do @random ("east", "west", "south", "north") $Move
    log Move Random
    stop
:X0south
    log Monster Loc: North X-axis0
    do south $Move
    log Move South
    stop
:X0north
    log Monster Loc: South X-axis0
    do north $Move
    log Move North
    stop

:east
      if ($myPosY < $monPosY) goto eastSouth
      if ($myPosY > $monPosY) goto eastNorth
    :Y0east
      log Monster Loc: West Y-axis0
      do east $Move
      log Move East
      stop
    :eastSouth
      log Monster Loc: NorthWest
      do southeast $Move
      log Move South East
      stop
    :eastNorth
      log Monster Loc: SouthWest
      do northeast $Move
      log Move North East
      stop

:west
      if ($myPosY < $monPosY) goto westSouth
      if ($myPosY > $monPosY) goto westNorth
    :Y0west
      log Monster Loc: East Y-axis0
      do west $Move
      log Move West
      stop
    :westSouth
      log Monster Loc: NorthEast
      do southwest $Move
      log Move South West
      stop
    :westNorth
      log Monster Loc: SouthEast
      do northwest $Move
      log Move North West
      stop
     
  }
這樣設定有問題嗎?
有誰會設定?





大家正在看啥


收藏收藏 分享文章到FB上分享
複製專屬你的推廣連結:發至FB與各論壇宣傳:累積點數換GP商品 & 藍鑽
每五點閱率就可以兌換藍鑽積分或遊戲點卡 夢遊推廣文章換GP商品

你需要登入後才可以回覆 登入 | 加入會員

本版積分規則

Copyright (C) 2010-2020 夢遊電玩論壇

廣告合作:請直接聯繫我們,並附上您預刊登位置的預算。  

快速回覆 返回頂端 返回清單