Results 1 to 8 of 8
  1. #1

    Cool D2NT Bot, Channel Chat Actions.

    Hello out there.
    - Are there any config, for channel action.
    Like, i want my bot, to write a text in the channel, before it's making the game, Are there any options for this?

    If anyone, have some GOOD answers, bring them :)

  2. #2
    Tech Elder The Mob's Avatar
    Join Date
    Oct 2004
    Posts
    1,876
    Blog Entries
    7

    Default

    i dont think so.
    there is however, ways you can change the text for when you are about to kill baal.
    thats in the
    D2NT172_NTBot36\D2NT\scripts\bots\NTBaal.ntj
    here is my file below. the text output is in the middle and towards the end

    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("TP up, Enter at own risk");
    }

    NT_ClearThroneInt();

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

    NTM_MakeTP();
    Say("TP safe!");
    }

    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 ; i++)
    {
    _wave = NT_ThroneCheckInt();
    if(_wave > 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("Killing Baal. Follow me on channel BlizzSector");

    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("New game in 15s. Follow me at channel BlizzSector");

    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.length ; i += 2)
    {
    NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);

    NTA_ClearPosition(25, 0x04);
    NTA_ClearPosition(25);
    NTSI_PickItems();
    }

    NTT_CleanPotions();
    }

    function NT_ThroneCheckInt()
    {
    var _monster;

    if(!NTC_FindMonster(543))
    return 5;

    _monster = NTC_GetUnit(NTC_UNIT_MONSTER);

    if(_monster)
    {
    do
    {
    if(NTA_IsValidTarget(_monster))
    {
    if(_monster.classid == 23 || _monster.classid == 62)
    return 1;

    if(_monster.classid == 105 || _monster.classid == 381)
    return 2;

    if(_monster.classid == 557)
    return 3;

    if(_monster.classid == 558)
    return 4;

    if(_monster.classid == 571)
    return 5;
    }
    } while(_monster.GetNext());
    }

    return 0;
    }

    function NT_ThronePreAttackInt()
    {
    if(me.classid == NTC_CHAR_CLASS_SORCERESS)
    {
    if(NTConfig_AttackSkill[2] == 56 || NTConfig_AttackSkill[2] == 59)
    return NTC_DoCast(NTConfig_AttackSkill[2], 2, 15092, 5028);
    }
    else if(me.classid == NTC_CHAR_CLASS_PALADIN)
    {
    if(NTConfig_AttackSkill[2] == 112)
    {
    if(NTConfig_PutAura > 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);
    }
    }
    US East L/NL-arowws4 arowws5 uber/organ runs for free. Free items too. Just ask. Must be member of this site.

  3. #3

    Default

    Yes i know. But it was more about, helping the Channel users, so they can see the next game my bot gonna make.

  4. #4
    Forum Member 5Cats's Avatar
    Join Date
    Dec 2009
    Location
    Winnipeg, Manitoba, Canada
    Posts
    25

    Default

    Thanks Mob! I'm glad to finally get it to say something fun :)
    "Baal stole my catnip! Bad Monster!!"

  5. #5
    Tech Elder The Mob's Avatar
    Join Date
    Oct 2004
    Posts
    1,876
    Blog Entries
    7

    Default

    you might need to have a dedicated channel bot then..
    as far as i know, d2nt doesnt have that feature. (or i never discovered it)
    US East L/NL-arowws4 arowws5 uber/organ runs for free. Free items too. Just ask. Must be member of this site.

  6. #6

    Default

    There is a way to get it to say things in chat, but i haven't gotten it to be able to say the number of the next game.
    If you look in the NTBot file and go down to case 3: //lobby chat you can add something like
    Say(Next Game Soon);
    under
    Say("/join" + etc...);

    I'm still looking into editing a script for this, ill post back if i find anything new.

  7. #7

    Default

    There is no real way to do this with the Standard D2NT. However, GVEtal (Heavily modded D2NT) has this option available and you may want to look into it.
    Need help with setting up D2NT? Check out my guide: http://d2nt-setup-pickit-guide.bravehost.com/

  8. #8

    Default

    OMG.. just add another chat after it. worked for me :P

    case 3: // Lobby Chat
    if(!chatActionsDone)
    {
    chatActionsDone = true;
    Delay(Random(waitInChatBeforeActionsMin, waitInChatBeforeActionsMax));

    if(joinRandomChannel || joinChannelInChat != "")
    {
    Say("/join " + (joinRandomChannel ? getRandomString(Random(3,10)) : joinChannelInChat)); Say

    ("noobs fail.");
    Delay(1000);
    }

    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mod actions thread
    By Loits in forum Small Talk
    Replies: 35
    Last Post: 04-24-2006, 09:41 PM
  2. Ushop - No Actions Found
    By Shellz in forum Diablo II Discussion
    Replies: 2
    Last Post: 08-24-2005, 12:52 AM
  3. Whats up w/the chat channel??
    By TheWizKid in forum Help and Suggestions!
    Replies: 3
    Last Post: 03-11-2005, 01:08 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •