D2NT 3.0 Fehler

03/28/2010 20:38 badman#1
moin,
D2NT 3.0 läuft bei mir ohne Probleme.
Aber wenn ein Boss tot ist, krieg ich jedesmal diesen Fehler :


D2NT\scripts\libs\common\NTItemParser.ntl (60) : SyntaxError: missing ; before statement

Line 60 hab ich mal fettgedruckt dargestellt

Hier die Datei:
Quote:
/* [Item-parser Syntax Information]

1. [Keyword] separates into two groups
- [Property Keywords] : [Type], [Name], [Class], [Quality], [Flag], [Level], [Prefix], [Suffix]
- [Stat Keywords] : [Number or Alias]

2. [Keyword] must be surrounded by '[' and ']'

3. [Property Keywords] must be placed first

4. Insert '#' symbol between [Property Keywords] and [Stat Keywords]

5. Use '+', '-', '*', '/', '(', ')', '&&', '||', '>', '>=', '<', '<=', '==', '!=' symbols for comparison

6. Use '//' symbol for comment

*/

Include("libs/common/NTItemAlias.ntl");

var _NTIP_CheckList = new Array();

function NTIPOpenFile(filepath)
{
var _nipfile;
var _line;

_nipfile = FileOpen(filepath, 0);

if(!_nipfile)
return false;

while(!_nipfile.eof)
{
_line = NTIPParseLineInt(_nipfile.ReadLine());

if(_line)
_NTIP_CheckList.push(_line);
}

_nipfile.Close();

return true;
}

function NTIPCheckItem(item)
{
var i;
var _identified;
var _result = 0;

_identified = item.itemflag & 0x10;

for(i = 0 ; i < _NTIP_CheckList.length ; i++)
{
if(_NTIP_CheckList[i][0].length > 0)
{
if(eval(_NTIP_CheckList[i][0]))
{
if(_NTIP_CheckList[i][1].length > 0)
{
if(eval(_NTIP_CheckList[i][1]))
return 1;
else if(!_identified && _result == 0)
_result = -1;
}
else
return 1;
}
}
else if(_NTIP_CheckList[i][1].length > 0)
{
if(eval(_NTIP_CheckList[i][1]))
return 1;
else if(!_identified && _result == 0)
_result = -1;
}
}

return _result;
}

// Internal function
function NTIPParseLineInt(input)
{
var i;
var _start, _end;
var _section, _keyword;
var _result;

_end = input.indexOf("//");
if(_end != -1)
input = input.substring(0, _end);

input = input.replace(/ |;/g, "").toLowerCase();

if(input.length < 5)
return null;

_result = input.split("#");

if(_result[0] && _result[0].length > 4)
{
_section = _result[0].split("[");

_result[0] = _section[0];

for(i = 1 ; i < _section.length ; i++)
{
_end = _section[i].indexOf("]") + 1;

switch(_section[i][0])
{
case 't':
_result[0] += "item.itemtype";
break;
case 'n':
_result[0] += "item.classid";
break;
case 'c':
_result[0] += "item.itemclass";
break;
case 'q':
_result[0] += "item.quality";
break;
case 'f':
if(_section[i][_end] == '!')
_result[0] += "!(item.itemflag&";
else
_result[0] += "(item.itemflag&";

_end += 2;
break;
case 'l':
_result[0] += "item.itemlevel";
break;
case 'p':
_result[0] += "item.itemprefix";
break;
case 's':
_result[0] += "item.itemsuffix";
break;
default:
Print("Unknown Keyword : " + input);
break;
}

for(_start = _end ; _end < _section[i].length ; _end++)
{
if(!NTIPIsSyntaxInt(_section[i][_end]))
break;
}

_result[0] += _section[i].substring(_start, _end);

for(_start = _end ; _end < _section[i].length ; _end++)
{
if(NTIPIsSyntaxInt(_section[i][_end]))
break;
}

_keyword = _section[i].substring(_start, _end);

if(isNaN(_keyword))
{
switch(_section[i][0])
{
case 't':
_result[0] += _NTIPAliasType[_keyword];
break;
case 'n':
_result[0] += _NTIPAliasClassID[_keyword];
break;
case 'c':
_result[0] += _NTIPAliasClass[_keyword];
break;
case 'q':
_result[0] += _NTIPAliasQuality[_keyword];
break;
case 'f':
_result[0] += _NTIPAliasFlag[_keyword] + ")";
break;
}
}
else
{
if(_section[i][0] == 'f')
_result[0] += _keyword + ")";
else
_result[0] += _keyword;
}

_result[0] += _section[i].substring(_end);
}
}
else
_result[0] = "";

if(_result[1] && _result[1].length > 4)
{
_section = _result[1].split("[");

_result[1] = _section[0];

for(i = 1 ; i < _section.length ; i++)
{
_end = _section[i].indexOf("]");

_keyword = _section[i].substring(0, _end);

if(isNaN(_keyword))
_result[1] += "item.GetStat(" + _NTIPAliasStat[_keyword] + ")";
else
_result[1] += "item.GetStat(" + _keyword + ")";

_result[1] += _section[i].substring(_end+1);
}
}
else
_result[1] = "";

return _result;
}

function NTIPIsSyntaxInt(ch)
{
return (ch == '!' || ch == '%' || ch == '&' || (ch >= '(' && ch <= '+') || ch == '-' || ch == '/' || (ch >= ':' && ch <= '?') || ch == '|');
}
03/28/2010 21:23 badman#2
Kommt schon, der Fehler dürfte doch schnell zu lösen sein!
Oder einfach nur eure Datei schicken, ich übernehm die dann!
03/28/2010 21:35 Snake1972#3
Diablo spricht Englisch! ?????

der bot kommt nur 100% perfekt (crafting etc.) wen dein d2 auf Englisch rennt
03/28/2010 21:38 badman#4
Quote:
Originally Posted by Snake1972 View Post
Diablo spricht Englisch! ?????

der bot kommt nur 100% perfekt (crafting etc.) wen dein d2 auf Englisch rennt
hab die deutsche Version umgestellt auf eng - oder was meinst du?
03/28/2010 22:12 BotKiddie01#5
wie stllt man denn auf englisch um?
03/28/2010 22:15 badman#6
Quote:
Originally Posted by Snake1972 View Post
Diablo spricht Englisch! ?????

der bot kommt nur 100% perfekt (crafting etc.) wen dein d2 auf Englisch rennt
Quote:
Originally Posted by BotKiddie01 View Post
wie stllt man denn auf englisch um?
glaub dazu gibs schon genug threats einfach googeln...
03/28/2010 22:44 BotKiddie01#7
Ja, hervorragend. Vielen Dank soweit schon mal. Ich hab tatsächlich was gefunden.
#
und jetzt sag mir bitte noch schnell, wie ich meinem bot befehle, das game über eine verknüpfung zu starten.

da ziert der sich nämlich ein bischen
03/28/2010 22:55 badman#8
Quote:
Originally Posted by BotKiddie01 View Post
Ja, hervorragend. Vielen Dank soweit schon mal. Ich hab tatsächlich was gefunden.
#
und jetzt sag mir bitte noch schnell, wie ich meinem bot befehle, das game über eine verknüpfung zu starten.

da ziert der sich nämlich ein bischen
geht nicht...

gibt es niemanden, der mir helfen kann?:/
03/28/2010 23:03 Sleeper2000at#9
hast du deine pickit verändert ????
03/28/2010 23:07 badman#10
Quote:
Originally Posted by Sleeper2000at View Post
hast du deine pickit verändert ????
ja...

ups, hab wohl irgendwo einen Fehler gemacht, denn nachdem ich die alten pickit wieder genommen habe geht alles!
03/28/2010 23:22 Sleeper2000at#11
:-) dachte ich´s mir doch, dass mir diese fehlermeldung bekannt vorkommt

jo die pickit ist sehr empfindlich

schade dass die von njomnjomn nicht geht :-)
03/28/2010 23:29 badman#12
Quote:
Originally Posted by Sleeper2000at View Post
:-) dachte ich´s mir doch, dass mir diese fehlermeldung bekannt vorkommt

jo die pickit ist sehr empfindlich

schade dass die von njomnjomn nicht geht :-)
ja, bzw meine eigene.
Hab noch eine sehr gut von 1.12 gehabt, habt mich sehr viel Arbeit gekostet - aber die geht ja nimmer :(
03/29/2010 00:28 Medix#13
Quote:
Originally Posted by Sleeper2000at View Post
:-) dachte ich´s mir doch, dass mir diese fehlermeldung bekannt vorkommt

jo die pickit ist sehr empfindlich

schade dass die von njomnjomn nicht geht :-)
sie ist gleich empfindlich wie die alte nur der syntax ist komplett ein anderer darum sind die pickit dateie nicht kompatibel
03/29/2010 00:33 kal_el#14
ab jez sowas in den passenden thread büdde

closed