Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Diablo 2 > Diablo 2 Programming
You last visited: Today at 10:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Kleines problem mit neuem config Ordner

Discussion on Kleines problem mit neuem config Ordner within the Diablo 2 Programming forum part of the Diablo 2 category.

Reply
 
Old   #1
 
toya_ger's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 325
Received Thanks: 50
Kleines problem mit neuem config Ordner

Ich habe ein kleine problem mit dem erstellen eines neuen config Ordners

Also ich wollte für den Shopbot einen eigenen config ordner (nicht mehr NtBot sondern halt NTShop mit Bots,Char/Item usw Ordner)
und zwar funtz alles soweit super nur geht der pause button nicht mehr um ein script zu pausieren!

Code:
		case 19: // pause (PAUSE)
				if(_script)
				{
					if(_script.running)
					{
						_script.Stop();
						pauseTimer = GetTickCount();
						me.maxgametime = 0;
						NTC_Delay(300);
						ClickMap(NTC_CLICK_LUP, NTC_SHIFT_NONE, null);
						SetStatusText("˙c1Stopped ˙c4" + NTConfig_Script[CurScriptIndex]);
						NTC_Delay(2500);
						SetStatusText("˙c1Max game length set to infinite!");
						NT_ScriptMsgEvents("SET_DEFAULT_STATUS");
					}
					else
					{
						Load("NTShop/bots/" + NTConfig_Script[CurScriptIndex]);
						SetStatusText("˙c2Running ˙c4" + NTConfig_Script[CurScriptIndex]);
					}
				}
müsste ja das stück betreffen aus der NTbotgame.ntj

vll weiß ja einer von euch das problem.

D2NT3.1(bb)
toya_ger is offline  
Old 05/20/2010, 02:40   #2
 
elite*gold: 0
Join Date: Jul 2008
Posts: 169
Received Thanks: 14
break;

wo liegt dein NTShop verzeichnis genau im verhältnis zu den anderen botscripten?
fuuch is offline  
Old 05/20/2010, 02:47   #3
 
toya_ger's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 325
Received Thanks: 50
break;habe ich drin^^

also hier noch mal die ganze NtBot game

Im NtBot Ordner gehts natürlich nur wenn ich über all den path in ntbot geändert habe.

Code:
var CurScriptIndex = 0;
var LastScript = false;

var CloneDiabloString;
var CloneDiabloNotify = false;

function NTMain()
{
	Delay(1000);

	//Print("˙c4[+] NTBot 4.2 [+]");

	Include("libs/common/NTCommon.ntl");
	NTC_IncludeLibs();
	NTC_IncludeConfig("NTShop/char_configs");

	NT_LoadConfig();
	NTSI_LoadNIPFiles("NTShop/item_configs");

	if(NTConfig_StartDelay > 0);
		NTC_Delay(NTConfig_StartDelay);

	SetUIState(0x0A, true);

	NTT_GetCorpses();

	if(NTConfig_Script.length > 0)
	{
		NTCU_InitCubing();

		NTT_ClearInventory();
		NTT_ClearBelt();

		Load("NTShop/tools/NTToolsThread.ntj");

		if(NTConfig_CheckCloneDiablo)
		{
		 	CloneDiabloString = GetLocaleString(11005);
			RegisterEvent(EVENT_GAMEMSG, NT_GameMsgEvents);
		}

		RegisterEvent(EVENT_KEYDOWN, NT_KeyEvents);
		RegisterEvent(EVENT_SCRIPTMSG, NT_ScriptMsgEvents);

		Load("NTShop/bots/" + NTConfig_Script[CurScriptIndex]);
		SetStatusText("Running " + NTConfig_Script[CurScriptIndex]);
		NTC_LogCurScript(NTConfig_Script[CurScriptIndex]);

		while(!LastScript || CloneDiabloNotify)
		{
			NTC_Delay(500);
		}
	}

	ExitGame();
}

function NT_GameMsgEvents(msg, type)
{
	if(type == 4 && msg.indexOf(CloneDiabloString) != -1)
	{
		CloneDiabloNotify = true;

		NTC_SendLogToOOG(NTC_LOG_COMMON, "˙c4" + CloneDiabloString);
		SetStatusText(CloneDiabloString);

		me.maxgametime = 0;

		NTC_StopScript(NTConfig_Script[CurScriptIndex]);
		NTC_Delay(500);

		NTTM_CheckAct();
	}
}

function NT_KeyEvents(keycode)
{
	var _script;

	switch(keycode)
	{
		case 19: // pause (PAUSE)
				if(_script)
				{
					if(_script.running)
					{
						_script.Stop();
						pauseTimer = GetTickCount();
						me.maxgametime = 0;
						NTC_Delay(300);
						ClickMap(NTC_CLICK_LUP, NTC_SHIFT_NONE, null);
						SetStatusText("˙c1Stopped ˙c4" + NTConfig_Script[CurScriptIndex]);
						NTC_Delay(2500);
						SetStatusText("˙c1Max game length set to infinite!");
						NT_ScriptMsgEvents("SET_DEFAULT_STATUS");
					}
					else
					{
						Load("NTShop/bots/" + NTConfig_Script[CurScriptIndex]);
						SetStatusText("˙c2Running ˙c4" + NTConfig_Script[CurScriptIndex]);
					}
				}
				break;
	}
}

function NT_ScriptMsgEvents(msg)
{
	var _area;

	switch(msg)
	{
	case "SCRIPT_END":
		if(++CurScriptIndex < NTConfig_Script.length)
		{
			NTTM_CheckAct();
			Load("NTShop/bots/" + NTConfig_Script[CurScriptIndex]);
			SetStatusText("Running " + NTConfig_Script[CurScriptIndex]);
			NTC_LogCurScript(NTConfig_Script[CurScriptIndex]);
		}
		else
			LastScript = true;
		break;
	default:
		Print("˙c1" + NTConfig_Script[CurScriptIndex] + " : " + msg + " failed");

		_area = GetArea();

		if(_area)
			NTC_SendLogToOOG(NTC_LOG_COMMON, "˙E00000" + NTConfig_Script[CurScriptIndex] + " : " + msg + " failed (" + _area.name + ")");
		else
			NTC_SendLogToOOG(NTC_LOG_COMMON, "˙E00000" + NTConfig_Script[CurScriptIndex] + " : " + msg + " failed (unknown area)");

		if(++CurScriptIndex < NTConfig_Script.length)
		{
			NTTM_CheckAct();
			Load("NTShop/bots/" + NTConfig_Script[CurScriptIndex]);
			SetStatusText("Running " + NTConfig_Script[CurScriptIndex]);
			NTC_LogCurScript(NTConfig_Script[CurScriptIndex]);
		}
		else
			LastScript = true;
		break;
	}
}
toya_ger is offline  
Old 05/20/2010, 02:52   #4
 
elite*gold: 0
Join Date: Jul 2008
Posts: 169
Received Thanks: 14
var _script;

ist bei dir null

_script = NTC_FindScript(NTConfig_Script[CurScriptIndex]);
ist es bei mir
fuuch is offline  
Thanks
1 User
Old 05/20/2010, 03:14   #5
 
toya_ger's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 325
Received Thanks: 50
also irgenwie lags daran ob es in meiner confi net richtig geklappt hat habe noch mal ne und gebastelte benutzt da gings dann thx

geht doch noch nicht ganz geht nur 1x wenn ich 2x pause machen will gehts nicht

hier noch mal meine Gamentj

Code:
var CurScriptIndex = 0;
var LastScript = false;

var CloneDiabloString;
var CloneDiabloNotify = false;

function NTMain()
{
	Delay(1000);

	//Print("˙c4[+] NTBot 4.2 [+]");

	Include("libs/common/NTCommon.ntl");
	NTC_IncludeLibs();
	NTC_IncludeConfig("NTShop/char_configs");

	NT_LoadConfig();
	NTSI_LoadNIPFiles("NTShop/item_configs");

	if(NTConfig_StartDelay > 0);
		NTC_Delay(NTConfig_StartDelay);

	SetUIState(0x0A, true);

	NTT_GetCorpses();

	if(NTConfig_Script.length > 0)
	{
		NTCU_InitCubing();

		NTT_ClearInventory();
		NTT_ClearBelt();

		Load("NTShop/tools/NTToolsThread.ntj");

		if(NTConfig_CheckCloneDiablo)
		{
		 	CloneDiabloString = GetLocaleString(11005);
			RegisterEvent(EVENT_GAMEMSG, NT_GameMsgEvents);
		}

		RegisterEvent(EVENT_KEYDOWN, NT_KeyEvents);
		RegisterEvent(EVENT_SCRIPTMSG, NT_ScriptMsgEvents);

		Load("NTBot/bots/" + NTConfig_Script[CurScriptIndex]);
		SetStatusText("Running " + NTConfig_Script[CurScriptIndex]);
		NTC_LogCurScript(NTConfig_Script[CurScriptIndex]);

		while(!LastScript || CloneDiabloNotify)
		{
			NTC_Delay(500);
		}
	}

	ExitGame();
}

function NT_GameMsgEvents(msg, type)
{
	if(type == 4 && msg.indexOf(CloneDiabloString) != -1)
	{
		CloneDiabloNotify = true;

		NTC_SendLogToOOG(NTC_LOG_COMMON, "˙c4" + CloneDiabloString);
		SetStatusText(CloneDiabloString);

		me.maxgametime = 0;

		NTC_StopScript(NTConfig_Script[CurScriptIndex]);
		NTC_Delay(500);

		NTTM_CheckAct();
	}
}

function NT_KeyEvents(keycode)
{
	var _script;

	switch(keycode)
	{
	case 19:
		_script = NTC_FindScript(NTConfig_Script[CurScriptIndex]);
		if(_script)
		{
			if(_script.running)
			{
				_script.Stop();

				NTC_Delay(300);
				ClickMap(NTC_CLICK_LUP, NTC_SHIFT_NONE, null);

				SetStatusText("Stopped " + NTConfig_Script[CurScriptIndex]);
			}
			else
			{
				Load("NTShop/bots/" + NTConfig_Script[CurScriptIndex]);
				SetStatusText("Running " + NTConfig_Script[CurScriptIndex]);
			}
		}
		break;
	}
}

function NT_ScriptMsgEvents(msg)
{
	var _area;

	switch(msg)
	{
	case "SCRIPT_END":
		if(++CurScriptIndex < NTConfig_Script.length)
		{
			NTTM_CheckAct();
			Load("NTBot/bots/" + NTConfig_Script[CurScriptIndex]);
			SetStatusText("Running " + NTConfig_Script[CurScriptIndex]);
			NTC_LogCurScript(NTConfig_Script[CurScriptIndex]);
		}
		else
			LastScript = true;
		break;
	default:
		Print("˙c1" + NTConfig_Script[CurScriptIndex] + " : " + msg + " failed");

		_area = GetArea();

		if(_area)
			NTC_SendLogToOOG(NTC_LOG_COMMON, "˙E00000" + NTConfig_Script[CurScriptIndex] + " : " + msg + " failed (" + _area.name + ")");
		else
			NTC_SendLogToOOG(NTC_LOG_COMMON, "˙E00000" + NTConfig_Script[CurScriptIndex] + " : " + msg + " failed (unknown area)");

		if(++CurScriptIndex < NTConfig_Script.length)
		{
			NTTM_CheckAct();
			Load("NTShop/bots/" + NTConfig_Script[CurScriptIndex]);
			SetStatusText("Running " + NTConfig_Script[CurScriptIndex]);
			NTC_LogCurScript(NTConfig_Script[CurScriptIndex]);
		}
		else
			LastScript = true;
		break;
	}
}
toya_ger is offline  
Old 05/20/2010, 12:04   #6
 
elite*gold: 0
Join Date: Jul 2008
Posts: 169
Received Thanks: 14
Code:
function NT_KeyEvents(keycode)
{
	var _script= NTC_FindScript(NTConfig_Script[CurScriptIndex]);

	switch(keycode)
	{
	case 19:
 
		if(_script)
		{
			if(_script.running)
			{
				_script.Stop();

				NTC_Delay(300);
				ClickMap(NTC_CLICK_LUP, NTC_SHIFT_NONE, null);

				SetStatusText("Stopped " + NTConfig_Script[CurScriptIndex]);
			}
			else
			{
				Load("NTShop/bots/" + NTConfig_Script[CurScriptIndex]);
				SetStatusText("Running " + NTConfig_Script[CurScriptIndex]);
			}
		}
		break;
	}
}
fuuch is offline  
Reply


Similar Threads Similar Threads
[SUCHE] Die CONFIG Datei aus dem Ordner game1_1 und die anderen 5
01/31/2011 - Metin2 Private Server - 3 Replies
Huhu^^ Überschrift^.^ Mein server hat fehler nähmlich rename core. Der Fehler liegt daran das ich den Inhalt verändert habe FileZilla Pfad: /usr/rain/channel/game1_2/
[Suche]Config aus dem Game2 Ordner!
05/29/2010 - Metin2 Private Server - 2 Replies
Ja ich bräuchte die kann die mir jemand hochladen? PRob: CoreFehler liegt an der Config weil da mein pc runtergefahren ist als ich sie bearbeitet habe und jetzt steht dauernd drin nulnulnul xD Naja ich gebe denjenigen THXs ^^ Lg
[SUCHE] Die CONFIG Datei aus dem Ordner game1_2
02/20/2010 - Metin2 Private Server - 6 Replies
Huhu^^ Überschrift^.^ Mein server hat fehler nähmlich rename core. Der Fehler liegt daran das ich ausversehen die CONFIG datei aus dem ordner game1_2 gelöscht habe. FileZilla Pfad: /usr/rain/channel/game1_2/
HP ALLES INSTAL CONFIG IN HTDSC INSTALL ORDNER GELÖSCHT HP GEHT NICHT
11/01/2009 - Metin2 Private Server - 2 Replies
Hi Leute habe Das getan aber es geht nicht wieso und die Datei von Den tut ist in htDsc lg. Peq
problem mit IS von neuem mt2 server!
06/22/2009 - Metin2 Private Server - 33 Replies
hei leute wenn ich aufn IS gehen will kommt folgende nachricht: "Warning: require_once(config.php) : failed to open stream: No such file or directory in /usr/web/www/shop.php on line 2 Fatal error: require_once() : Failed opening required 'config.php' (include_path='.:/usr/local/share/pear') in /usr/web/www/shop.php on line 2" die chinesen sagen ich soll chinesisches firefox benutzen, das hilft abe rnichts und wenn ich dieses firefox chinaIP changer programm benutze komme ich auf...



All times are GMT +1. The time now is 10:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.