hubing2002 发表于 2018-9-5 20:00:22

求助召唤者的脚本

/**
*        @filename        Summoner.js
*        @author                kolton
*        @desc                kill the Summoner
*/

function Summoner() {
        Town.doChores();
        Pather.useWaypoint(74);
        Precast.doPrecast(true);

        if (Config.Summoner.FireEye) {
                if (!Pather.usePortal(null)) {
                        throw new Error("Failed to move to Fire Eye");
                }

                Attack.clear(15, 0, getLocaleString(2885)); // Fire Eye

                if (!Pather.usePortal(null)) {
                        throw new Error("Failed to move to Summoner");
                }
        }

        if (!Pather.moveToPreset(me.area, 2, 357, -3, -3)) {
                //throw new Error("Failed to move to Summoner");
                        //Attack.clear(2, 355, -2);
                       
        }

        Attack.clear(15, 0, 250); // The Summoner

        return true;
}

每次进去标红处都报错,如何修改代码让角色不能到达指定位置的时候执行Attack.clear?

loveqiao361 发表于 2019-1-10 11:12:02

如果是原生kolbot的话,进入房间按pause,手动跑到召唤者边上,按Numpad9在console里看一下presetUnitID,替换357即可

idi 发表于 2021-12-31 09:22:10

这个好,谢谢分享
页: [1]
查看完整版本: 求助召唤者的脚本