Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
D2NT/NTBot Single Player Question
#1
Is there a way for the bot to set the number of players in the game when it starts up? Is it possible for it to type "/players 8", or would there have to be a different way to achieve this?

Thanks.
Reply
#2
Well I don't know much about programming or anything, but this is what I did to get mine to set players to 8 during single-player baal runs.

If you wanted to set it to 8 players during a different run, such as chaos, you would need to edit whatever .ntj file you planned on loading.

First: I edited the NT_Config file for the character your using (Mine was named NT_Config_Sorceress_absorby.ntl and added another 'message' I named mine Baal_SingleplayerMessage, but you can name it whatever you want to: (I put mine under "Public Baal Settings" Just to keep it somewhat organized)

Code:
Baal_SingleplayerMessage = "/players 8"
So mine looks like this:
Code:
//------------------------\\
    // "Public Baal Settings" \\
    //------------------------\\
    
    [COLOR=Yellow]Baal_SingleplayerMessage = "/players 8" [/COLOR]                                  
    Baal_WelcomeMessage = "Welcome"                  
    Baal_TpUpMessage = "tp up"
    Baal_KillBaalMessage = "Baal"  
    Baal_NextGameMessage = "blahblah ng"
    NTConfig_BRWisperToFriendList = true;


Second:
I edited NTFastBaal.ntj (This is where you'd edit whatever script you planned on using, I use this script for single-player baal runs so it's the one I edited.)

And added:

Code:
Say(Baal_SingleplayerMessage);
(I added this near the beginning on line 18, two lines after it prints "Fast Baal Script" So it is said in the beginning of the game, but you can put it anywhere you want.)

So mine looks like:

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

    var i;
    var _wave;
    var _starttick;

    NT_LoadConfig();
    NTSI_LoadNIPFiles();

    NTA_Initialize();
    
    Print("ÿc3[Fast Baal Script] - Load");
    
    [COLOR=Yellow]Say(Baal_SingleplayerMessage);[/COLOR]
    
    if(!NTTM_CheckAct())
    {
        NTC_SendMsgToScript("default.ntj", "NTTM_CheckAct()");
        return;
    }

...etc more code etc...
And then when my bot creates a single player game and is running the fastbaalscript, it will say "/players 8"

(There are probably many others here who know much more and could probably explain it better and know a way to do it easier, but I searched and found nothing, and no other replies to your post.)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [D2NT Release] Druid Script skidude 20 17,272 08-25-2012, 01:20 AM
Last Post: comper
  D2NT BoT Gh0sT17 52 2,064 07-31-2012, 11:10 PM
Last Post: comper
  D2nt need help on some stuff wishyq 3 171 07-22-2012, 12:44 PM
Last Post: comper
  Little Help Please? (D2NT) pnsmcgraw 12 272 07-16-2012, 02:46 PM
Last Post: Mythosis
  A question about Monster Identification 48Inches 4 182 07-03-2012, 05:19 PM
Last Post: 48Inches
  MasivB's D2NT Simple Unique PickIt masivb 1 118 07-03-2012, 05:03 AM
Last Post: comper
  D2nt - how do i stay in game when sojs sell? brianwalter86 5 356 07-01-2012, 02:02 PM
Last Post: comper
  Nooby D2NT Questions Kieran Wilson 0 129 06-25-2012, 04:35 PM
Last Post: Kieran Wilson
  [D2NT Release]Item Logging with XML 3.0+ skidude 76 14,585 06-25-2012, 01:27 PM
Last Post: masivb
  D2nt Bot jewel pickit/godly item pickit Nightwish 3 233 06-23-2012, 04:18 AM
Last Post: comper

Forum Jump:


Users browsing this thread: 1 Guest(s)