automacro avoid {
map yuno_fild02
monster 廢氣魔,炙燄魔,將軍魔碑,夢魘,九尾狐,邪惡箱,捲甲蟲,飛行魔書,暗黑祭司,艾斯恩魔女,瑞比歐,阿修羅狂戰士,弒神者,獸牙怪,行刑者,虎蜥人,史汀,邪骸浪人,獅鷲獸,半龍人,血腥騎士,鐘塔守護者,凱美拉,狂暴蟻后,邪骸戰士長,狂暴惡靈,狂暴小惡魔,狂暴克瑞米,狂暴螳螂,鶚梟男爵,犬妖首領,狂暴木乃伊,腐屍首領,哥布靈首領狂暴綠棉蟲,狂暴小土人,迷幻之王,狂暴蜂兵,狂暴蜘蛛,狂暴蜈蚣,狂暴大腳熊,狂暴月夜貓,狂暴哥布靈,狂暴鬼火,狂暴米洛斯,狂暴野豬,鶚梟首領,阿修羅機械戰士,熔岩巨石,惡魔女僕,偽天使,惡魔侍者,紙妖,邪靈魔導士,七彩夢魘,爆鑽傘蜥,暴燄野熊,赤焰小惡魔,七彩飛龍,七彩地龍,聖天使波利,薇歐莉,火忍西怒畢,銀月魔女,小青,廢鐵暖爐,溫古力安特,廢鐵暖爐,暗黑祭司,闇●騎士領主,闇●十字刺客,闇●神工匠,闇●神官,闇●神射手,闇●超魔導師,騎士領主 賽依連,十字刺客 艾勒梅斯,神工匠 哈沃得,神官 瑪嘉雷特,神射手 迪文,超魔導師 凱特莉娜,闇●騎士領主 賽依連,闇●十字刺客 艾勒梅斯,闇●神工匠 哈沃得,闇●神官 瑪嘉雷特,闇●神射手 迪文,闇●超魔導師 凱特莉娜,闇●劍士,闇●盜賊,闇●商人,闇●服事,闇●弓箭手,闇●魔法師,闇●劍士 賽尼亞,盜賊 特麗絲,商人 娣潔,服事 艾貝西,弓箭手 伊卡勒斯,魔法師 龐德,阿克坦,迪靡克,暴風迪靡克,冰凍迪靡克,崩裂迪靡克,火燄迪靡克,莫內,紅凡娜圖,褐凡娜圖,綠凡娜圖,橘凡娜圖,藍凡娜圖,雙子星-S58,消防魔,貝思波,微風,黃色等離子體,綠色等離子體,紅色等離子體,紫色等離子體,藍色等離子體,死亡魔書,狂暴邪惡箱,監視者,安息者,代行刑者,慰勞者,達納托斯的憎恨,達納托斯的絕望,達納托斯的悲哀,達納托斯的苦惱,俄希托斯,紅貝勒斯,諾博斯,灰俄希托斯,綠貝勒斯,黃諾博斯,基爾,愛麗削,愛麗俄,愛麗哲,恆量魔,彩色皮影魔,巴基力 蘭特克力斯,幽暗夢魘,阿卡布,埃奇歐,潘貝勒克,伊西拉,異形,雪獸,冰巨人,蓋俄斯提,迦利,阿特羅斯,騎士領主 賽依連,十字刺客 艾勒梅斯,神工匠 哈沃得,神官 瑪嘉雷特,神射手 迪文,超魔導師 凱特莉娜,礦坑小精靈,火鳥,劍士監護人魔物,漂流浪人,弓箭手監護人魔物, 20
#distance is equal or less than the number given.
timeout 0.1
exclusive 1
set Move 2
#set Move to how many distance per trigger you want it to move.
call check
}
macro check {
[
$mon = $.lastMonster
$monID = $.lastMonsterID
$dist = $.lastMonsterDist
$monPos = $.lastMonsterPos
$map = $.map
$myPos = $.pos
$myPosX = @arg ("$myPos", 1)
$myPosY = @arg ("$myPos", 2)
$monPosX = @arg ("$monPos", 1)
$monPosY = @arg ("$monPos", 2)
$map = $.map
do eval message T("Macro Avoid: $::Macro::Data::varStack{mon} \($::Macro::Data::varStack{monID}\)\n"), "teleport"; message T("Monster Dist\= $::Macro::Data::varStack{dist} \, Monster Loc\: \($::Macro::Data::varStack{monPosX},$::Macro::Data::varStack{monPosY}\) Map\= $::Macro::Data::varStack{map}\n"), "teleport";
]
do as
if ($myPosX > $monPosX) goto east
if ($myPosX < $monPosX) goto west
:X0
if ($myPosY < $monPosY) goto X0south
if ($myPosY > $monPosY) goto X0north
log We have the same co-ord to the Monster
do @random ("east", "west", "south", "north") $Move
log Move Random
stop
:X0south
log Monster Loc: North X-axis0
do south $Move
log Move South
stop
:X0north
log Monster Loc: South X-axis0
do north $Move
log Move North
stop
:east
if ($myPosY < $monPosY) goto eastSouth
if ($myPosY > $monPosY) goto eastNorth
:Y0east
log Monster Loc: West Y-axis0
do east $Move
log Move East
stop
:eastSouth
log Monster Loc: NorthWest
do southeast $Move
log Move South East
stop
:eastNorth
log Monster Loc: SouthWest
do northeast $Move
log Move North East
stop
:west
if ($myPosY < $monPosY) goto westSouth
if ($myPosY > $monPosY) goto westNorth
:Y0west
log Monster Loc: East Y-axis0
do west $Move
log Move West
stop
:westSouth
log Monster Loc: NorthEast
do southwest $Move
log Move South West
stop
:westNorth
log Monster Loc: SouthEast
do northwest $Move
log Move North West
stop
}
我已經更新到最後的新版本r7648了
這個巨集就是不能用... 好奇怪奧 |