仙境傳說|RO私服

 找回密碼
 註冊
搜索
熱搜: 活動 交友 discuz
查看: 15794|回復: 51
打印 上一主題 下一主題

鍊金製水openkore巨集

[複製鏈接]
跳轉到指定樓層
1#
LONGLIFE 發表於 2010-12-13 16:46:47 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
這篇是鍊金製水openkore巨集教學,話說做盡快要聖誕節了,不知到我cosplay的好看嗎~? 廢話還是別多說 我想沒人想看我cosplay仙境傳說吧~還是來教導大家如何鍊金製水openkore巨集吧,首先以下先做好

1. 倉庫備妥藥缽、空藥瓶、藍色藥草、雪勒結晶,至少各100個

2. 把一般藥水製作說明書帶在身上

3. 決定存倉用卡普拉NPC的座標,並將座標填入初始變數 $npcLocation 後面

4. 移動至看得到卡普拉NPC的任何一點上

5. 身上物品儘量清空

6. 組隊

7. 執行openkore程式,待出現"設定值初始化完畢"訊息後鍵入指令 "macro start"



openkore設定值初始化

automacro initiate {

    exclusive 1

    run-once 1

    call {

           以下設定卡普拉所在座標,可根據不同的卡普拉 NPC 座標作更改

          $npcLocation = 327 108

           其他想要初始化設定什麼的可以在下面新增

          do conf storageAuto 0

          do conf sellAuto 0

          do conf autoTalkCont 0

          do conf logPartyChat 1

          do conf sitAuto_sp_lower 0

          do conf sitAuto_sp_upper 0

          do conf sitAuto_over_50 0

           一組材料重 10,但因藍水會越做越負重,故以 12 做為材料負重較保險

          do eval $::Macro:ata::varStack{controlAmount} = int(($::char->{'weight_max'} * 0.5 - $::char->{'weight'}) / 12)

           $controlAmount = @eval(int(($.maxweight * 0.5 - $.weight) / 12))

          log 最大可攜帶 $controlAmount 組材料而不負重

          if ($controlAmount > 0) goto jump1

                log ***** 注意!未攜帶材料前已負重,可能導致巨集執行錯誤! *****

          :jump1

          if (@invamount(一般藥水製作說明書) != 0) goto jump2

                log ***** 注意!一般藥水製作說明書尚未帶在身上 *****

          :jump2

          log 設定值初始化完畢

    }

}

openkore補貨判斷

automacro refillCheck {

     sp 快沒了會先恢復到 95% 才會再繼續做藥水

    sp > 95%

    inventory "一般藥水製作說明書" = 1

    inventory "藥缽" = 0

    inventory "空藥瓶" >= 0

    inventory "藍色藥草" >= 0

    inventory "雪勒結晶" >= 0

    var medicineBowls > 100

    var emptyPotionBottles > 100

    var blueHerbs > 100

    var scells > 100

    run-once 1

    call start

}

openkore補貨

macro start {

    lock pharmacy

    pause 1

    do talk @npc ($npcLocation)

    do talk cont

    do talk resp 1

    pause 2

     若身上有上次做出來的成品,則存入openkore倉庫

    if (@invamount(藍色藥水) == 0) goto jump

          $usedMedicineBowl = @eval($tempMedicineBowls - @invamount(藥缽))

          $finishedAmount = @invamount(藍色藥水)

          do storage add @inventory(藍色藥水)

     本 if 為計算成功率用

    if ($usedMedicineBowl <= 0) goto jump

          $rateOfSuccess = @eval($finishedAmount / $usedMedicineBowl)

          do eval $::Macro:ata::varStack{rateOfSuccess} = sprintf("%.2f",$::Macro:ata::varStack{rateOfSuccess} * 100) . '%';

          do p 上批製造 $usedMedicineBowl 個藍色藥水成功率 $rateOfSuccess

    :jump

     由openkore倉庫取出材料

    do storage get @storage(藥缽) @eval($controlAmount - @invamount(藥缽))

    do storage get @storage(空藥瓶) @eval($controlAmount - @invamount(空藥瓶))

    do storage get @storage(藍色藥草) @eval($controlAmount - @invamount(藍色藥草))

    do storage get @storage(雪勒結晶) @eval($controlAmount - @invamount(雪勒結晶))

    [

    $medicineBowls = @storamount(藥缽)

    $emptyPotionBottles = @storamount(空藥瓶)

    $blueHerbs = @storamount(藍色藥草)

    $scells = @storamount(雪勒結晶)

    $tempMedicineBowls = @invamount(藥缽)

    ]

     由openkore隊頻顯示並記錄倉庫材料剩餘量與成品數量

    do p 藥缽尚餘 $medicineBowls 個

    do p 空藥瓶尚餘 $emptyPotionBottles 個

    do p 藍色藥草尚餘 $blueHerbs 個

    do p 雪勒結晶尚餘 $scells 個

    do p 藍色藥水庫存 @storamount(藍色藥水) 個

    pause 1

    do storage close

    release refillCheck

    release pharmacy

}

製藥

automacro pharmacy {

    sp > 20

    inventory "一般藥水製作說明書" == 1

    inventory "藥缽" >= 1

    inventory "空藥瓶" >= 1

    inventory "藍色藥草" >= 1

    inventory "雪勒結晶" >= 1

    exclusive 1

    run-once 1

    call {

          do ss 228 10

          do send 8E 01 F9 01 00 00 00 00 00 00

          release pharmacy

    }

}

遊客,如果您要查看本帖隱藏內容請回復
2#
ready21529 發表於 2010-12-29 00:02:09 | 只看該作者
版主 這個是要貼在哪個記事本裡面???
3#
royhatas 發表於 2011-1-10 22:50:50 | 只看該作者
4#
hanshen 發表於 2011-1-11 10:28:09 | 只看該作者
非常感謝大大的分享
5#
寶妹姐 發表於 2011-1-28 20:35:21 | 只看該作者
非常感謝大大的分享 等找到新的OP版本就來試試看
6#
tolyangel 發表於 2011-2-4 10:49:47 | 只看該作者
感謝您的分享
7#
愛愛愛愛愛 發表於 2011-2-18 13:22:02 | 只看該作者
感謝分享
終於可以不用一直按鍵盤.滑鼠
按到快瘋了
來去研究研究~
8#
saiko 發表於 2011-2-24 17:44:47 | 只看該作者
感谢大大的分享~
9#
55795352 發表於 2011-3-6 13:13:57 | 只看該作者
感谢大大的分享~
10#
m90048 發表於 2011-3-10 20:08:14 | 只看該作者
謝謝分享
11#
ahomving 發表於 2011-3-11 04:14:51 | 只看該作者
感謝大大的分享
12#
frankie7797 發表於 2011-4-26 14:37:14 | 只看該作者
thanks for sharing....^_^
13#
kenlee 發表於 2011-8-10 01:57:50 | 只看該作者
回復 1# LONGLIFE


    感謝大大分享
14#
cs87065 發表於 2011-8-17 21:17:02 | 只看該作者
回復 1# LONGLIFE


    ........去哪哩下載 巨集
15#
ryouarashi 發表於 2011-9-5 19:14:52 | 只看該作者
感謝大大的分享 超需要的~~
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

小黑屋|手機版|Archiver|仙境傳說|RO私服

GMT+8, 2024-4-25 22:49 , Processed in 0.110645 second(s), 20 queries .

快速回復 返回頂部 返回列表