Results 1 to 3 of 3

Threaded View

  1. #1

    Default [D2NT] Pindle Bot - If you've killed Nihlathak, want to Pindle but NOT kill him again

    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;
    }
    Last edited by Solstice; 08-18-2010 at 01:11 PM.

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Threads

  1. Attacks / Exits, doesn't kill Pindle!
    By J33v4n in forum Hacks Bots and Editors
    Replies: 3
    Last Post: 11-11-2006, 09:51 AM
  2. Help, fails on pindle... doesnt kill fast enuff?
    By dkim in forum Hacks Bots and Editors
    Replies: 5
    Last Post: 01-17-2006, 10:00 AM
  3. can't kill pindle?
    By mikebot in forum Diablo II Discussion
    Replies: 7
    Last Post: 04-26-2005, 08:35 AM
  4. Need Help with pindle Bot
    By Ninja_monkey in forum Hacks Bots and Editors
    Replies: 5
    Last Post: 04-05-2005, 09:15 AM
  5. Root Pindle Bot or Rishodi Pindle Bot?
    By iEulogy in forum Hacks Bots and Editors
    Replies: 2
    Last Post: 06-13-2004, 04:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •