Play Legend of the Green Dragon Play BNT Play Promisance Play Alien Assault Traders Play Quantum Star Play Some Chess  
   D3jsp RPGRPG   ArcadeArcade   Multiplayer PokerD3Jsp Poker   FAQ/RulesFAQ/Rules  SearchSearch  MemberlistMemberlist   UsergroupsUsergroups   ChatroomLive Chat   Log inLog in   RegisterRegister 

I'm having problems with my d2nt

 
Post new topic  Reply to topic  d3jsp Forum Index -> Diablo II Discussion -> Bots and Programs
View previous topic :: View next topic ::  


Author Message
Outbreak


Group: Banned
Joined: 06 Nov 2009
Posts: 67
Gold: 8.50


sw.gif

Status:
Warn: Banned
Reputation: 0    


Banned

Post#1 Posted: 15 Nov 2009 12:12 am    Post subject: I'm having problems with my d2nt Reply with quote

I'm trying to use my D2NT to baalbot but when my char joins a game it gives me a red error text saying


<D2NT> C:\Users\Josh\Desktop\d2nt\D2NT\scripts\bots\NTBaal.ntj (197) : SyntaxError: missing ) after argument list


How can I fix this?

_________________
This user's signature has been disabled
Back to top
View user's profile Send private message


cagiva


Group: Members
Joined: 31 Oct 2009
Posts: 613
Gold: 4.00
Clan: D3JSP


Status:
Warn:
Reputation: 1    



Post#2 Posted: 16 Nov 2009 05:10 pm    Post subject: Reply with quote

show source.

the problem is probably in 197th line of the code. check that line is correctly ended with ")" after argument

_____________________
Back to top
View user's profile Send private message
Outbreak


Group: Banned
Joined: 06 Nov 2009
Posts: 67
Gold: 8.50


sw.gif

Status:
Warn: Banned
Reputation: 0    


Banned

Post#3 Posted: 16 Nov 2009 05:46 pm    Post subject: Reply with quote

Thanks to whoever helps me smile


Code:
function NTMain()
{
   Include("common/NTCommon.ntl");
   NTC_IncludeConfig();
   NTC_IncludeLibs();

   var i;
   var _wave;
   var _starttick;

   NT_LoadConfig();
   NTSI_LoadNIPFiles();

   NTA_Initialize();

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

   NTTMGR_TownManager();

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

   if(!NTM_TakeWaypoint(129))
   {
      NTC_SendMsgToScript("default.ntj", "NTM_TakeWaypoint()");
      return;
   }

   NTP_DoPrecast();

   if(!NTM_MoveToObject(me.areaid, NTC_UNIT_TILE, 82, 83))
   {
      NTC_SendMsgToScript("default.ntj", "NTM_MoveToObject()");
      return;
   }

   if(!NTM_TakeStairs(82, 83))
   {
      NTC_SendMsgToScript("default.ntj", "NTM_TakeStairs()");
      return;
   }

   if(!NTM_MoveToObject(me.areaid, NTC_UNIT_TILE, 82, 83))
   {
      NTC_SendMsgToScript("default.ntj", "NTM_MoveToObject()");
      return;
   }

   NTP_DoPrecast();

   if(!NTM_TakeStairs(82, 83))
   {
      NTC_SendMsgToScript("default.ntj", "NTM_TakeStairs()");
      return;
   }

   if(!NTM_MoveTo(me.areaid, 15112, 5068))
   {
      NTC_SendMsgToScript("default.ntj", "NTM_MoveTo()");
      return;
   }

   NTA_ClearPosition(20, 0x04);
   NTA_ClearPosition();
   NTSI_PickItems();

   if(NTConfig_PublicMode)
   {
      NTM_MoveTo(me.areaid, 15116, 5068);

      NTC_PingDelay(1000);

      if(NTA_ClearPosition())
         NTSI_PickItems();

      NTM_MoveTo(me.areaid, 15116, 5068);

      NTM_MakeTP();
      Say("Please don't pick up Juvs.");
   }

   NT_ClearThroneInt();

   if(NTConfig_PublicMode)
   {
      NTM_MoveTo(me.areaid, 15112, 5004, 0, true);

      NTM_MakeTP();
      //Say("It's safe now, princess.");
   }

   while(1)
   {
      if(me.classid == NTC_CHAR_CLASS_PALADIN || me.classid == NTC_CHAR_CLASS_BARBARIAN)
         NTM_MoveTo(me.areaid, 15092, 5028);
      else
         NTM_MoveTo(me.areaid, 15092, 5040);

      if(me.GetState(2))
         NTC_PutSkill(109, NTC_HAND_RIGHT);

      for(i = 0 ; i <6> 0)
            break;

         NTC_Delay(500);
      }

      _starttick = GetTickCount();

      while(_wave == 0)
      {
         if(!NT_ThronePreAttackInt())
            NTC_Delay(200);

         if(GetTickCount()-_starttick > 15000)
         {
            NT_ClearThroneInt();

            _starttick = GetTickCount();
         }

         _wave = NT_ThroneCheckInt();
      }

      NTA_ClearPosition(40, 0x04);
      NTA_ClearPosition(40);
      NTSI_PickItems();
      NTT_CleanPotions();

      if(_wave == 1)
         ;//NTP_DoPrecast();
      else if(_wave == 3)
         NT_CheckHydraInt();
      else if(_wave == 5)
         break;
   }

   if(NTConfig_KillBaal)
   {
      var _portal;

      if(NTConfig_PublicMode)
         //Say("Channel "Clan Ant" for more awesome runs");

      if(!NTConfig_CheckSafe)
      {
         if(!NTTMGR_CheckSafe(3))
         {
            NTC_SendMsgToScript("default.ntj", "NTTMGR_CheckSafe()");
            return;
         }
      }

      NTM_MoveTo(me.areaid, 15092, 5010);

      NTP_DoPrecast();

      while(NTC_FindMonster(543))
         NTC_Delay(500);

      _portal = NTC_GetUnit(NTC_UNIT_OBJECT, 563);

      if(!_portal)
      {
         NTC_SendMsgToScript("default.ntj", "NTC_GetUnit()");
         return;
      }

      if(!NTM_UsePortal("Portal", 132, null, _portal))
      {
         NTC_SendMsgToScript("default.ntj", "NTM_UsePortal()");
         return;
      }

      NTM_MoveTo(me.areaid, 15138, 5916);

      if(!NTA_KillBoss(544))
      {
         NTC_SendMsgToScript("default.ntj", "NTA_KillBoss()");
         return;
      }

      NTSI_PickItems();
   }

   if(NTConfig_PublicMode)
      Say("Channel "Clan Ant" for more awesome runs");

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

// Internal function
function NT_ClearThroneInt()
{
   var _attackpos = [15112, 5068, 15075, 5065, 15114, 5045, 15114, 5012, 15095, 5024, 15078, 5013, 15092, 5040];

   for(var i = 0 ; i <_attackpos> 0)
            NTC_PutSkill(NTConfig_PutAura, NTC_HAND_RIGHT);

         return NTC_DoCast(NTConfig_AttackSkill[2], 2);
      }
   }

   return false;
}

function NT_CheckHydraInt()
{
   var _hydra1, _hydra2, _hydra3;

   _hydra1 = NTC_GetUnit(NTC_UNIT_MONSTER, 351);
   _hydra2 = NTC_GetUnit(NTC_UNIT_MONSTER, 352);
   _hydra3 = NTC_GetUnit(NTC_UNIT_MONSTER, 353);

   if((_hydra1 && _hydra1.GetStat(172) != 2 && _hydra1.GetState(105))
      || (_hydra2 && _hydra2.GetStat(172) != 2 && _hydra2.GetState(105))
      || (_hydra3 && _hydra3.GetStat(172) != 2 && _hydra3.GetState(105)))
   {
      NTM_MoveTo(me.areaid, 15112, 5004);

      if(me.GetState(2))
         NTC_PutSkill(109, NTC_HAND_RIGHT);

      NTC_Delay(3000);
   }
}

_________________
This user's signature has been disabled
Back to top
View user's profile Send private message
Qry
Nick

Group: Banned
Joined: 04 Sep 2009
Posts: 256
Gold: 0.00


Status:
Warn: Banned
Reputation: 1    


Banned

Post#4 Posted: 18 Nov 2009 02:58 am    Post subject: Reply with quote

looks fine
_________________
This user's signature has been disabled
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
0 Members:
Post new topic  Reply to topic  d3jsp Forum Index -> Diablo II Discussion -> Bots and Programs All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



D3jsp is proudly powered by phpBB © 2.0
Theme and Forum by tramway