November 23, 2014, 11:57:58 PM

Author Topic: D2NT Baal Leech Bot SCRIPT  (Read 62749 times)

Offline Justin

  • I run this bitch!
  • Administrator
  • PureKaoz HeRo
  • *****
  • Posts: 813
  • Reputation 3
  • Fck Bnet
    • View Profile
    • PureKaoz.com
D2NT Baal Leech Bot SCRIPT
« on: May 19, 2010, 01:16:40 AM »
NOTE: This script is made by BEO900, i have tested and use this script, it works great and is legit props to him!


##################################################################
#################FINISHED FINAL (for now)#########################
#############Better leecher scripts can easily be made############
#################Please follow all directions#####################
######Will always attempt to join the game the leader is in#######
##################################################################

****FIXES****
Always attempts to join the game the leader is in (even when full)
No longer keeps trying to join games that have not been created by the leader.
Should have perfect synchronizing with the leader even when a game is missed!
*****MORE FIXES*****
Solved the massive amounts of FTJ games from the leader, the bot will now go to character sleect screen and log back on to clear his text.
Thanks to zexxx, the bot will now read the mesage sent from the leader when he joins a game instead of spamming /f l (english only, i think)
Made the time of the leecher joining the games quicker (put all the actions into 1 part instead of using the join game case.
Will now send the message to d2nt manager to increment the game number for multiple cd key use
Increased the time to wait before checking if partied to leader to ~40 seconds (some games are slower then others)



So I finally got a baal follow bot working for D2NT 3.0, which will attempt to join the game created by the (leader) once he is inside the game. This requires the follower and the bot to be on the friends list.

Here is the script for the follow bot to use.

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(); // 10

   var _leader = "iMake_Fg"; // Name of leader's character in game (exactly)
   
   if(!NTTM_CheckAct())
   {
      NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
      return;
   }

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

   if(!NTM_TakeWaypoint(109))
   {
      NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
      return;
   }
   }
       
   NTTMGR_TownManager();
   
   NTTM_TownMove("portalspot");

   for(i = 0; i <= 200; i++)
   {
      if(NTC_InMyParty(_leader))
         break;

      Delay(200);
   }   

   while(me.areaid == 109 && NTC_InMyParty(_leader))
   {
      NTM_UsePortal("BluePortal", 131, _leader); // 50
      Delay(5000);
       
   }
   
   NTP_DoPrecast(true);

   while(NTC_InMyParty(_leader))
   {
      Delay(1000);
   }


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

}



Copy this code to a notepad with the extension .ntj and put it inside the bots folder.
I named my script NTBaalLeech.ntj

Go to the character config file and add in the line
NTConfig_Script.push("NTBaalLeech.ntj");
where all the other ones are (when running the follow bot only load this script.

Now copy and paste this code into a new notepad called NTBotLeech.ntj
Put this file in D2NT\D2NT\Scripts
You will see NTBot.ntj and NTMap.ntj in this folder already.

http://pastebin.com/HFEjpdAL The /f list code, this is the one i use, and it is most accurate and efficient.



Near the top of this code you will notice it says var leaderAccountName = "xxx";
Which ever account you are using that is the leader, put that account name exactly as it appears on the friends list in the quotes.

After you have these 2 files, the next step is to open up the file controlInfo.ntl
In this file locate the 2 lines that read this:
this.controls.lobby.chat.textBox    = new Array();
this.controls.lobby.chat.textBox.channelName    = [4,28,138,354,60];

Add this line under these:
this.controls.lobby.chat.textBox.channelText = [4,28,410,354,298];

This line makes the bot able to read the friends list.


I also editted the leader's baal script so the first tp it sends is fairly safe in the corner near baal (leechscript will take first tp from the leader)

There are 2 different if(ntconfig_publicmode) near the top of the baal script, what i did was i deleted the first if statement, and changed the 2nd one to look like this
Code: [Select]
if(NTConfig_PublicMode)
   {
      NTM_MoveTo(me.areaid, 15112, 5004, 1, true);
      NTA_ClearPosition(20, true, 2);
      NTM_MoveTo(me.areaid, 15116, 5004);

      NTM_MakeTP();
      //Say("TP is safe!");
      NT_ClearThroneInt();
   }

Places to edit in the NTBaalLeech.ntj file
NTA_Initialize(); // 10

var _leader = ""; // Name of leader's character in game, case sensitive

if(!NTTM_CheckAct())


Places to edit in the NTBotLeech.ntj
var joinChannelInChat = ""; // leave blank to not join a private channel

var leaderAccountName = "";   // Account name on friends list

var gamepassword = '';    // Game password if using one

in case 28: // game does not exist
Delay(160000); Edit this number accordingly, 1000 = 1 second



In the D2NT Manager on the bottom right you will see a drop down list of different .ntj files to load. Select NTBotLeech.ntj for the leech bot.





I may have missed a step in here, so any questions or if it is not working please feel free to post or PM me. I will try and help.




Owner of Cutting Edge Promotions http://CEPromotion.net

Offline xSownaGe

  • PK Active
  • *
  • Posts: 44
  • Reputation 0
    • View Profile
Re: D2NT Baal Leech Bot SCRIPT
« Reply #1 on: June 08, 2010, 11:40:36 PM »
hey did all this and when i load it i get syntax error before i even get to main screen on d2. any thoughts i made a  new Char config i dont know if i needed to do thiss but im leeching a druid. came up syntax error 179 i believe .
this is what i added to char config renamed druid set up inventory.  stopped from running bosses

NTConfig_Script.push("NTBaalLeech,ntj")
 

noob_patrol

  • Guest
Re: D2NT Baal Leech Bot SCRIPT
« Reply #2 on: June 09, 2010, 04:57:42 AM »
« Last Edit: June 09, 2010, 05:30:21 AM by noob_patrol »

PureKaoz.com

Re: D2NT Baal Leech Bot SCRIPT
« Reply #2 on: June 09, 2010, 04:57:42 AM »

Offline xSownaGe

  • PK Active
  • *
  • Posts: 44
  • Reputation 0
    • View Profile

noob_patrol

  • Guest
Re: D2NT Baal Leech Bot SCRIPT
« Reply #4 on: June 09, 2010, 09:03:24 AM »
Fixed myself



ps go here
http://purekaoz.com/index.php/topic,3.0.html

ok ? how
go the the link scroll down to the bottom download the d2nt folder under justins sig

rename the config file ur using

add the runners character name

add the account name
(in the fields required)
then setup how you normally would
go to the link i posted ... its easyr to understand

Offline xSownaGe

  • PK Active
  • *
  • Posts: 44
  • Reputation 0
    • View Profile
Re: D2NT Baal Leech Bot SCRIPT
« Reply #5 on: June 09, 2010, 04:33:54 PM »
Fixed myself



ps go here
http://purekaoz.com/index.php/topic,3.0.html

error still happens and i dont have that channel mubo jumbo
well that script isnt in the
ok ? how
go the the link scroll down to the bottom download the d2nt folder under justins sig

rename the config file ur using

add the runners character name

add the account name
(in the fields required)
then setup how you normally would
go to the link i posted ... its easyr to understand

PureKaoz.com

Re: D2NT Baal Leech Bot SCRIPT
« Reply #5 on: June 09, 2010, 04:33:54 PM »

Offline mattc28

  • Newbie
  • *
  • Posts: 1
  • Reputation 0
    • View Profile
Re: D2NT Baal Leech Bot SCRIPT
« Reply #6 on: June 10, 2010, 08:37:14 PM »
Fixed myself



ps go here
http://purekaoz.com/index.php/topic,3.0.html

ok ? how
go the the link scroll down to the bottom download the d2nt folder under justins sig

rename the config file ur using

add the runners character name

add the account name
(in the fields required)
then setup how you normally would
go to the link i posted ... its easyr to understand

Just as a reminder, in your char config file, you must comment out "//" all of the different actions under Boss Config except for the following 2:
NTConfig_Leader = "asdf" // Your Leader name - CaSe sensitive. This is the IN GAME CHARACTER NAME
NTConfig_Script.push("NTBaalLeechFight.ntj"); NTConfig_KillBaal = true;

Also, in your char file, you must set the following variable:
NTConfig_PublicMode = true;
This by default is set to false, it must be changed to true.

Offline xSownaGe

  • PK Active
  • *
  • Posts: 44
  • Reputation 0
    • View Profile
Re: D2NT Baal Leech Bot SCRIPT
« Reply #7 on: June 11, 2010, 12:04:01 AM »
thanks. still having this problem i dont know what to do. syntax error. any thoughts it wont even logg on accnt.

kky2kgod

  • Guest
Re: D2NT Baal Leech Bot SCRIPT
« Reply #8 on: June 17, 2010, 05:06:05 AM »
i am not sure what i missed. it joins a channel and spams "I cannot read this chat!"

bedt

  • Guest
Re: D2NT Baal Leech Bot SCRIPT
« Reply #9 on: June 17, 2010, 08:00:30 AM »
xSownaGe

you have a typing error in : NTConfig_Script.push("NTBaalLeech,ntj") 

It should be NTConfig_Script.push("NTBaalLeech.ntj")

PureKaoz.com

Re: D2NT Baal Leech Bot SCRIPT
« Reply #9 on: June 17, 2010, 08:00:30 AM »

noob_patrol

  • Guest
Re: D2NT Baal Leech Bot SCRIPT
« Reply #10 on: June 17, 2010, 08:15:02 AM »
xSownaGe

you have a typing error in : NTConfig_Script.push("NTBaalLeech,ntj") 

It should be NTConfig_Script.push("NTBaalLeech.ntj")
this can't belive i missed it

Offline xSownaGe

  • PK Active
  • *
  • Posts: 44
  • Reputation 0
    • View Profile
Re: D2NT Baal Leech Bot SCRIPT
« Reply #11 on: June 18, 2010, 04:29:45 PM »
xSownaGe

you have a typing error in : NTConfig_Script.push("NTBaalLeech,ntj") 

It should be NTConfig_Script.push("NTBaalLeech.ntj")
this can't belive i missed it

no thats not it. it runs fine but then leaves game after casting bear and cyclone

Markisonfire

  • Guest
Re: D2NT Baal Leech Bot SCRIPT
« Reply #12 on: June 20, 2010, 04:50:17 AM »
Hey, im haveing a little trouble, I find my leecher dies a lot from taking the first portal, how do I make it so that the leader doesnt make the portal until the first wave is about to start?


or atleast the leacher doesnt take the portal until the first wave is about to start
« Last Edit: June 20, 2010, 05:00:44 AM by Markisonfire »

noob_patrol

  • Guest
Re: D2NT Baal Leech Bot SCRIPT
« Reply #13 on: June 20, 2010, 05:27:09 AM »
Hey, im haveing a little trouble, I find my leecher dies a lot from taking the first portal, how do I make it so that the leader doesnt make the portal until the first wave is about to start?


or atleast the leacher doesnt take the portal until the first wave is about to start
if ur using the leech fight script get better gear
or if ur using leech script just edit so theres a delay or just do as you said and remove it

Markisonfire

  • Guest
Re: D2NT Baal Leech Bot SCRIPT
« Reply #14 on: June 20, 2010, 02:54:25 PM »
Hey, im haveing a little trouble, I find my leecher dies a lot from taking the first portal, how do I make it so that the leader doesnt make the portal until the first wave is about to start?


or atleast the leacher doesnt take the portal until the first wave is about to start
if ur using the leech fight script get better gear
or if ur using leech script just edit so theres a delay or just do as you said and remove it

hmm.. I edited the delay so that it enters during the first wave. but I still dont think its the safest teleport spot to go to.. (top right) where in the script do I change the teleport location (I want it to be at the bottom right), and what do I change it to? Sorry for being so illiterate with scripts..
« Last Edit: June 20, 2010, 03:05:40 PM by Markisonfire »

PureKaoz.com

Re: D2NT Baal Leech Bot SCRIPT
« Reply #14 on: June 20, 2010, 02:54:25 PM »

 


Parse error: syntax error, unexpected '<' in /home4/purekaoz/public_html/pkaoz/Themes/default/Ads.template.php(642) : eval()'d code on line 1