Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[D2NT] Pindle Bot - If you've killed Nihlathak, want to Pindle but NOT kill him again
#1
Here's the script:
Code:
var _NTNihlathak_Locations = new Array(8, 4);

_NTNihlathak_Locations[0] = [12519, 5203, 12522, 5227]; // Top Left
_NTNihlathak_Locations[1] = [12704, 5019, 12692, 5022]; // Top Right
_NTNihlathak_Locations[2] = [12705, 5391, 12723, 5413]; // Bottom Right
_NTNihlathak_Locations[3] = [12889, 5206, 12898, 5228]; // Bottom Left
_NTNihlathak_Locations[4] = [12519, 5203, 12522, 5196]; // Top Left
_NTNihlathak_Locations[5] = [12704, 5019, 12692, 5413]; // Top Right
_NTNihlathak_Locations[6] = [12705, 5391, 12727, 5022]; // Bottom Right
_NTNihlathak_Locations[7] = [12889, 5206, 12898, 5192]; // Bottom Left

function NTMain()
{
    Include("libs/common/NTCommon.ntl");
    NTC_IncludeLibs();
    NTC_IncludeConfig("NTBot/char_configs");

    NT_LoadConfig();
    NTSI_LoadNIPFiles("NTBot/item_configs");

    NTA_Initialize();

    if(!NTTM_CheckAct())
    {
        NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
        return;
    }

    NTTMGR_TownManager();

    if(!NTTM_TownMove("waypoint"))
    {
        NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
        return;
    }

    if(!NTM_TakeWaypoint(123))
    {
        NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
        return;
    }

    NTP_DoPrecast(true);

    if(!NTM_MoveToStair(me.areaid, 122))
    {
        NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
        return;
    }

    if(!NTM_TakeStair(122))
    {
        NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
        return;
    }

    if(!NTM_MoveToStair(me.areaid, 121))
    {
        NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
        return;
    }

    if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
    {
        NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
        return;
    }

    NTP_DoPrecast(false);

    if(!NTM_TakeStair(121))
    {
        NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
        return;
    }

    if(!NTM_MoveTo(me.areaid, 10061, 13234))
    {
        NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
        return;
    }

    if(NTA_KillMonster(GetLocaleString(22497)))
    {
        if(NTConfig_ClearPosition)
            NTA_ClearPosition();

        NTSI_PickItems();
    }
    else if(!NTConfig_NihlathakExtension)
    {
        NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
        return;
    }

    if(NTConfig_NihlathakExtension)
    {
        var _location;

        for(var i = 0 ; i < 3 ; i++)
        {
            if(!NTM_MoveToStair(me.areaid, 122+i))
            {
                NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
                return;
            }

            if(!NTM_TakeStair(122+i))
            {
                NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
                return;
            }
        }

        NTP_DoPrecast(false);

        _location = NT_FindNihlathakInt();

        if(_location == -1)
        {
            NTC_SendMsgToScript("NTBotGame.ntj", "NT_FindNihlathakInt()");
            return;
        }

        if(!NTM_MoveTo(me.areaid, _NTNihlathak_Locations[_location][2], _NTNihlathak_Locations[_location][3]))
        {
            NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
            return;
        }

        if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
        {
            NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
            return;
        }

        if(!NTA_KillMonster(526))
        {
            NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
            return;
        }

        if(NTConfig_ClearPosition)
            NTA_ClearPosition();

        NTSI_PickItems();
    }

    NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}

// Internal function
function NT_FindNihlathakInt()
{
    var i, x, y;
    var _nihlathak;
    var _mindist = 999999;
    var _currdist;
    var _location = -1;

    _nihlathak = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT, 462);

    if(!_nihlathak || _nihlathak.length < 1)
        return _location;

    x = _nihlathak[0].roomx*5 + _nihlathak[0].x;
    y = _nihlathak[0].roomy*5 + _nihlathak[0].y;

    for(i = 0 ; i < 8 ; i++)
    {
        _currdist = GetDistance(_NTNihlathak_Locations[i][0], _NTNihlathak_Locations[i][1], x, y);

        if(_currdist < _mindist)
        {
            _mindist = _currdist;
            _location = i;
        }
    }

    return _location;
}
Reply
#2
So this script will kill pindleskin and not Nihlathak each run? If so thank you very much thats what i wanted,I hate going after Nihl every run.
[SIGPIC][/SIGPIC]Well I’m not there all the time you know Some people, some people, some people, Call it insane, yeah they call it insane, (sugar) I play russian roulette everyday, a man’s sport, With a bullet called life, yeah called life,(sugar)
Reply
#3
Bump confirmed works very well,.
Bot takes wp to pindle just like solstice said.
[SIGPIC][/SIGPIC]Well I’m not there all the time you know Some people, some people, some people, Call it insane, yeah they call it insane, (sugar) I play russian roulette everyday, a man’s sport, With a bullet called life, yeah called life,(sugar)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [D2NT Release] Druid Script skidude 20 17,261 08-25-2012, 01:20 AM
Last Post: comper
  D2NT BoT Gh0sT17 52 2,030 07-31-2012, 11:10 PM
Last Post: comper
  D2nt need help on some stuff wishyq 3 165 07-22-2012, 12:44 PM
Last Post: comper
  Little Help Please? (D2NT) pnsmcgraw 12 263 07-16-2012, 02:46 PM
Last Post: Mythosis
  MasivB's D2NT Simple Unique PickIt masivb 1 115 07-03-2012, 05:03 AM
Last Post: comper
  D2nt - how do i stay in game when sojs sell? brianwalter86 5 349 07-01-2012, 02:02 PM
Last Post: comper
  Nooby D2NT Questions Kieran Wilson 0 128 06-25-2012, 04:35 PM
Last Post: Kieran Wilson
  [D2NT Release]Item Logging with XML 3.0+ skidude 76 14,528 06-25-2012, 01:27 PM
Last Post: masivb
  D2nt Bot jewel pickit/godly item pickit Nightwish 3 228 06-23-2012, 04:18 AM
Last Post: comper
  someone please help my d2nt bot wont kill any bosses mcmullenp4 2 177 06-19-2012, 10:18 AM
Last Post: comper

Forum Jump:


Users browsing this thread: 1 Guest(s)