黃易群俠傳M脫機外掛應用程式黃易神行
3371
4

[發問] 我的公會傳送巨集不能用

asdf012 發表於 2011-6-15 03:35:05 | 只看該作者 回帖獎勵 |倒序瀏覽 |
本帖最後由 asdf012 於 2011-6-15 03:39 編輯

這是我傳送巨集的腳本  但是開上去打 "中" 的話 會出現

tempMacro0 error: error in 3: @eval (exists $::players{$::playersID[$i]}->{guild} ? $::players{$::playersID[$i]}->{guild}{name} : 'null') failed

可以幫幫我解答嗎??   

以下是腳本

automacro warpPortal0 {
    pubm /中/
    call {
      if (@invamount(藍色魔力礦石) == 0) goto
      $i = $.lastMatch4
      $g = @eval (exists $::players{$::playersID[$i]}->{guild} ? $::players{$::playersID[$i]}->{guild}{name} : 'null')
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      stop
      :ok
          $x = @arg("$.pos", 1)
          $y = @arg("$.pos", 2)
          $y2 = @eval($y + 2)
          do sl 27 $x $y2
          pause 1
          do warp prontera
          do c 中央
          stop
         
         
          do c 沒藍石
          stop
    }
}
automacro warpPortal1 {
    pubm /斐/
    call {
      if (@invamount(藍色魔力礦石) == 0) goto
      if ($.lastMatch1 > 9) goto stop
      $i = $.lastMatch3

      $g = @eval (exists $::players{$::playersID[$i]}->{guild} ? $::players{$::playersID[$i]}->{guild}{name} : 'null')
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      stop
      :ok
          $x = @arg("$.pos", 1)
          $y = @arg("$.pos", 2)
          $y2 = @eval($y - 2)
          do sl 27 $x $y2
          pause 1
          do warp payon
          do c 斐揚
          stop
         
      
          do c 沒藍石
          stop
    }
}
automacro warpPortal2 {
    pubm /岩/
    call {
      if (@invamount(藍色魔力礦石) == 0) goto
      if ($.lastMatch1 > 9) goto stop
      $i = $.lastMatch3

      $g = @eval (exists $::players{$::playersID[$i]}->{guild} ? $::players{$::playersID[$i]}->{guild}{name} : 'null')
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      if ("$g" == "xxxxx") goto ok
      stop
      :ok
          $x = @arg("$.pos", 1)
          $y = @arg("$.pos", 2)
          $x2 = @eval($x + 2)
          do sl 27 $x2 $y
          pause 1
          do warp ve_fild03
          do c 岩波
           stop
         
         
          do c 沒藍石
          stop
    }
}
收藏收藏 分享分享 讚 幹 分享分享 FB分享
回覆

使用道具 舉報


[X] 當前離線
UID
1561059
熱心
2263 值
嘉獎
0 次
違規
0 次
在線時間
354 小時
經驗
2176 點
積分
49895
精華
0
最後登錄
2013-4-1
閱讀權限
60
註冊時間
2010-10-8
論壇幣
45088 幣
聯合幣
0 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 7Rank: 7Rank: 7
[X] 2011-6-15 09:11:42
你用pubm當條件只能定義$.lastpub與$.lastpubMsg,不能用$.lastMatch
你可以把3個合成一個,試試以下
automacro warpguild {
        console /\[(距離|dist)=(.*)\] (.*) \((\d+)\): (中|斐|岩)/
        exclusive 1
        call {
        if (@invamount(藍色魔力礦石) == 0) goto noblue
        $i = $.lastMatch4
        $g = @eval (exists $::players{$::playersID[$i]}->{guild} ? $::players{$::playersID[$i]}->{guild}{name} : 'null')
        if ("$g" == "xxxx") goto ok
        if ("$g" == "xxxx") goto ok
        if ("$g" == "xxxx") goto ok
        if ("$g" == "xxxx") goto ok
        if ("$g" == "xxxx") goto ok
        stop
        :noblue
        do c 沒藍石
        stop
        :ok
        if ($.lastMatch5 == "中") goto warp1
        if ($.lastMatch5 == "斐") goto warp2
        if ($.lastMatch5 == "岩") goto warp3
        stop
        :warp1
        $x = @arg("$.pos", 1)
        $y = @arg("$.pos", 2)
        $y2 = @eval($y + 2)
        do sl 27 $x $y2
        pause 1
        do warp prontera
        do c 中央
        stop
        :warp2
        $x = @arg("$.pos", 1)
        $y = @arg("$.pos", 2)
        $y2 = @eval($y - 2)
        do sl 27 $x $y2
        pause 1
        do warp payon
        do c 斐楊
        stop
        :warp3
        $x = @arg("$.pos", 1)
        $y = @arg("$.pos", 2)
        $x2 = @eval($x + 2)
        do sl 27 $x2 $y
        pause 1
        do warp ve_fild03
        do c 岩波
        stop
        }
}
回覆

使用道具 舉報

asdf012 當前離線
UID
1653232
熱心
26 值
嘉獎
0 次
違規
0 次
在線時間
16 小時
經驗
29 點
積分
94
精華
0
最後登錄
2016-9-19
閱讀權限
20
註冊時間
2011-3-13
論壇幣
17 幣
聯合幣
3 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 2Rank: 2
asdf012 2011-6-17 02:50:52
可以用囉~~ 非常感謝 X 大大 感激不盡!!!!!!!
回覆

使用道具 舉報

謝肉粽 當前離線
UID
1840588
熱心
1 值
嘉獎
0 次
違規
0 次
在線時間
1 小時
經驗
6 點
積分
6
精華
0
最後登錄
2012-3-17
閱讀權限
5
註冊時間
2012-2-28
論壇幣
0 幣
聯合幣
0 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 1
謝肉粽 2012-3-17 02:29:37
大大 可以幫我看一下那裡有問題嗎?
automacro warpguild {
        console /\[(距離|dist)=(.*)\] (.*) \((\d+)\): (鐵|艾|毀)/
        exclusive 1
        call {
        if (@invamount(藍色魔力礦石) == 0) goto noblue
        $i = $.lastMatch4
        $g = @eval (exists $::players{$::playersID[$i]}->{guild} ? $::players{$::playersID[$i]}->{guild}{name} : 'null')
        if ("$g" == "cccccccccc") goto ok
        stop
        :noblue
        do c 沒藍石
        stop
        :ok
        if ($.lastMatch5 == "鐵") goto warp1
        if ($.lastMatch5 == "斐") goto warp2
        if ($.lastMatch5 == "岩") goto warp3
        stop

小黑窗都會跑出:[macros] automacros warpguild triggerd. 沒有辦法處發- -
回覆

使用道具 舉報

[X] 當前離線
UID
1561059
熱心
2263 值
嘉獎
0 次
違規
0 次
在線時間
354 小時
經驗
2176 點
積分
49895
精華
0
最後登錄
2013-4-1
閱讀權限
60
註冊時間
2010-10-8
論壇幣
45088 幣
聯合幣
0 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 7Rank: 7Rank: 7
5
[X] 2012-3-20 08:04:37
回4樓
[macros] automacros warpguild triggerd.
以上訊息表示巨集有觸發
你的console觸發條件是鐵.艾.毀
可是執行判斷卻是鐵.斐.岩
所以觸發後會不能執行
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊


手機版 | Archiver | 外掛聯合國

GMT+8, 2024-5-3 18:19 , Processed in 0.055483 second(s), 19 queries , Memcache On.

版權說明:
  本站不會製作、經銷、代理外掛程式。僅免費提供外掛程式下載前之掃毒及掃木馬等安全檢測驗證,協助會員遠離盜號危險程式。本站所有資料均來自網際網路收集整理,說明文字暨下載連結轉載自原程 式開發站。站上出現之公司名稱、遊戲名稱、程式等,商標及著作權,均歸各公司及程式原創所有,本站程式所有權歸外掛聯合國所有。本程式所有權歸外掛聯合國所有.......

回頂部
第二步?
第三步?