下室是我爬的2篇文章
還是不知道者麼設定
我想要設定的是偵測到BOOS自動迴避(不是瞬移)免服
就是呢
因為要掛的地圖有BOSS
所以去用了用走的迴避
結果修改程式碼的時候
全部用一用
原本會發動的迴避指令 原本只缺距離
現在連發動都不會
只要我一修改Automacro.pm
一修改完 他就不會發動MA ...
manan695 發表於 2010-2-12 10:24
我在macros.txt設定了迴避半龍人,但是我看OP時,還是常常被半龍人的火球術,
怒爆打死,雖然有時候閃的過,但是效率實在是不好,mon_control.txt設定不打了。請幫我看看設定,謝謝
automacro avoid {
map cmd_fild03
monster 半龍人, 25
timeout 5
exclusive 1
set Move 20
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("MonsterDist\= $::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
} |