MILKY IPBONUS

MILKY IPBONUS
http://www.milky-ipbonus.com/

วันเสาร์ที่ 9 มีนาคม พ.ศ. 2556

Macro พรีส ซับ party


Macro พรีส เดินตามกันใน party


มีการกำหนดค่าใน2ส่วน คือ

1. config.txt

2. macros.txt

ถ้าถามว่าทำงานดีไหม ก็ถือว่าดีกว่าไม่มี ฮ่าาา

ลืมบอกไปว่า บอท กับ บอท นะ

/config ตัวตาม

follow 1
follow_target ชื่อคนนำ

Macro เอาไปใส่ในตัวที่ตามนะคับ

/macros.txt

#find master
automacro findMaster {
        timeout 3
        console /^I lost my master/i
        call {
        $master = @config (followTarget)
        do pm "$master" x $.map $.pos
        }
}
automacro findMaster2 {
        timeout 3
        console /^Calculating route to find master/i
        call {
        $master = @config (followTarget)
        do pm "$master" x $.map $.pos
        }
}
#goto master
automacro gotoMaster {
        pm /x (.*) (.*) (.*)/i
        call {
        $pm = $.lastpm
        if ($pm != $master) stop
        do move $.lastMatch1 $.lastMatch2 $.lastMatch3
        }
}
#when master is found
automacro foundMaster {
        console /^Found my master!/i
        call {
        do pm "$master" clear
        }
}



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

เอาไปใส่ในตัวที่ถูกตามคับ (ตัวนำ)

#slave is lost
automacro findSlave {
        pm /x (.*) (.*) (.*)/i
        call {
        $slavemap = $.lastMatch1
        $slavemapx = $.lastMatch2
        $slavemapy = $.lastMatch3
        $mymap = $.map
        if ($slavemap == $mymap) goto findslave
        do pm "$.lastpm" x $.map $.pos
        stop
        :findslave
        do pm "$.lastpm" x $.map $.pos
        }
}
#when slave is found
automacro clear {
        pm /clear/i
        call {
        do eval AI::clear("move","route");
        }
}

3 ความคิดเห็น: