close

天津成自動換原石(譬如土靈換火靈)
並土靈換完後可以自動去存倉再領土靈原石換火靈原石~


如以下~~~~~~

automacro AutoM {
        location amatsu
        inventory "土靈原石" > 0
        exclusive 1
        call {
        do move 61 24 ama_in02
        }
}
automacro AutoC {
        location ama_in02 61 24
        inventory "土靈原石" > 7
        macro_delay 0.5
        exclusive 1
        call {
        do talknpc 61 27 c c c c r1 c c r1 c r1 c c r1 n
        }
}
automacro AutoS {
        inventory "土靈原石" == 0
        macro_delay 0.5
        exclusive 1
        call {
        do talknpc 102 149 c r1 n
        pause 3
        do storage add 火靈原石
        pause 0.7
        $a = @storamount (土靈原石)
        $b = 136
# 從倉庫取得土原數量
        if ($a < 136) goto stop
# 倉庫的土原($a)小於多少時結束
                do storage get 土靈原石 $b
                pause 0.7
                do storage close
                stop
        :stop
                do relog 36000
        }
}


配合如下


[config]
storageAuto 1
# 是否開啟自動存倉功能
storageAuto_npc amatsu 102 149
# 自動存倉的 NPC
storageAuto_distance 5
# 自動存倉時要站在距離 NPC 多遠的位置
storageAuto_npc_type 1
# 與 NPC 對話的類型,1=c r1 n,2=c c r1 n,3=自訂,自訂對話命令串寫在下一個設定
storageAuto_npc_steps
# 自訂與 NPC 對話命令串
storageAuto_password
# 開倉密碼,請直接輸入設定的數字密碼即可
storageAuto_keepOpen 0
storageAuto_useChatCommand
relogAfterStorage 0
# 自動存倉完成後是否要重登

# 以下為從倉庫自動補給的設定
getAuto 土靈原石 {
        minAmount 0
        maxAmount 136
        passive
}


 


 


範例二


[macro]

automacro AutoM {
        location amatsu
        inventory "土靈原石" > 0
        exclusive 1
        call {
        do move 61 24 ama_in02
        }
}
automacro change {
        map ama_in02
        inventory "土靈原石" > 0
        run-once 1
        call {
        do talknpc 61 27 c c c c r1 c c r1 c r1 c c r1 n
        release change
        }
}


 


 


 

arrow
arrow
    全站熱搜

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