Autor Thema: [D2NT] Mephisto  (Gelesen 1088 mal)

naryo

  • Newbie
  • *
  • Danke
  • -vergeben: 1
  • -erhalten: 0
  • Beiträge: 3
    • Profil anzeigen

[D2NT] Mephisto
« am: September 11, 2011, 02:05:12 »
ich hoffe ich poste hier im richtigen bereich =)
und zwar wollte ich fragen ob es eine möglichkeit gibt das der bot die rats-mitglieder bei mephi auch killt und wenn ja wo man es einstellen kann

danke schonmal :)

Xunai

  • Administrator
  • Hero Member
  • *****
  • Danke
  • -vergeben: 15
  • -erhalten: 132
  • Beiträge: 896
    • Profil anzeigen
Re: [D2NT] Mephisto
« Antwort #1 am: September 11, 2011, 03:47:03 »
Die D2NT / D2BS Script section ist zwar eher für script releases gedacht. Aber egal.

Um auf deine Frage zum Mephisto Script zurück zu kommen:


Öffne D2NT\scripts\NTBot\bots\NTMephisto.NTJ

Ändere den Code in

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

   NTP_DoPrecast(true);

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

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

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

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

   NTC_Delay(200);

   if(me.classid != NTC_CHAR_CLASS_PALADIN && me.classid != NTC_CHAR_CLASS_BARBARIAN)
      NTM_MoveTo(me.areaid, 17573, 8071);
           if(!NTA_KillMonster(242))
   {
      NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
      return;
   }

   if(NTConfig_ClearPosition)
      NTA_ClearPosition();
           NTSI_PickItems();

   if(NTConfig_OpenChest)
   {
      var _chest;

      if(NTM_MoveTo(me.areaid, 17520, 8063))
         NTA_ClearPosition(30, true);

      _chest = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3260), 1);

      if(_chest)
      {
         do
         {
            if(_chest.x == 17513 && _chest.y == 8063)
            {
               if(NTC_OpenChest(_chest))
                  NTSI_PickItems();

               break;
            }
         } while(_chest.GetNext());
      }
   }

   if(NTConfig_KillCouncilMembers)
   {
     
      //bottom council members
      NTM_MoveTo(me.areaid, 17651, 8066);
      NTA_ClearPosition();
      NTSI_PickItems();
      NTM_MoveTo(me.areaid, 17630, 8069);
      NTA_ClearPosition();
      NTSI_PickItems();
      NTM_MoveTo(me.areaid, 17625, 8048);
      NTA_ClearPosition();
      NTSI_PickItems();
      NTM_MoveTo(me.areaid, 17647, 8040);
      NTA_ClearPosition();
      NTSI_PickItems();
     
      //left-side council member
      NTM_MoveTo(me.areaid, 17610, 8124);
      NTA_ClearPosition();
      NTSI_PickItems();
      NTM_MoveTo(me.areaid, 17603, 8138);
      NTA_ClearPosition();
      NTSI_PickItems();
      NTM_MoveTo(me.areaid, 17623, 8138);
      NTA_ClearPosition();
      NTSI_PickItems();
     
      //right-side council member
      NTM_MoveTo(me.areaid, 17609, 8022);
      NTA_ClearPosition();
      NTSI_PickItems();
      NTM_MoveTo(me.areaid, 17616, 8006);
      NTA_ClearPosition();
      NTSI_PickItems();
      NTM_MoveTo(me.areaid, 17592, 8015);
      NTA_ClearPosition();
      NTSI_PickItems();
   }

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


Speicher die Datei.

Nun in der Char config folgendes ändern:


NTConfig_Script.push("NTMephisto.ntj");

in

NTConfig_Script.push("NTMephisto.ntj"); NTConfig_KillCouncilMembers = true;

ändern


viel spaß beim botten damit  :happy:
Folgende Mitglieder haben sich bei ihnen bedankt für diesen Beitrag:

naryo

  • Newbie
  • *
  • Danke
  • -vergeben: 1
  • -erhalten: 0
  • Beiträge: 3
    • Profil anzeigen
Re: [D2NT] Mephisto
« Antwort #2 am: September 12, 2011, 01:05:59 »
danke läuft perf. =)