教學一
#■這巨集會直接精練到目標值,所以建議分次精練,不要依下設定太高
#■巨集我遇到的是把雙刃短見裝備上去才開始觸發,所以沒反映的各位可以試著打上ep x(x代表裝備再物品欄編號),裝備上要精練的裝備或武器試試
automacro NoMoreEquip {
map prt_in
inventory "強化武器金屬-級數二" > 0
inventory "雙刃短劍 [3]" > 0
equipped rightHand none, +3 雙刃短劍 [3]
timeout 3
call equip
}
macro equip {
do eq 雙刃短劍 [3]
pause 2
}
macro unequip {
do uneq +3 雙刃短劍 [3]
pause 2
}
macro safeUpgrade {
do conf autoTalkCont 1
do talk @npc (63 60)
pause 1
do talk resp 3
pause 1
do talk resp 0
}
#■其中rightHand# 右手裝備(雙刃短劍)所以用這個,其他還有leftHand# 左手裝備,robe# 披肩,armor# 盔甲,shoes# 鞋子(這些名稱OP裡面找的到)
#■雙刃短劍 [3]是要開始精練的數值,+3 雙刃短劍 [3]是目標值,+3後會卸下
#■resp 3是對話選項,右手武器resp 3。披肩是resp 4,大家可以對照看看
automacro notSafetyEquip {
map prt_in
inventory "強化武器金屬-級數二" > 0
equipped rightHand 雙刃短劍 [3], +1 雙刃短劍 [3], +2 雙刃短劍 [3]
timeout 12
call notSafeUpgrade
}
macro notSafeUpgrade {
do talk @npc (63 60)
pause 1
do talk resp 3
pause 1
do talk resp 0
pause 1
do talk resp 0
}
#■equipped rightHand 雙刃短劍 [3], +1 雙刃短劍 [3], +2 雙刃短劍 [3] 這裡是精練過程(或許吧),+0開始會對話一直到+2對話完畢變+3然後卸下,如果這裡設定到+3會變成對話完畢變+4而就do uneq +3 雙刃短劍 [3],+4就不會卸下而卡住
#■resp 3這裡還有一個要注意
教學二
automacro NoMoreEquip {
map prt_in
inventory "強化武器金屬-級數二" > 0
inventory "雙刃短劍 [3]" > 0
equipped rightHand none, +3 雙刃短劍 [3]
timeout 3
call equip
}
macro equip {
do eq 雙刃短劍 [3]
pause 2
}
macro unequip {
do uneq +3 雙刃短劍 [3]
pause 2
}
macro safeUpgrade {
do conf autoTalkCont 1
do talk @npc (63 60)
pause 1
do talk resp 3
pause 1
do talk resp 0
}
automacro notSafetyEquip {
map prt_in
inventory "強化武器金屬-級數二" > 0
equipped rightHand 雙刃短劍 [3], +1 雙刃短劍 [3], +2 雙刃短劍 [3], +3 雙刃短劍 [3]
timeout 12
call notSafeUpgrade
}
macro notSafeUpgrade {
do talk @npc (63 60)
pause 1
do talk resp 3
pause 1
do talk resp 0
pause 1
do talk resp 0
}
教學三
####
automacro roughEluniumCheck {
map prt_in
inventory "鋁" < 200
inventory "鋁原石" > 5
run-once 1
call changeElunium
}
macro changeElunium {
do talk @npc(63 69)
pause 2
do talk resp 1
pause 2
release roughEluniumCheck
}
automacro roughOrideconCheck {
map prt_in
inventory "神之金屬" < 200
inventory "神之金屬原石" > 5
run-once 1
call changeOridecon
}
macro changeOridecon {
do talk @npc(63 69)
pause 2
do talk resp 0
pause 2
release roughOrideconCheck
}
automacro NoMoreEquip {
map prt_in
inventory "鋁" > 0
inventory "連帽披肩 [1]" > 0
equipped robe none, +7 連帽披肩 [1]
timeout 3
call equip
}
macro equip {
do eq 連帽披肩 [1]
pause 1
}
macro unequip {
do uneq +8 連帽披肩 [1]
pause 1
}
macro safeUpgrade {
do conf autoTalkCont 1
do talk @npc (63 60)
pause 1
do talk resp 4
pause 1
do talk resp 0
}
automacro notSafetyEquip {
map prt_in
inventory "鋁" > 0
inventory "鋁原石" < 5
equipped robe 連帽披肩 [1], +1 連帽披肩 [1], +2 連帽披肩 [1], +3 連帽披肩 [1], +4 連帽披肩 [1], +5 連帽披肩 [1], +6 連帽披肩 [1],
timeout 6
call notSafeUpgrade
}
macro notSafeUpgrade {
do conf autoTalkCont 1
pause 2
do talk @npc (63 60)
pause 2
do talk resp 4
pause 2
do talk resp 0
pause 2
do talk resp 0
}
以中央精練房為準
若要換其他地方 請更改@npc參數
測試一,
倉庫小鋁全部換成大鋁
config
lockMap prt_in
# 練功的地圖名稱
lockMap_x 61
# 鎖定 X 座標 (選用,可省略)
lockMap_y 69
# 鎖定 Y 座標 (選用,可省略)
lockMap_randX 3
# 中心點左右,多少範圍內(選用,可省略)
lockMap_randY 3
# 中心點上下,多少範圍內(選用,可省略)
saveMap prontera
# 「補給點」地圖名稱 (通常是儲存的城市,但也有例外的)
storageAuto 1
# 是否使用自動倉庫功能? 0 = 不使用、1 = 使用自動倉庫
# 設定為 1,才會將物品存入倉庫。
storageAuto_npc prontera 282 200
# 倉庫的 NPC 資料 (卡普拉或准它服務人員)
# 請查 /tables/npcs.txt。
getAuto 鋁原石 {
minAmount 5
# 身上攜帶量,「小於」或「等於」此數目,開始倉庫取物
maxAmount 250
# 取出到身上攜帶量「等於」此數目
passive 0
}
macro
automacro roughEluniumCheck {
map prt_in
inventory "鋁" < 200
inventory "鋁原石" > 5
run-once 1
call changeElunium
}
macro changeElunium {
do talk @npc(63 69)
pause 2
do talk resp 1
pause 2
release roughEluniumCheck
}
測試二
我把移動跟提領都改用巨集來執行
config不要設定鎖定地圖,領倉設定參考以下(東門領倉
把autoTalkCont設0
storageAuto 0
storageAuto_npc prontera 282 200
storageAuto_distance 5
storageAuto_npc_type 1
storageAuto_npc_steps c r1 n
storageAuto_password xxxx
storageAuto_keepOpen 0
storageAuto_useChatCommand
relogAfterStorage 0
minStorageZeny 0
npcTimeResponse
getAuto 鋁原石 {
minAmount
maxAmount 200
passive
}
items_control設定
鋁 0 1 0
鋁原石 200 1 0
巨集設定
automacro start {
console /您現在已在遊戲中/
#如果不能觸發,試試把console的觸發句子改成Your Coordinates
exclusive 1
call {
pause 3
release all
}
}
automacro change {
location prt_in
inventory "鋁" < 200
inventory "鋁原石" > 4
run-once 1
call {
pause 1
do talknpc 63 69 c r1 n
release change
}
}
automacro storage {
inventory "鋁原石" < 5
run-once 1
call {
lock move
pause 2
do autostorage
pause 2
if (@storamount(鋁原石) = 0) goto last
release move
stop
:last
if (@invamount(鋁原石) < 4) goto quit
release move
stop
:quit
do quit
}
}
automacro move {
location prontera
inventory "鋁" < 200
inventory "鋁原石" > 4
run-once 1
call {
lock change
do move 63 69 prt_in
release move
release change
}
}
測試三
automacro change {
map prontera
run-once 1
timeout 30
call {
if (@invamount(鋁原石) > 5) goto start
if (@invamount(鋁) > 200) goto end
pause 3
release change
stop
:start
do move 60 71 prt_in
:start1
do talknpc 63 69 c r1
pause 1
if (@invamount(鋁原石) < 5) goto end
if (@invamount(鋁) > 200) goto end
goto start1
:end
do autostorage
release all
}
}
測試四
試試加入一個座標點讓外掛避開移動到旅館的路徑
automacro start {
console /您現在已在遊戲中/
#如果不能觸發,試試把console的觸發句子改成Your Coordinates
exclusive 1
call {
pause 3
release all
}
}
automacro change {
location prt_in
inventory "鋁" < 200
inventory "鋁原石" > 4
run-once 1
call {
pause 1
do talknpc 63 69 c r1 n
release change
}
}
automacro storage {
inventory "鋁原石" < 5
run-once 1
call {
lock move
pause 2
do move 195 204 prontera
pause 2
do autostorage
pause 2
if (@storamount(鋁原石) = 0) goto last
release move
stop
:last
if (@invamount(鋁原石) < 4) goto quit
release move
stop
:quit
do quit
}
}
automacro move {
location prontera
inventory "鋁" < 200
inventory "鋁原石" > 4
run-once 1
call {
lock change
do move 195 204 prontera
pause 2
do move 63 69 prt_in
release move
release change
}
}
測試五
斐楊換的
座標上沒這個問題
對話順序如下:
自動換鋁 do talknpc 137 178 c r1 c n
自動換神金 do talknpc 137 178 c r0 c n
無限迴圈 可以在CONFIG裡設下限 沒了就會自己領
getAuto 神之金屬原石 {
minAmount 0
maxAmount 200
passive 0
}
原文http://ro2.game.tw/Discuz/viewthread.php?tid=34340&extra=page%3D1
留言列表