Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[D2NT Release] Welcome Mat v1.0b
#1
[SIZE=2][SIZE=3][D2NT Release] Welcome Mat v1.0b

[/SIZE][/SIZE][SIZE=2]Well here it is...
It's not what I was hoping to release but I've done all I can for now. Maybe someone else will have some luck with it.

[SIZE=2][Players message log]

[/SIZE][/SIZE][ATTACH=CONFIG]1931[/ATTACH]

[Bots message log]
[ATTACH=CONFIG]1932[/ATTACH]

[SIZE=2][SIZE=2] This is a simple mod for the D2NT31 NTBot42 version found on this site.
It displays a welcome message when a player joins the game if "NTConfig_PublicMode = true;".
I would have liked to have used whispers to avoid spam on the screen,
but had to disable that function because it wasn't very reliable to say the least.
Also users with "/o igw" enabled would not see the message.

Another feature I had intended to release with this was for
[/SIZE][/SIZE][SIZE=2][SIZE=2]"NTConfig_PublicMode = false;".[/SIZE][/SIZE]
Where if a player invited the bot, the bot would accept and display a welcome message.
This feature was removed because it conflicted with
[SIZE=2][SIZE=2]"NTConfig_PublicMode = true;", and when it wasn't conflicting it was causing some unwanted results such as excess spam.

I've probably spent a good 20 hours debugging every possible option I could think of, and while some results were positive they seemed to cancel out the more important ones. At any rate this release should be considered Beta.

[SIZE=3]Preparation:
[/SIZE][/SIZE][/SIZE]
  • [SIZE=2][SIZE=2][SIZE=3][SIZE=2]I highly recommend using Notepad++ for all file editing.[/SIZE][/SIZE][/SIZE][/SIZE]
  • [SIZE=2][SIZE=2][SIZE=3][SIZE=2]This release is for D2NT31 NTBot42 as found in the download section of this site here. I cannot guarantee it will work with other builds/versions.
    [/SIZE][/SIZE][/SIZE][/SIZE]
[SIZE=2][SIZE=2][SIZE=3][SIZE=2]
[/SIZE]
Installation:
[SIZE=1]ATTENTION: It is highly recommended that you create a backup of your D2NT folder or any files prior to opening them for editing.


[/SIZE][/SIZE][/SIZE][/SIZE][SIZE=2]Step 1:
Open up the backup of the D2NT folder you just created.
We're going to work with this so we don't touch your original and make a big mess.

Step 2:
Navigate to \scripts\NTBot\tools\ and open up NTToolsThread.ntj using Notepad++.

Step 3:
Scroll down the page and locate the line that starts with "if(NTConfig_PublicMode)".
You can use the search function if you prefer by pressing "Ctrl+F".
[/SIZE]
Quote: if(_count++ > 10)
{
if(NTConfig_PublicMode)
{
_player = GetPlayerUnit();
[SIZE=2]
If it says something else like "if (NTConfig_AcceptInviteOnly), then you are using another build but it still may work.

The script should look like this:
Pastebin Link
[/SIZE]
Code:
if(_count++ > 10)
        {
            if(NTConfig_PublicMode)
            {
                _player = GetPlayerUnit();

                if(_player)
                {
                    _mypartyid = _player.partyid;

                    while(_player.GetNext())
                    {
                        if(_player.partyid == 65535 || _player.partyid != _mypartyid)
                        {
                            if(_player.partyflag == 2)
                            {
                                me.ClickParty(_player, 2);
                                break;
                            }

                            if(_player.partyid == 65535)
                            {
                                if(_player.partyflag == 4)
                                    break;

                                me.ClickParty(_player, 2);
                                NTC_Delay(NTC_DELAY_FRAME);

                                if(_player.partyflag == 4 ||  (_player.partyid != 65535 && _player.partyid == _mypartyid))
                                    break;
                            }
                        }
                    }
                }
            }

            _count = 0;
        }

        NTC_Delay(200);
    }
[SIZE=2]

Step 4:
Edit the script to look like the following.
Pastebin Link
[/SIZE]
Code:
//Modified NTToolsThread.ntj by DNA64 @ http://www.blizzsector.co
//Codename: Welcome Mat
//Version 1.0 [Beta]

if(_count++ > 10)
      {
         if(NTConfig_PublicMode)
         {
            _player = GetPlayerUnit();

            if(_player)
            {
               _mypartyid = _player.partyid;
              
               while(_player.GetNext())
               {
                  if(_player.partyid == 65535 || _player.partyid != _mypartyid)
                  {
                     if(_player.partyflag == 2)        //partyflag  //0 =  Null //2 = Player invited you  //4 = You invited player
                     {
                        me.ClickParty(_player, 2); // Auto accepts party invites.
                        //Say ("Hi, come help us and enjoy the drops!"); //DEBUG
                        break;
                     }

                     if(_player.partyid == 65535)
                     {
                        if(_player.partyflag == 4)
                           break;
                          
                        me.ClickParty(_player, 2);
                        NTC_Delay(NTC_DELAY_FRAME);
                        
                        if(_player.partyflag == 4 || (_player.partyid != 65535 && _player.partyid == _mypartyid))

                        Say ("Hi, come help us and enjoy the drops!"); //
                        //Say("/w *" + _player.name + " Hi, Please  accept the party invite I sent you, and enjoy the drops!"); // DEBUG
                           break;
                          
                     }
                  }
               }
            }
         }

         _count = 0;
      }

        NTC_Delay(200);
[SIZE=2]
Step 5:
Save and load D2NT Manager.exe from the backup folder. Run & Enjoy!
Questions, Comments, Suggestions Welcomed!

- Happy Botting
DNA64 devilish:
[SIZE=1]
[/SIZE]This document had to be retyped because submission failed so I kinda got lazy sorry...it looked much better before Tongue
[/SIZE]


Attached Files
.jpg   invitationsent.jpg (Size: 10.11 KB / Downloads: 13)
.jpg   onjoinmsg.jpg (Size: 49.51 KB / Downloads: 13)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [D2NT Release] Druid Script skidude 20 17,261 08-25-2012, 01:20 AM
Last Post: comper
  D2NT BoT Gh0sT17 52 2,030 07-31-2012, 11:10 PM
Last Post: comper
  D2nt need help on some stuff wishyq 3 166 07-22-2012, 12:44 PM
Last Post: comper
  Little Help Please? (D2NT) pnsmcgraw 12 264 07-16-2012, 02:46 PM
Last Post: Mythosis
  MasivB's D2NT Simple Unique PickIt masivb 1 116 07-03-2012, 05:03 AM
Last Post: comper
  D2nt - how do i stay in game when sojs sell? brianwalter86 5 349 07-01-2012, 02:02 PM
Last Post: comper
  Nooby D2NT Questions Kieran Wilson 0 128 06-25-2012, 04:35 PM
Last Post: Kieran Wilson
  [D2NT Release]Item Logging with XML 3.0+ skidude 76 14,537 06-25-2012, 01:27 PM
Last Post: masivb
  D2nt Bot jewel pickit/godly item pickit Nightwish 3 230 06-23-2012, 04:18 AM
Last Post: comper
  someone please help my d2nt bot wont kill any bosses mcmullenp4 2 178 06-19-2012, 10:18 AM
Last Post: comper

Forum Jump:


Users browsing this thread: 1 Guest(s)