Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make the bot say next game?
#1
I have it saying "next game in 10 secs" but i want him to say "next game in 10 secs! gameName-xx"

This is what I have now:

Code:
function locationAction(location)
{
    switch(location.id)
    {
    case 3: // Lobby Chat
        if(!chatActionsDone)
        {
            chatActionsDone = true;
            Delay(Random(waitInChatBeforeActionsMin, waitInChatBeforeActionsMax));

            if(joinRandomChannel || joinChannelInChat != "")
            {
                Say("/join " + (joinRandomChannel ? getRandomString(Random(3,10)) : joinChannelInChat));
                Delay(1000);
                Say("Next game in 10 seconds!");
            }
        }
    case 1:    // Lobby
        if(location.id == 1 && joinChatAfterGame)
        {
            Delay(Random(waitBeforeEnterChatMin, waitBeforeEnterChatMax));
            controlData.click(controlData.controls.lobby.button.enterChat);
            break;
        }

        if(GetTickCount() > nextGameMake)
        {
            var _control;

            lastGameFailed = false;

            switch(lastGameStatus)
            {
                case 0:
                    _control = controlData.get(controlData.controls.lobby.button.create);
                    if(_control && _control.pressed)
                    {
                        controlData.click(controlData.controls.lobby.button.join);
                        Delay(500);
                    }
                    controlData.click(controlData.controls.lobby.button.create);
                    nextGameMake = GetTickCount() + createGameTimeout; // set our timeout
                    sendEventToOOG(D2NT_MGR_PRINT_STATUS, location.name, 0);
                    break;
                case 1: // game failed, rollover to reset timer
                    inGameAt = GetTickCount(); // reset inGameAt, to wait how long we should have waited..
                    lastGameFailed = true;
                case 2:
                    outputGameLength();
                    lastGameStatus = 0;
                    setNextGameMake();
                    sendEventToOOG(D2NT_MGR_PRINT_STATUS, location.name, 0);
                    break;
            }
        }
        else
            timeoutDelay(nextGameMake-GetTickCount(), location);
        break;

    case 2: // Waiting In Line
        if(GetTickCount()-lastGameMade > waitInLineTimeout)
            controlData.click(controlData.controls.lobby.inLine.button.cancel);
        break;

    case 4: // Create Game
        sendEventToOOG(D2NT_MGR_CREATE_GAME, location.name, 0);

        locationTimeout(5000, location);

        lastGameMade = GetTickCount();
        lastGameStatus = 1; // pending creation
        break;

    case 5: // Join Game
        break;
Reply


Messages In This Thread
How to make the bot say next game? - by alphabot - 12-18-2010, 02:40 PM
How to make the bot say next game? - by Kilajs - 01-01-2011, 05:13 AM
How to make the bot say next game? - by Jammer74 - 01-02-2011, 03:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  D2 MultiRes crashes when loading game KLan 15 1,145 09-06-2012, 09:06 AM
Last Post: Virgil Popa
  Can the bot create game without "-xx" ? Adamz 2 174 07-06-2012, 09:38 PM
Last Post: Adamz
  is there a way to pause the bot in game? htid 10 348 07-04-2012, 04:14 AM
Last Post: comper
  D2nt - how do i stay in game when sojs sell? brianwalter86 5 354 07-01-2012, 02:02 PM
Last Post: comper
  boting 2 chars in the same game momme 0 173 06-20-2012, 05:44 AM
Last Post: momme
  Starting to make some LLD pickits bmxrider1279 30 822 04-09-2012, 01:12 PM
Last Post: comper
  Need Help Setting Up a Leader And Leech For Private Game runs [Etal v7] Kurts 4 370 04-01-2012, 06:39 PM
Last Post: Kurts
  Wondering If i can run multiple d2nt bots in the same game bmxrider1279 2 393 03-29-2012, 10:55 AM
Last Post: bmxrider1279
  Problem starting up de game Terrorkid 7 334 03-02-2012, 05:44 AM
Last Post: comper
  Can I make my bot pick up items to sell for gold? Romis 3 406 02-02-2012, 08:37 AM
Last Post: comper

Forum Jump:


Users browsing this thread: 1 Guest(s)