| -------------config部分-------------買了不會後悔,讓你在蟲2掛到天荒地老都不是問題
 有問題可留言提問,會隨時注意回覆~
useSelf_skill 返回艾爾迪卡斯特 {
 lvl 1
 stopWhenHit 1
 timeout 300
 inInventory 特殊合金陷阱箱子 < 5
 }
 useSelf_skill 返回艾爾迪卡斯特 {
 lvl 1
 stopWhenHit 1
 timeout 300
 inInventory 草莓 < 3
 }
 useSelf_skill 返回艾爾迪卡斯特 {
 lvl 1
 stopWhenHit 1
 timeout 300
 inInventory 好吃的魚 < 5
 }
 
 依照個人所需更改~
 
 身上需隨時配戴智慧王之戒、艾爾迪卡斯特戒
 
 ----------存倉設置----------
 NPC位置:dic_in01 254 119
 自訂對話:c c r0 n
 
 
 
 ----------macros部分----------
 #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
 }
 }
 #惡意人孔
 automacro ManHoleLog {
 console /Player (.*) \((.*)\) is casting 人孔 on location \((.*), (.*)\)/i
 exclusive 1
 overrideAI 0
 run-once 0
 call {
 do eval if (open(FILE, ">>:utf8", "$::Settings::logs_folder/ManHoleLog.txt")) {print FILE "Player $.lastMatch1 $.lastMatch2 is casting 人孔 on location $.lastMatch3, $.lastMatch4\n";close FILE;}
 
 do tele
 # 瞬移
 
 #do relog 60
 # 重登
 
 #do charselect
 # 登出
 }
 }
 
 #腳底放傳陣開聊天室
 automacro chatroom {
 overrideAI 1
 console /Player (.*) \((.*)\) opened Warp Portal on \((\d+), (\d+)\)/i
 call {
 $x = @arg("$.pos", 1)
 $y = @arg("$.pos", 2)
 if ($x = $.lastMatch3) goto chroom1
 stop
 :chroom1
 if ($y = $.lastMatch4) goto chroom2
 stop
 :chroom2
 do chat create "0.0" 2 0 5278
 pause 50
 #可自行更改秒數
 do chat leave
 }
 }
 
 #惡意傳點移動
 automacro movemoveStart {
 console /You are ●嚴禁張貼廣告● in the game/i
 exclusive 1
 call {
 lock movemovenot
 }
 }
 automacro movemove {
 exclusive 1
 overrideAI 1
 location xx
 #限制在某個地圖使用,也可改為不在此地圖使用location not prontera
 console /Player (.*) \((.*)\) is casting 傳送之陣 on location \((.*), (.*)\) \(Delay\: (.*)\)/i
 call {
 release movemovenot
 $x = $.lastMatch3
 $y = $.lastMatch4
 :redo
 $rx = @rand (-20,20)
 $ry = @rand (-20,20)
 #可自行更改移動範圍
 if (@eval (abs $rx) < 10) goto redo
 if (@eval (abs $ry) < 10) goto redo
 #可自行更改最小移動範圍
 $rpx = @eval($x+$rx)
 $rpy = @eval($y+$ry)
 do move $rpx $rpy
 pause 5
 lock movemovenot
 }
 }
 automacro movemovenot {
 exclusive 1
 overrideAI 1
 console /Cannot calculate a route from (.*) \((\d+),(\d+)\) to (.*) \((\d+),(\d+)\)/i
 call {
 :redo
 $rx = @rand (-20,20)
 $ry = @rand (-20,20)
 #可自行更改移動範圍
 if (@eval (abs $rx) < 10) goto redo
 if (@eval (abs $ry) < 10) goto redo
 #可自行更改最小移動範圍
 $rpx = @eval($x+$rx)
 $rpy = @eval($y+$ry)
 do move $rpx $rpy
 pause 5
 lock movemovenot
 }
 }
 
 
 
 automacro talk0 {
 console /Done talking with./
 call {
 pause 3
 }
 }
 
 automacro ai_npcTalkA {
 console /Done talking with/
 call {
 pause 3
 }
 
 }
 
 automacro ai_npcTalkB {
 console /結束對話/
 call {
 pause 3
 }
 
 }
 
 
 ----------路徑添增----------
 #甲蟲隧道
 dic_fild01 24 79 dic_dun01 366 45
 dic_dun01 30 216 manuk 326 180 auto c r0 n
 manuk 321 182 dic_dun01 33 212 auto c r0 n
 dic_dun01 87 212 dic_dun01 169 227
 dic_dun01 371 228 dic_dun01 32 156
 dic_dun01 371 172 dic_dun01 32 100
 dic_dun01 371 100 dic_dun01 33 43
 dic_dun01 371 44 dic_fild01 28 79
 dic_dun01 29 43 dic_dun01 367 100
 dic_dun01 28 100 dic_dun01 367 172
 dic_dun01 28 156 dic_dun01 367 228
 dic_dun01 165 227 dic_dun01 83 212
 dic_fild01 153 281 dicastes01 199 41 auto c r0 n
 dicastes01 136 103 dic_in01 26 98
 dic_in01 44 116 dic_in01 260 115 auto r3
 dic_in01 261 115 dic_in01 42 115 auto r0
 dic_in01 26 96 dicastes01 137 106
 dicastes01 199 34 dic_fild01 149 279
 dic_dun01 294 106 dic_dun02 101 142 auto c r0 n
 dic_dun02 102 148 dic_dun01 290 99
 |