Author Topic: My Diablo/Chaos Script  (Read 8188 times)

cooptheking

  • Guest
Re: My Diablo/Chaos Script
« Reply #15 on: August 11, 2010, 07:20:39 PM »
Okay, open NTAttack.ntl ...in the libs/common folder
search (contrl + f) for
function NTA_IsValidMonster(monster)

then add this
Code: [Select]
if(monster.name == GetLocaleString(3162) && GetDistance(me.x,me.y,monster.x,monster.y) <= 25 )
      if(!CheckCollision(me.areaid, monster.x, monster.y, 0) || !CheckCollision(me.areaid, monster.x, monster.y, 1) || !CheckCollision(me.areaid, monster.x, monster.y, 5))
         return false;

so it looks like this
Code: [Select]
function NTA_IsValidMonster(monster)
{
if(monster.name == GetLocaleString(3162) && GetDistance(me.x,me.y,monster.x,monster.y) <= 25 )
      if(!CheckCollision(me.areaid, monster.x, monster.y, 0) || !CheckCollision(me.areaid, monster.x, monster.y, 1) || !CheckCollision(me.areaid, monster.x, monster.y, 5))
         return false;
var _classid;

if(monster.hp <= 0 || monster.mode == 0 || monster.mode == 12)
return false;

_classid = monster.classid;

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: My Diablo/Chaos Script
« Reply #15 on: August 11, 2010, 07:20:39 PM »

Offline vampirictorch

  • Newbie
  • *
  • Join Date: Aug 2010
  • Posts: 5
  • Reputation 0
  • I <3 PureKaoz.com
    • View Profile
Re: My Diablo/Chaos Script
« Reply #16 on: August 11, 2010, 07:33:07 PM »
thanks again, i seen something similar to that several times before but they never said which    "NTA_IsValidMonster" to put it in, and there isl ike 4 in that file, so i tried all 4 and trial/error trying each one by itself, and still it got all screwed up and ofc errors., by saying "function NTA_IsValidMonster(monster)" you helped me know what one to actually put it under ^^ which is the problem i had with prior scripts they left out the "(monster)" part in where to put it.

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: My Diablo/Chaos Script
« Reply #16 on: August 11, 2010, 07:33:07 PM »

cooptheking

  • Guest
Re: My Diablo/Chaos Script
« Reply #17 on: August 11, 2010, 07:50:43 PM »
well the other areas that have "isvalidmonster" are actually "calling" that "function"
so by putting things under these your not actually "adding" them to the "list"
your simply adding an out of context group of stuff to the wrong places

the line
function IsValidMonster(monster)


is the line that lets ALL other scripts "use" the "said function..
If that makes since??

Offline TheFreak

  • Just like an admin ;)
  • AFK Admins
  • PK Pro
  • *****
  • Join Date: May 2010
  • Posts: 372
  • Reputation 1
  • I rap and write javascript mutha fucka!
    • View Profile
Re: My Diablo/Chaos Script
« Reply #18 on: August 11, 2010, 11:29:11 PM »
Hey brrroooo, im working on my own chaos script, that clears EVERYTHING! No matter what. If yu want to help, wit all tha little things, like skipping regular monsters and blah blah blah lmk. (I dont really like doing that stuff) ^ ^.


My New function:

function AlbertEinstein()
{
If (A = success in life)
A = x + y + z;
x = Work;
y = Play;
z = Keeping your mouth shut;
}

"Right after the Sam-Frodo suckfest, right before the credits roll, Sam fuckin' flat-out brick's in Frodo's mouth"

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: My Diablo/Chaos Script
« Reply #18 on: August 11, 2010, 11:29:11 PM »

cooptheking

  • Guest
Re: My Diablo/Chaos Script
« Reply #19 on: August 11, 2010, 11:35:45 PM »
Hey brrroooo, im working on my own chaos script, that clears EVERYTHING! No matter what. If yu want to help, wit all tha little things, like skipping regular monsters and blah blah blah lmk. (I dont really like doing that stuff) ^ ^.
mine does clear everything from start to finish
but it has the options to clear only uniques/only seal bosses etc etc

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: My Diablo/Chaos Script
« Reply #19 on: August 11, 2010, 11:35:45 PM »

Offline TheFreak

  • Just like an admin ;)
  • AFK Admins
  • PK Pro
  • *****
  • Join Date: May 2010
  • Posts: 372
  • Reputation 1
  • I rap and write javascript mutha fucka!
    • View Profile
Re: My Diablo/Chaos Script
« Reply #20 on: August 11, 2010, 11:41:17 PM »
I know, but i want one :/ lol


My New function:

function AlbertEinstein()
{
If (A = success in life)
A = x + y + z;
x = Work;
y = Play;
z = Keeping your mouth shut;
}

"Right after the Sam-Frodo suckfest, right before the credits roll, Sam fuckin' flat-out brick's in Frodo's mouth"

Offline vampirictorch

  • Newbie
  • *
  • Join Date: Aug 2010
  • Posts: 5
  • Reputation 0
  • I <3 PureKaoz.com
    • View Profile
Re: My Diablo/Chaos Script
« Reply #21 on: August 12, 2010, 10:43:02 PM »
just wandering "cooptheking" and you seem like someone that might know, how would you, you know how you can set the script to exit game if hostiled, how would you go about making the character talk then exit game if hostiled? wanted to make it say something like "Ng  in 15 looks like a Random kid has hostiled me" or something along them lines

Offline akia

  • Newbie
  • *
  • Join Date: Aug 2010
  • Posts: 2
  • Reputation 0
  • I <3 PureKaoz.com
    • View Profile
Re: My Diablo/Chaos Script
« Reply #22 on: September 07, 2010, 10:24:54 PM »
Nice script Coop!!
Been able to keep leechers more often now they dont die everytime they enter the tp :)

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: My Diablo/Chaos Script
« Reply #22 on: September 07, 2010, 10:24:54 PM »

Offline Obliviate

  • PK Novice
  • ***
  • Join Date: Dec 2010
  • Posts: 143
  • Reputation 1
  • PureKaoz.Com ROCKS!!
    • View Profile
    • Obliviate's D2 USEast Clan Op TORC
Re: My Diablo/Chaos Script
« Reply #23 on: January 31, 2011, 12:21:37 PM »
Nice Script. Though I Had To Make Some Personal Changes Myself..
I Didn't Like The Whole Monster Set Up..
Does It Too Quick..
I Changed.
Runs Great.
Added* I Added A Part On There To Say More Stuff...
I Like Him Talking To The Idiots Following..
They Never Know What To Do..
www.Obliviates-World.Webs.com ~~Clan In The Making~~

Offline CyberRos

  • Newbie
  • *
  • Join Date: Mar 2011
  • Posts: 8
  • Reputation 0
  • I <3 PureKaoz.com
    • View Profile
Re: My Diablo/Chaos Script
« Reply #24 on: April 20, 2011, 07:22:25 PM »
I dont know what to say I instaled your code in D2NT 3.0 and 3.1 3times each and I always get a d2nt error saying NTDiablo.ntj (10) : referenceError: NTA_Initialize is not defined . The bot was working fine before I installed the code. Here is the code please help if you have the time.

This is what i changed in Attack.ntl
Code: [Select]
function NTA_IsValidMonster(monster)
{
        if(monster.name == GetLocaleString(3162) && GetDistance(me.x,me.y,monster.x,monster.y) <= 25 )
        if(!CheckCollision(me.areaid, monster.x, monster.y, 0) || !CheckCollision(me.areaid, monster.x, monster.y, 1) || !CheckCollision(me.areaid, monster.x, monster.y, 5))
        return false;
        var _classid;

        if(monster.hp <= 0 || monster.mode == 0 || monster.mode == 12)
        return false;

        _classid = monster.classid;***then the rest of the script****

if(((_classid >= 110 && _classid <= 113) || _classid == 608) && monster.mode == 8) // ignore flying scavengers
return false;

if(_classid == 68 && monster.mode == 14) // ignore burrowing maggots
return false;

if(_classid >= 258 && _classid <= 263 && monster.mode == 14) // ignore submerged WaterWatchers
return false;

if(monster.GetState(53) || monster.GetState(96)) // Conversion, Revive
return false;

return true;
}

here is my run pala config I changed
Code: [Select]
//------------------------------------------------------------------------------
// Boss configuration
//------------------------------------------------------------------------------
   NTConfig_Script.push("NTDiablo.ntj");   
   //use 1 for true and 0 for false
   NTConfig_SealOrder = ['w', 'n', 'e']; //seal order, w = west (vizier), n = north (de seis), e = east (venom)
   NTConfig_NextGameMsg = ''; // leave = '' to say nothing
   NTConfig_FastMode = 0; // open seals and kill bosses only (a little more dangerous)
   NTConfig_SkipRegularMonsters = 0; // true = skip regular monsters (non uniques/champs)
   NTConfig_ClearFromFront = 1; // clear from the entrance to the star
   NTConfig_OpenHiddenStashes = 0; // open the hidden stashes, doesnt open on fastmode
   NTConfig_MakeTP = 1; // true to make a tp. if clearing from front it will make one there, else at star
   // if MakeTP is true its basically public mode, if not none of the below will trigger
   NTConfig_WaitAndBO = 1; // true = bot will wait for x seconds and cast BO (if you dont have CTA set to false)
   NTConfig_BOSayMsg = 'Let me clear quick'; // what to say when preparing to cast BO (dont include seconds)
   NTConfig_BOWait = 2; // time in seconds to wait before using BO
   //NTConfig_Script.push("NTPindleskin.ntj"); NTConfig_NihlathakExtension = false;
   //NTConfig_Script.push("NTNihlathak.ntj"); NTConfig_PindleskinExtension = false;
   //NTConfig_Script.push("NTEldritch.ntj"); NTConfig_ShenkExtension = true;
   //NTConfig_Script.push("NTThreshSocket.ntj");
   //NTConfig_Script.push("NTFrozenRiver.ntj"); NTConfig_ClearFrozenRiver = false;
   //NTConfig_Script.push("NTGlacialTrail.ntj"); NTConfig_ClearGlacialTrail = false;
   //NTConfig_Script.push("NTIcyCellar.ntj"); NTConfig_ClearIcyCellar = false;
   //NTConfig_Script.push("NTBaal.ntj"); NTConfig_KillBaal = true;
   //NTConfig_Script.push("NTHephasto.ntj");
   //NTConfig_Script.push("NTIzual.ntj");
   //NTConfig_Script.push("NTMephisto.ntj");
   //NTConfig_Script.push("NTTravincal.ntj");
   //NTConfig_Script.push("NTKurastTravel.ntj");
   //NTConfig_Script.push("NTAct3Sewers.ntj"); NTConfig_ClearA3SewersLevel1 = 1; // 0 : don't clear, 1 : clear path only, 2 : clear all
   //NTConfig_Script.push("NTSummoner.ntj"); NTConfig_KillFireEye = false;
   //NTConfig_Script.push("NTDuriel.ntj");
   //NTConfig_Script.push("NTAncientTunnels.ntj");
   //NTConfig_Script.push("NTColdworm.ntj");
   //NTConfig_Script.push("NTRadament.ntj");
   //NTConfig_Script.push("NTAndariel.ntj");
   //NTConfig_Script.push("NTCountess.ntj");
   //NTConfig_Script.push("NTTreehead.ntj");
   //NTConfig_Script.push("NTPit.ntj"); NTConfig_ClearPitLevel1 = 0; // 0 : don't clear, 1 : clear path only, 2 : clear all
   //NTConfig_Script.push("NTMausoleum.ntj"); NTConfig_KillBloodRaven = true;
   //NTConfig_Script.push("NTHole.ntj"); NTConfig_ClearHoleLevel1 = 1; // 0 : don't clear, 1 : clear path only, 2 : clear all
   //NTConfig_Script.push("NTTristram.ntj"); NTConfig_KillRakanishu = true;
   //NTConfig_Script.push("NTNihlathak.ntj"); NTConfig_PindleskinExtension = false;

And here is my diablo

Code: [Select]
function NTMain()
{
   Include("libs/common/NTCommon.ntl");
   NTC_IncludeLibs();
   NTC_IncludeConfig("NTBot/char_configs");

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

   NTA_Initialize();

   var FrontToStarX    = [7792,7794,7791,7777,7813,7769,7782,7802,7819,7768,7770,7791,7819];
   var FrontToStarY    = [5564,5529,5495,5486,5486,5445,5421,5421,5446,5390,5355,5355,5376];

   var FrontToStarFastX = [7799,7802,7802,7819,7821,7821,7821];
   var FrontToStarFastY = [5569,5531,5498,5486,5450,5416,5376];

   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(107))
   {
      NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
      return;
   }

   NT_CheckShrine();
   
   if(!NTM_MoveTo(108, 7792, 5565))
   {
      NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
      return;
   }

   if(NTConfig_ClearFromFront == 1)
   {
      if(NTConfig_MakeTP == 1)
      {
         var _x = me.x;
         var _y = me.y;
         NT_Clear(20, true, 1);
         if(me.x != _x && me.y != _y) NTM_MoveTo(108, _x, _y);
         NT_Clear(20, true, 1);
         if(me.x != _x && me.y != _y) NTM_MoveTo(108, _x, _y);
         NTM_MakeTP();
         if(NTConfig_WaitAndBO == 1)
         {
            Say(NTConfig_BOSayMsg + " " + NTConfig_BOWait);
            NTC_Delay(NTConfig_BOWait*1000);
               NTP_DoPrecast(true);
         }
      }

      for(var i = 0; i < FrontToStarX.length; i++)
      {
         NT_Clear(35, true, 1);
         NTM_MoveTo(108, FrontToStarX[i], FrontToStarY[i]);
         if(NTConfig_OpenHiddenStashes == 1) NT_OpenHiddenStashes();
      }
   }

   else
   {
      NTM_MoveTo(108, 7791, 5290);
   }

   NT_GetSeals();

   NT_KillDiablo();

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

function NT_VizierSeal(type)
{
   var V1X     = [7768,7755,7741,7733,7723,7714,7707,7680,7666];//   |||||||||
   var V1Y     = [5289,5295,5282,5291,5300,5282,5315,5310,5311];//   |||

   var V2X     = [7767,7756,7744,7747,7750,7741,7729,7720,7720,7721,7719,7712,7700,7687,7676];//   |||   |||
   var V2Y     = [5292,5284,5275,5290,5303,5310,5314,5312,5301,5288,5273,7292,5294,5294,5292];//      |||
   
   if(type == 1)
   {
      for(var i = 0; i < V1X.length; i++)
      {
         NTM_MoveTo(108, V1X[i], V1Y[i]);
         if(NTConfig_OpenHiddenStashes == 1) NT_OpenHiddenStashes();
         if(NTConfig_FastMode != 1) NT_Clear(25, true, 1);
      }
         
      for(var n = 0; n < 2; n++)
      {   
         NT_OpenSeal(396, 7667, 5315);
         NTM_MoveTo(108, 7672, 5307);

         for(var i = 0 ; i < 15 ; i++)
         {
            NTC_Delay(100);
            if(NT_KillMonster(GetLocaleString(2851), 1))
            {   
               if(NTConfig_FastMode != 1) NT_Clear(30, false, 1);
               NTSI_PickItems();
               NT_OpenSeal(395,  7664, 5275);
               return NT_BackToStar();
            }           
         }

         NT_OpenSeal(395,  7664, 5275);
      }

   }

   else
   {
     
      for(var i = 0; i < V2X.length; i++)
      {
         NTM_MoveTo(108, V2X[i], V2Y[i]);
         if(NTConfig_OpenHiddenStashes == 1) NT_OpenHiddenStashes();
         if(NTConfig_FastMode != 1) NT_Clear(25, true, 1);
      }
   
      for(var n = 0; n < 2; n++)
      {

         NT_OpenSeal(396, 7664, 5275);
         NTM_MoveTo(108, 7667, 5292);

         for(var i = 0 ; i < 30 ; i++)
         {
            NTC_Delay(150);
            if(NT_KillMonster(GetLocaleString(2851), 1))
            {   
               if(NTConfig_FastMode != 1) NT_Clear(30, false, 1);
               NTSI_PickItems();
               NT_OpenSeal(395, 7667, 5315);
               return NT_BackToStar();
            }           
         }
     
         NT_OpenSeal(395, 7667, 5315);
      }
   }
   
   return NT_BackToStar();
}

function NT_DeSeisSeal(type)
{
   var S1X    = [7786,7801,7786,7787,7810,7811,7810,7790,7774,7773,7794];// shape of an "S" or "5"
   var S1Y    = [5263,5249,5245,5227,5233,5215,5198,5194,5181,5156,5154];

   var S2X    = [7791,7783,7800,7809,7785,7773,7773,7776,7794,7811,7817,7815,7798,7785];// Shape of "2"
   var S2Y    = [5265,5256,5247,5232,5230,5222,5212,5194,5194,5193,5177,5157,5155,5155];

   
   if(type == 2)
   {
     
      for(var i = 0; i < S2X.length; i++)
      {
         NTM_MoveTo(108, S2X[i], S2Y[i]);
         NT_Clear(25, true, 1);
         if(NTConfig_OpenHiddenStashes == 1) NT_OpenHiddenStashes();
      }

      for(var n = 0; n < 2; n++)
      {
           NT_OpenSeal(394, 7773, 5155);
         NTM_MoveTo(108, 7809, 5202);
         NTM_TeleportTo(7812, 5224);
         NTM_MoveTo(108, 7793, 5234);

         for(i = 0 ; i < 15 ; i++)
         {
            NTC_Delay(100);
            if(NT_KillMonster(GetLocaleString(2852), 1))
            {   
               NTSI_PickItems();
               if(NTConfig_FastMode != 1) NT_ClearPosition(40, true, 1);
               return NT_BackToStar();
            }
            else
            {
               NT_OpenSeal(394, 7773, 5155);
               NTM_MoveTo(108, 7809, 5202);
               NTM_TeleportTo(7812, 5224);
               NTM_MoveTo(108, 7793, 5234);
               
               for(i = 0 ; n < 15 ; i++)
               {
                  NTC_Delay(100);
                  if(NT_KillMonster(GetLocaleString(2852), 1))
                  {   
                     NTSI_PickItems();
                     if(NTConfig_FastMode != 1) NT_ClearPosition(40, true, 1);
                     return NT_BackToStar();
                  }
               }
            }
         }
      }
   }
   else
   {   
      for(var i = 0; i < S1X.length; i++)
      {
         NTM_MoveTo(108, S1X[i], S1Y[i]);
         NT_Clear(25, true, 1);
         if(NTConfig_OpenHiddenStashes == 1) NT_OpenHiddenStashes();
      }
   
      for(var n = 0; n < 2; n++)
      {
         NT_OpenSeal(394, 7803, 5154);
         NTM_MoveTo(108, 7789, 5157);
     
         for(i = 0 ; i < 15 ; i++)
         {
            NTC_Delay(100);
            if(NT_KillMonster(GetLocaleString(2852), 1))
            {   
               NTSI_PickItems();
               if(NTConfig_FastMode != 1) NT_ClearPosition(40, true, 1);
               return NT_BackToStar();
            }
         }
      }
   }

   return NT_BackToStar();
}   

function NT_InfectorSeal(type)
{
   var I1X   = [7822,7826,7832,7850,7858,7868,7877,7891,7907,7927,7932];// looks like a hook
   var I1Y   = [5297,5278,5307,5278,7305,5297,5276,5276,5276,5279,5298];

   var I2X   = [7825,7827,7834,7845,7855,7852,7875,7896,7917];// shape of a "t"
   var I2Y   = [5293,5276,5291,5315,5301,5278,5293,5295,5291];

   
   if(type == 2)
   {
      for(var i = 0; i < I2X.length; i++)
      {
         NTM_MoveTo(108, I2X[i], I2Y[i]);
         NT_Clear(25, true, 1);
         if(NTConfig_OpenHiddenStashes == 1) NT_OpenHiddenStashes();
      }

      for(var n = 0; n < 2; n++)
      {   
         NT_OpenSeal(392, 7895, 5309);
         NTM_MoveTo(108, 7899, 5295);

         for(i = 0 ; i < 15 ; i++)
         {
            NTC_Delay(200);
   
            if(NT_KillMonster(GetLocaleString(2853), 1))
            {
               if(NTConfig_FastMode != 1) NT_Clear(40, false, 1);
               NTSI_PickItems();
               NT_OpenSeal(393, 7895, 5275);
               return NT_BackToStar();
            }
         }

         NT_OpenSeal(393, 7915, 5275);
      }
   }

   else
   {
      for(var i = 0; i < I1X.length; i++)
      {
         NTM_MoveTo(108, I1X[i], I1Y[i]);
         NT_Clear(25, true, 1);
         if(NTConfig_OpenHiddenStashes == 1) NT_OpenHiddenStashes();
      }

      for(var n = 0; n < 2; n++)
      {
         NT_OpenSeal(392, 7924, 5315);
         NTM_MoveTo(108, 7932, 5297);

         for(i = 0 ; i < 15 ; i++)
         {
            NTC_Delay(200);
   
            if(NT_KillMonster(GetLocaleString(2853), 1))
            {
               if(NTConfig_FastMode != 1) NT_Clear(40, false, 1);
               NTSI_PickItems();
               NT_OpenSeal(393, 7915, 5275);
               return NT_BackToStar();
            }
         }

         NT_OpenSeal(393, 7915, 5275);
      }
   }
   
   return NT_BackToStar();
}   

function NT_KillDiablo()
{
   if(NTConfig_MakeTP == 1)
   {
      NTM_MoveTo(108, 7827, 5284);
      NTM_MakeTP();
      NTM_MoveTo(108, 7791, 5290);
   }

   NTC_FindUnit(NTC_UNIT_MONSTER, 243, 100);

   if(!NT_KillMonster(243, 2))
   {
      NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
      return;
     
   }
     
   NTSI_PickItems();
   NTC_Delay(500);

   if(NTConfig_NextGameMsg != '')
      Say(NTConfig_NextGameMsg);

   NTC_Delay(250);
}

function NT_BackToStar()
{
   NTM_MoveTo(108, 7791, 5290);

   if(NTConfig_FastMode != 1) NT_Clear(25, true, 1);
   
   if(me.x != 7791 && me.y != 5290) NTM_MoveTo(108, 7791, 5290);

   if(NTConfig_FastMode != 1)
   {
      NTP_DoPrecast(true);
      NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe)
   }
}

function NT_GetSeals()
{
   if(me.x != 7791 && me.y != 5290)
   {
      NTM_MoveTo(108, 7791, 5290);
      NT_Clear(20, true, 1);
   }
   
   if(NTConfig_MakeTP == 1  && NTConfig_FastMode != 1)
   {
      NT_Clear(20, true, 1);
      NTM_MoveTo(108, 7791, 5290);
      NTM_MakeTP();
      if(NTConfig_WaitAndBO == 1)
      {
         Say(NTConfig_BOSayMsg + " " + NTConfig_BOWait);
         NTC_Delay(NTConfig_BOWait*1000);
            NTP_DoPrecast(true);
      }
   }   

   Print("?c5Getting seal information...");

   var _result = false;
   var viztype, venomtype, seistype;


   var pre = GetPresetUnits(108, NTC_UNIT_OBJECT);

   for(var i = 0; i < pre.length; i++)
   {
      if(pre[i].id == 396)
      {
         if(pre[i].roomy*5 + pre[i].y == 5275 && pre[i].roomx*5 + pre[i].x == 7655)

            viztype = 2;
         else
         
            viztype = 1;
      }
   
      if(pre[i].id == 394)
      {
         if(pre[i].roomx*5 + pre[i].x != 7773)
            seistype = 1;
         else
            seistype = 2;
      }

      if(pre[i].id == 392)
      {
         if(pre[i].roomx*5 + pre[i].x == 7893)
            venomtype = 2;
         else
            venomtype = 1;
      }
   }
   
   Print("?c5Grand Vizier of Chaos, Type: " + viztype);
   Print("?c5Lord De Seis, Type: " + seistype);
   Print("?c5Infector of Souls, Type: " + venomtype);
   
   for(var i = 0; i < 3; i++)
   {
      switch(NTConfig_SealOrder[i])
      {
         case 'w':
               _result = NT_VizierSeal(viztype);
               _result = false;
            break;
         case 'n':
               _result = NT_DeSeisSeal(seistype);
               _result = false;
            break;
         case 'e':
               _result = false;
               _result = NT_InfectorSeal(venomtype);
            break;
         default:
               _result = NT_VizierSeal(viztype);
     
               _result = false;
   
               _result = NT_DeSeisSeal(seistype);
         
               _result = false;
   
               _result = NT_InfectorSeal(venomtype);

               return _result;
            break;
      }
   }

   return _result;   
}

function NT_OpenSeal(classid, x, y)
{
   NTM_MoveTo(108, x, y);

   if(NTConfig_FastMode != 1)
      NT_Clear(40, true, 1);

   var seal = NTC_FindUnit(NTC_UNIT_OBJECT, classid, 10);

   if(seal.mode > 0) return;

   for(var i = 0; i < 4; i++)
   {
      if((i % 2) == 0)
      {
         if(GetDistance(me, seal) > 2) NTM_MoveTo(seal.areaid, seal.x+4, seal.y);

         NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, seal);
         
         if(seal.mode > 0) return Print("?c5Seal " + classid + " is now activated!");
      }

      NTC_Delay(200);
   }
}

function NT_CheckShrine()
{
   NTC_Delay(250);

   var shrine = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(2225), 3);

   if(shrine)
   {
      do
      {     
         if(GetDistance(me.x,me.y,shrine.x,shrine.y) < 15)
         {
            switch(shrine.shrinetype)
            {
               case 12: // skill shrine
               case 13: // mana recharge shrine
                  NTM_MoveTo(108, shrine.x, shrine.y);
                  NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, shrine);
                  break;
               default:
                  break;
            }
         }

      }while(shrine.GetNext());
   }

   NTP_DoPrecast(true);
}

function NT_OpenHiddenStashes()
{
   var _chest = GetUnit(NTC_UNIT_OBJECT, GetLocaleString(3274));
   
   if(_chest)
      do
      {
         if(GetDistance(me.x,me.y,_chest.x,_chest.y) < 20 && !_chest.mode > 0 )
         {
            NTM_MoveTo(108, _chest.x+1, _chest.y)
            if(NTC_OpenChest(_chest))
            {
               NTSI_PickItems();
               break;
            }
         }
               
      }while(_chest.GetNext());
}

function NT_KillMonster(classid, retry)
{
   if(arguments.length < 2)
      retry = 0;

   var _target;

   if(NTConfig_AttackSkill[1] < 1)
      return false;

   _target = NTC_FindUnit(NTC_UNIT_MONSTER, classid, retry);

   if(!_target)
      return false;

   if(_target.IsAttackable())
   {
      var _attackcount = 0;

      while(_attackcount < 300 && NTA_IsValidMonster(_target))
      {
         if(NTA_Attack(_target, (_attackcount%30) == 0) < 2)
            break;

         _attackcount++;
      }
   }

   if(_target.hp <= 0 || _target.mode == 0 || _target.mode == 12)
      return true;
   
}

function NT_Clear(range, pickitem, safelevel)
{
   if(NTConfig_SkipRegularMonsters == 1) NT_ClearPosition(range, pickitem, safelevel, 1);

   else NT_ClearPosition(range, pickitem, safelevel, 0);
}

function NT_ClearPosition(range, pickitem, safelevel, spectype)
{
   var _orgx, _orgy;
   var _skiplist;
   var _attackcount = 0;
   var _target;
   var _distance, _mingid, _mindistance;
   var _result;
   

   if(NTConfig_AttackSkill[1] < 1 || NTConfig_AttackSkill[3] < 1)
      return false;

   switch(arguments.length)
   {
   case 0:
      range = 20;
   case 1:
      pickitem = true;
   case 2:
      safelevel = 0;
   case 3:
      spectype = 0;
   default:
      if(NTConfig_CheckSelfSafe < 0x01 && NTConfig_CheckMercSafe < 0x01)
         safelevel = 0;
      break;
   }

   _orgx = me.x;
   _orgy = me.y;

   
   _skiplist = new Array();

   while(_attackcount < (i+1)*100)
   {
      _mindistance = 100000;

      _target = NTC_FindUnit(NTC_UNIT_MONSTER);

      if(_target)
      {
         do
         {
            if(_skiplist.indexOf(_target.gid) < 0)
            {
                 
               if(_target.IsAttackable() && (_target.spectype != spectype))
               {
         
                  if(GetDistance(_orgx, _orgy, _target.x, _target.y) <= range && NTA_IsValidMonster(_target))
                  {
                     _distance = GetDistance(me, _target);

                     if(_distance < _mindistance)
                     {
                        _mingid = _target.gid;
                        _mindistance = _distance;
                     }
                  }
               }
               else
                  _skiplist.push(_target.gid);
            }
         } while(_target.GetNext());
      }

      if(_mindistance < 100000)
      {
      _target = NTC_FindUnit(NTC_UNIT_MONSTER, _mingid);

         if(_target)
         {
            _result = NTA_Attack(_target, (_attackcount%30) == 0);

            switch(_result)
            {
            case 1:
               _skiplist.push(_mingid);
               break;
            case 2:
            case 3:
               _attackcount++;
               break;
            default:
               return false;
            }
         }
      }
      else
         break;
   }
   

   if(me.classid == NTC_CHAR_CLASS_PALADIN)
   {
      if(_attackcount > 2 && (parseInt(me.hp*100/me.hpmax) < NTConfig_UseRedemptionHP || parseInt(me.mp*100/me.mpmax) < NTConfig_UseRedemptionMP))
      {
         if(NTC_PutSkill(124, NTC_HAND_RIGHT))
            NTC_PingDelay(1000);
      }
   }
   
   if(me.classid == NTC_CHAR_CLASS_SORCERESS)
   {
      if(_attackcount > 2)
         NTC_CastSkill(58, NTC_HAND_RIGHT);
   }
   
   if(pickitem && _attackcount > 0)
      NTSI_PickItems();

   switch(safelevel)
   {
   case 1:
      return NTTMGR_CheckSafe(0x00, NTConfig_CheckMercSafe&0x01);
   case 2:
      return NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe);
   }

   return true;
}


Really dont know what to do just about to give up :(



Online cooptheking03

  • D2NT Specialist
  • Big Boss Man
  • PureKaoz HeRo
  • *******
  • Join Date: Oct 2010
  • Posts: 1651
  • Reputation 4
  • I Run This Chizz
    • View Profile
Re: My Diablo/Chaos Script
« Reply #25 on: April 20, 2011, 07:41:34 PM »
That error is a pretty 'common' error. If you until the edits you make, your bot folder works flawlessly correct?
I have no idea then what exactly could be going wrong in the copy/paste. If you dont have many edits already in your folder, you could download CoopMod and this (among many other things) are included.
It's in the stickies.
If you do not wish to do that (which is also fine) Please post the entire contents of your Character configuration + the contents surrounding
IsValidMonster section of NTAttack.ntl
I Do Not Do Support Via PM.
I Can Help Xfer Anycore/Anyrealm/Anytime.
PM me here or on JSP : TheAmazingShac0

Offline kyle43235

  • Newbie
  • *
  • Join Date: Apr 2011
  • Posts: 29
  • Reputation 0
  • I <3 PureKaoz.com
    • View Profile
Re: My Diablo/Chaos Script
« Reply #26 on: April 26, 2011, 01:21:17 AM »
i keep gettin an error

ntl_config make portal  or something like that

Online cooptheking03

  • D2NT Specialist
  • Big Boss Man
  • PureKaoz HeRo
  • *******
  • Join Date: Oct 2010
  • Posts: 1651
  • Reputation 4
  • I Run This Chizz
    • View Profile
Re: My Diablo/Chaos Script
« Reply #27 on: April 26, 2011, 01:24:41 AM »
did you add this to your character configuration?
Code: [Select]
   //use 1 for true and 0 for false
   NTConfig_SealOrder = ['w', 'n', 'e']; //seal order, w = west (vizier), n = north (de seis), e = east (venom)
   NTConfig_NextGameMsg = ''; // leave = '' to say nothing
   NTConfig_FastMode = 0; // open seals and kill bosses only (a little more dangerous)
   NTConfig_SkipRegularMonsters = 0; // true = skip regular monsters (non uniques/champs)
   NTConfig_ClearFromFront = 1; // clear from the entrance to the star
   NTConfig_OpenHiddenStashes = 0; // open the hidden stashes, doesnt open on fastmode
   NTConfig_MakeTP = 1; // true to make a tp. if clearing from front it will make one there, else at star
   // if MakeTP is true its basically public mode, if not none of the below will trigger
   NTConfig_WaitAndBO = 1; // true = bot will wait for x seconds and cast BO (if you dont have CTA set to false)
   NTConfig_BOSayMsg = 'Let me clear quick'; // what to say when preparing to cast BO (dont include seconds)
   NTConfig_BOWait = 2; // time in seconds to wait before using BO
I Do Not Do Support Via PM.
I Can Help Xfer Anycore/Anyrealm/Anytime.
PM me here or on JSP : TheAmazingShac0

Offline kyle43235

  • Newbie
  • *
  • Join Date: Apr 2011
  • Posts: 29
  • Reputation 0
  • I <3 PureKaoz.com
    • View Profile
Re: My Diablo/Chaos Script
« Reply #28 on: April 26, 2011, 01:36:00 AM »
did you add this to your character configuration?
Code: [Select]
   //use 1 for true and 0 for false
   NTConfig_SealOrder = ['w', 'n', 'e']; //seal order, w = west (vizier), n = north (de seis), e = east (venom)
   NTConfig_NextGameMsg = ''; // leave = '' to say nothing
   NTConfig_FastMode = 0; // open seals and kill bosses only (a little more dangerous)
   NTConfig_SkipRegularMonsters = 0; // true = skip regular monsters (non uniques/champs)
   NTConfig_ClearFromFront = 1; // clear from the entrance to the star
   NTConfig_OpenHiddenStashes = 0; // open the hidden stashes, doesnt open on fastmode
   NTConfig_MakeTP = 1; // true to make a tp. if clearing from front it will make one there, else at star
   // if MakeTP is true its basically public mode, if not none of the below will trigger
   NTConfig_WaitAndBO = 1; // true = bot will wait for x seconds and cast BO (if you dont have CTA set to false)
   NTConfig_BOSayMsg = 'Let me clear quick'; // what to say when preparing to cast BO (dont include seconds)
   NTConfig_BOWait = 2; // time in seconds to wait before using BO

yes i did im tryin to figure it what it is, ive done everything, want me to post my script?

Offline kyle43235

  • Newbie
  • *
  • Join Date: Apr 2011
  • Posts: 29
  • Reputation 0
  • I <3 PureKaoz.com
    • View Profile
Re: My Diablo/Chaos Script
« Reply #29 on: April 26, 2011, 01:38:51 AM »
actually now im gettin another error

reference error : nta_initialize is not defined

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: My Diablo/Chaos Script
« Reply #29 on: April 26, 2011, 01:38:51 AM »