以下未測試篇


教學一


本帖最後由仙境 rain1102 大大 於 2011-2-27 14:28 編輯分享


貼上後,輸入macro IRON,就會開始跑了,要注意一下sp


=============================================================
# 補貨判斷
automacro refillCheck {
        inventory "攜帶用熔礦爐" == 0
        inventory "煤礦" >= 0
        inventory "鐵" >= 0
        run-once 1
        call IRON
}


macro IRON {
        lock pharmacy
        pause 1
        do talk @npc (XX XX) <------- 改成你要領取的NPC位置
        pause 1
        do talk cont
        do talk resp 1
        pause 1
        # 若身上有上次做出來的成品,則存入倉庫
        if (@invamount(鋼鐵) == 0) goto jump
                do storage add @inventory(鋼鐵) @invamount(鋼鐵)
        :jump
        # 由倉庫取出材料
        do storage get 攜帶用熔礦爐 60
        do storage get 煤礦 60
        do storage get 鐵 300
        pause 1
        do storage close
        release refillCheck
        release pharmacy
        pause 1
}


# 製作判斷
automacro pharmacy {
        inventory "攜帶用熔礦爐" >= 1
        inventory "煤礦" >= 1
        inventory "鐵" >= 5
        exclusive 1
        run-once 1
        call {
                do is 攜帶用熔礦爐
                pause 1
                do send 8e 01 e7 03 00 00 00 00 00 00
                release pharmacy                      
        }
}
 
 
 
================================================


教學二


這是從製造酒精巨集改寫得
# 製作鐵
automacro pharmacy {
sp > 20
inventory "鐵礦石" >= 5
inventory "攜帶用熔礦爐" >= 5
exclusive 1
run-once 1
call {
do is 6 #6是代表熔礦爐在背包的代號要自行更改
do send 8E 01 E6 03 00 00 00 00 00 00
release pharmacy
}
}
# 補貨判斷
automacro check {
inventory "鐵礦石" < 5
inventory "攜帶用熔礦爐" < 5
run-once 1
call storage
}

macro storage {
lock pharmacy
pause 1
do talk @npc (175 226) #把XX跟YY改成你要領取的NPC座標
pause 1
do talk cont
do talk resp 1
pause 1
# 若身上有上次做出來的成品,則存入倉庫
if (@invamount(鐵) == 0) goto jump
do storage add @inventory(鐵) @invamount(鐵)
:jump
# 由倉庫取出材料
do storage get @storage (鐵礦石) 100 #自己看要多少在改一下數量
do storage get @storage (攜帶用熔礦爐) 100
pause 1
do storage close
release check
release pharmacy
pause 1
}



# 火靈原石 = 8E 01 E2 03 00 00 00 00 00 00
# 水靈原石 = 8E 01 E3 03 00 00 00 00 00 00
# 風靈原石 = 8E 01 E4 03 00 00 00 00 00 00
# 土靈原石 = 8E 01 E5 03 00 00 00 00 00 00
# 鐵 = 8E 01 E6 03 00 00 00 00 00 00
# 鋼鐵 = 8E 01 E7 03 00 00 00 00 00 00
# 星星的角 = 8E 01 E8 03 00 00 00 00 00 00


 


-----------------------------------------------------------------------------------------------------------------


教學三


打鋼鐵的腳本
改一下應該就可以用了
automacro 1 {
        
inventory "攜帶用熔礦爐" > 1
        inventory "鐵礦石" > 1
        exclusive 1
       
                call {
        do is 攜帶用熔礦爐
        pause 1
        do send 8e 01 e6 03 00 00 00 00 00 00
        release 1
}
}

automacro 2 {
        inventory "攜帶用熔礦爐" <= 3
        exclusive 1
       
                call {
        do move geffen_in 110 176        
        do talk 0
        do talk resp 1
        do talk resp 0
        do talk num 100   
               
        }
}

automacro 3 {
       inventory "鐵礦石" <= 3
         exclusive 1
       
                call {
        pause 1
do move geffen 121 62
        do talknpc 120 62 c r1 n      
        pause 1
        do storage add 鐵 100
         pause 1
        do storage get 鐵礦石 100
        do move geffen_in 110 176
         
               
        }
}



automacro 4 {
        exclusive 1
        inventory "鐵" > 50
                call {
        pause 1
        do move geffen 121 62
        do talknpc 120 62 c r1 n      
        pause 1
        do storage add 鐵
        pause 1
        do storage close      
        }
}


 


鐵匠製作的代碼
#鐵 = 8e 01 e6 03 00 00 00 00 00 00
#鋼鐵 = 8e 01 e7 03 00 00 00 00 00 00
#星星的角 = 8e 01 e8 03 00 00 00 00 00 00


 


=========================================================


#自動換小神


 


automacro 1 {
        inventory "神之金屬原石" > 1
        map prontera
        exclusive 1
        call {
        do move 179 184
        
}
}

automacro 2 {
        inventory "神之金屬原石" > 1
        map prt_in
        exclusive 1
        call {
        do talknpc 63 69 c c r0 n
        
}
}

automacro item {
         inventory "神之金屬原石" == 0
         macro_delay 0.5
         exclusive 1
         call {
         do talknpc 282 200 c r1 n      
        pause 1
        do storage add 神之金屬 55         
pause 1
        do storage get 神之金屬原石 275                         
}

}

arrow
arrow
    全站熱搜

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