hmm, ihr habt alle Fehler, habt ihr alle aktuellen Updates usw. drauf?
Meiner hat beim Cuben keine Probleme!
LG rené
Meiner hat beim Cuben keine Probleme!
LG rené
if(NTConfig_CubingItem[i][0] == NTCU_GEM) // Gems [COLOR="Red"]<-- Zeile 1276[/COLOR] _count = 3; else if(NTConfig_CubingItem[i][0] >= NTCU_MAGIC && NTConfig_CubingItem[i][0] <= NTCU_MAGIC_CHARM) // Magic _count = 27; else if(NTConfig_CubingItem[i][0] == MWCU_RARE) // Rare _count = 12; else if(NTConfig_CubingItem[i][0] >= NTCU_CRAFT_HITPOWER_HELM && NTConfig_CubingItem[i][0] <= NTCU_CRAFT_SAFETY_WEAPON // // Crafting || NTConfig_CubingItem[i][0] >= NTCU_SOCKET_BODYARMOR && NTConfig_CubingItem[i][0] <= NTCU_SOCKET_SHIELD) // Socketing _count = 9; else if(NTConfig_CubingItem[i][0] >= NTCU_RUNE_THUL && NTConfig_CubingItem[i][0] <= NTCU_RUNE_LEM || NTConfig_CubingItem[i][0] == NTCU_ESSENCE) // Runes/Essences _count = 6; else // Runes >= EL && <= ORT OR >= PUL && <= CHAM _count = 5;
if(NTConfig_CubingItem[i][0] >= NTCU_MAGIC && NTConfig_CubingItem[i][0] <= NTCU_MAGIC_CHARM) // Magic _count = 27; else if(NTConfig_CubingItem[i][0] == MWCU_RARE) // Rare _count = 12; else if(NTConfig_CubingItem[i][0] >= NTCU_CRAFT_HITPOWER_HELM && NTConfig_CubingItem[i][0] <= NTCU_CRAFT_SAFETY_WEAPON // // Crafting || NTConfig_CubingItem[i][0] >= NTCU_SOCKET_BODYARMOR && NTConfig_CubingItem[i][0] <= NTCU_SOCKET_SHIELD) // Socketing _count = 9; else if(NTConfig_CubingItem[i][0] >= NTCU_RUNE_THUL && NTConfig_CubingItem[i][0] <= NTCU_RUNE_LEM || NTConfig_CubingItem[i][0] == NTCU_ESSENCE) // Runes/Essences _count = 6; else // Runes >= EL && <= ORT OR >= PUL && <= CHAM and Gems _count = 5;
var _hotIPs, _currentIP;
var i;
_hotIPs = [42, 43, 44];
_currentIP = me.gameserverip.split(".")[3];
for(i = 0; i < _myHotIPs.length; i++)
{
if(_currentIP == _myHotIPs[i])
break;
}
if(i >= _myHotIPs.length)
NTC_SendMsgToScript("MWBotGame.ntj", "SCRIPT_END");
function NTMain(){
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
var i;
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
NTA_Initialize();
if(!NTTM_CheckAct()) {
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
if(me.areaid != 1){
if(!NTTM_TownMove("waypoint")){
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
return;
}
if(!NTM_TakeWaypoint(1)){
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}
}
NTC_SendLogToOOG(NTC_LOG_ITEM, "ÿc9 ip" + "ÿc3[" + "ÿc3" + me.gameserverip.split(".")[3] + "]", 0);
if(NTGVCH_IpCheck()){
NTC_SendLogToOOG(NTC_LOG_COMMON, "ÿc9HOT IP FOUND!!!" + "ÿc3[" + "ÿc3" + me.gameserverip.split(".")[3] + "]", 0);
me.maxgametime = 0;
SetStatusText("ÿc1IP FOUND!! " + " [" + me.gameserverip.split(".")[3] + "] ");
NTGVCH_AntiIdle();
}
if(NTConfig_JustAHunter){
Print("ÿc4 No luck!!! Time to waste time!! lest try to avoid R/D!!");
NTC_PingDelay(NTConfig_AvoidRD*1000);
Print("ÿc4 Next game, better luck!! [[[[= <3!!");
}
else{
Print("ÿc4 No HOT IP!!! ZzzZZzZZz, it's time-to-kill time!!");
}
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
function NTGVCH_IpCheck() {
var _presentip = Number(me.gameserverip.split(".")[3]);
for (var i = 0; i < NTConfig_HotIP.length; i++) {
if (_presentip == NTConfig_HotIP[i]){
return true;
}
}
return false;
}
function NTT_PrintCoordinatesIPandGateway(){
NTC_Delay(1000);
while (me.areaid != 0){
NTC_Delay(3000);{
Print("c1 got to " + "Area: " + me.areaid + " X: " + me.x + " Y: " + me.y + " On: " + me.gatewayid + " IP: " + me.gameserverip);
}
}
}
function NTGVCH_AntiIdle(){
while (me.areaid != 0){
NTC_PingDelay(500);
Say("!HOT IP Found!! " + " [" + me.gameserverip.split(".")[3] + "] ");
NTC_PingDelay(2000);
NTTM_TownMove("waypoint")
Say("!HOT IP Found!! " + " [" + me.gameserverip.split(".")[3] + "] ");
NTC_PingDelay(2000);
NTTM_TownMove("akara")
Say("!HOT IP Found!! " + " [" + me.gameserverip.split(".")[3] + "] ");
NTC_PingDelay(2000);
NTTM_TownMove("stash")
Say("!HOT IP Found!! " + " [" + me.gameserverip.split(".")[3] + "] ");
NTC_PingDelay(2000);
Say(NTConfig_SaySomethingNoob);
NTC_PingDelay(2000);
Say("!HOT IP Found!! " + " [" + me.gameserverip.split(".")[3] + "] ");
NTC_PingDelay(2000);
NTTM_TownMove("charsi")
Say("!HOT IP Found!! " + " [" + me.gameserverip.split(".")[3] + "] ");
NTC_PingDelay(2000);
Say("!Bring in your sitter");
NTC_PingDelay(2000);
Say("!Exit game with me");
NTC_PingDelay(2000);
Say("!Let's find another game");
NTC_PingDelay(2000);
NTC_PingDelay(4000);
}
}
Ich bin aber auch so doof :)Quote:
@jannimanni
Es gibt eigentlich drei Gründe, warum der Bot sofort das Spiel verlassen könnte:
Kannst ja mal überlegen, was davon zutrifft. ;)
- Mindestens eines der beiden Objekte die die Daten für World Events und Statistik enthalten ist nicht definiert (unwahrscheinlich)
- Die Variable MWConfig_ExitGameOnMissingPassword hat den Wert true und du erstellst ein Spiel, ohne Passwort (in dem Fall würde nichts im Manager Log stehen)
- Du hast keine Bot Scripte eingefügt oder aber du hast sie schlicht und einfach falsch eingefügt (das würde auf die Fehlerbeschreibung passen)
Muddy
/** * This file was written by [Only registered and activated users can see links. Click Here To Register...] * Check the programming section for updates and further scripts * Last Update: 07/20/2010 */ function NTMain() { Include("libs/common/NTCommon.ntl"); NTC_IncludeLibs(); NTC_IncludeConfig("NTBot/char_configs"); NT_LoadConfig(); NTSI_LoadNIPFiles("NTBot/item_configs"); MWC_Initialize(); var _endtime, _starttick, _loops, _hotIPs, _currentIP; var i; if(!NTTM_CheckAct(me.act, true)) { NTC_SendMsgToScript("MWBotGame.ntj", NTTM_CheckAct, 18, me.act, true); return; } NTTMGR_TownManager(); _hotIPs = [42, 43, 44]; _currentIP = me.gameserverip.split(".")[3]; for(i = 0; i < _myHotIPs.length; i++) { if(_currentIP == _myHotIPs[i]) break; } if(i >= _myHotIPs.length) NTC_SendMsgToScript("MWBotGame.ntj", "SCRIPT_END"); _loops = 0; _starttick = GetTickCount(); while((!MWConfig_IdleModeRuntime || MWConfig_IdleModeRuntime * 6E4 + _starttick > GetTickCount())) { SetStatusText("ÿc8Switching to Act " + (1 + _loops % 5) + "..."); NTTM_CheckAct(1 + _loops % 5); SetStatusText("ÿc8Moving to Portal Spot..."); NTTM_TownMove("portalspot"); _endtime = GetTickCount() + 6E4; // Wait 60 seconds in each act while(_endtime > GetTickCount() && ((MWConfig_IdleModeRuntime) ? (MWConfig_IdleModeRuntime * 6E4 + _starttick > GetTickCount()) : true)) { SetStatusText("ÿc2Running ÿc8MWIdleMode (" + ((parseInt((GetTickCount() - _starttick) / 36E5) >= 1) ? parseInt((GetTickCount() - _starttick) / 36E5) + "h" : "") + (parseInt((GetTickCount() - _starttick) / 6E4) % 60) + "m"+ (parseInt((GetTickCount() - _starttick) / 1E3) % 60) +"s) ["+ ((MWConfig_IdleModeRuntime) ? ((MWConfig_IdleModeRuntime / 60 > 1) ? parseInt(MWConfig_IdleModeRuntime / 60) + "h" : "") + (MWConfig_IdleModeRuntime % 60) + "m" : "inf") + "]"); NTC_Delay(1000); } _loops++; } NTC_SendMsgToScript("MWBotGame.ntj", "SCRIPT_END"); }
// Use the following syntax for activating botscripts: MWConfig_Script.push([<ScriptName>, <Script runtime in minutes (0 is infinite)>]);
// ***************** Current schedule ******************
//MWConfig_Script.push(["NTAndariel.ntj", 10]);
//MWConfig_Script.push(["NTPit.ntj", 10]); MWConfig_ClearPathToPitSpectype = 0; NTConfig_ClearPitLevel1 = 2; // 0 : don't clear, 1 : clear path only, 2 : clear all
//MWConfig_Script.push(["NTCountess.ntj", 5]); MWConfig_ClearCountessRoomsSpectype = 0;
//MWConfig_Script.push(["NTAncientTunnels.ntj", 10]); MWConfig_ClearPathToTunnelsSpectype = 0x01;
//MWConfig_Script.push(["NTTravincal.ntj", 10]);
//MWConfig_Script.push(["NTMephisto.ntj", 10]); MWConfig_OpenMephistoChest = true; MWConfig_MephistoClearArea = true;
//MWConfig_Script.push(["NTEldritch.ntj", 10]); NTConfig_ShenkExtension = true;
MWConfig_Script.push(["Others-BaalLeechFight.ntj", 10]); NTConfig_KillBaal = true;
NTConfig_Leader = "asddf" // Name vom Leader-Char, Groß- und Kleinschreibung beachten!
NTConfig_Script.push("Others-DiabloLeechFight.ntj");
NTConfig_Script.push("Others-BaalLeechFight.ntj"); NTConfig_KillBaal = true;
Alles in rot ist falsch. Das grüne ist so korrekt. Bei Unsicherheit einfach nach den Kommentaren richten, siehe blau. :)Quote:
Habs in 2 formen probiert:
entweder ich bin zu doof oder der läds net ^^Code:[COLOR="Blue"]// Use the following syntax for activating botscripts: MWConfig_Script.push([<ScriptName>, <Script runtime in minutes (0 is infinite)>]);[/COLOR] // ***************** Current schedule ****************** //MWConfig_Script.push(["NTAndariel.ntj", 10]); //MWConfig_Script.push(["NTPit.ntj", 10]); MWConfig_ClearPathToPitSpectype = 0; NTConfig_ClearPitLevel1 = 2; // 0 : don't clear, 1 : clear path only, 2 : clear all //MWConfig_Script.push(["NTCountess.ntj", 5]); MWConfig_ClearCountessRoomsSpectype = 0; //MWConfig_Script.push(["NTAncientTunnels.ntj", 10]); MWConfig_ClearPathToTunnelsSpectype = 0x01; //MWConfig_Script.push(["NTTravincal.ntj", 10]); //MWConfig_Script.push(["NTMephisto.ntj", 10]); MWConfig_OpenMephistoChest = true; MWConfig_MephistoClearArea = true; //MWConfig_Script.push(["NTEldritch.ntj", 10]); NTConfig_ShenkExtension = true; [COLOR=Green] MWConfig_Script.push(["Others-BaalLeechFight.ntj", 10])[/COLOR]; NTConfig_KillBaal = true; [COLOR=Orange]NTConfig_Leader[/COLOR] = "asddf" // Name vom Leader-Char, Groß- und Kleinschreibung beachten! [COLOR=Red]NTConfig_Script.push("Others-DiabloLeechFight.ntj");[/COLOR] [COLOR=Red]NTConfig_Script.push("Others-BaalLeechFight.ntj");[/COLOR] NTConfig_KillBaa = true;