Hey, ist schon jemand durch den Autobus durchgestiegen?
Bin grad dabei den Bot zu übersetzen und mache eigentlich gute Fortschritte, aber hier komm ich irgendwie nicht weiter.
In der "NTAutoBusD.ntj" (Das 'D' steht wohl für Driver) hab ich Gamename und Passwort eingestellt. "Unter ..../MyConfigs/Autobus.ntl" Hab ich etwas rumprobiert, aber im Endeffekt dann doch nichts geändert, bis auf "var _MyABC_TotalNumber = 2;"
Im D2NT-Manager hab ich dann als Entry Point "NTAutoBusD.ntj". Er startet das Spiel auch normal, allerdings bleibt er, nachdem er den Channel gejoint hat, bei "Überprüfen Room Planner (...)" stehen. Steht also nur blöd im Channel rum.
Hier ist mal die Funktion, die das hervorruft:
Quote:
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.butto n.join);
Delay(500);
}
if (My_File("NTBot/MyData/AutoBus/AutoBusKey.txt", 0) != "//")
{
sendEventToOOG(D2NT_MGR_PRINT_STATUS, "Überprüfen Room Planner (...)", 0);
SetStatusText("Überprüfen Room Planner (ÿc0...ÿc4)");
My_CheckGameName();
SetStatusText("Anfang Room Planner (ÿc0...ÿc4)");
controlData.click(controlData.controls.lobby.butto n.join);
}
else
{
SetStatusText("Holes Zeichen (ÿc0...ÿc4)");
controlData.click(controlData.controls.lobby.butto n.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;
}
}
|
Alles was davor ist lässt er außer acht, ich hab keine Ahnung wieso, oder was ich da einstellen muss. Ich häng mal die, vorläufig mit Google übersetzten, "NTAutoBusD.ntj" und "AutoBus.ntl" an. Vielleicht kann sich das ja mal jemand angucken, das soll nämlich in meinen nächsten Bot.
mfg, wessi