|
You last visited: Today at 15:55
Advertisement
[Release] Muddy's D2NT
Discussion on [Release] Muddy's D2NT within the Diablo 2 Programming forum part of the Diablo 2 category.
02/24/2013, 15:55
|
#6796
|
elite*gold: 0
Join Date: Sep 2010
Posts: 118
Received Thanks: 23
|
Sieht eigentlich normal aus, was vorher abläuft. Laufen andere Skripts? Hast du was am Baal-Skript geändert.
Vielleicht mal die Mule-Einstellungen richtig machen, so dass im D2NT-Fenster der Status in blau dasteht (daran wirds höchstwahrscheinlich nicht liegen, aber mir fällt atm nichts anderes ein).
|
|
|
02/24/2013, 18:36
|
#6797
|
elite*gold: 0
Join Date: Jan 2009
Posts: 3,170
Received Thanks: 1,191
|
Solltest schon mal auf Englisch umstellen; ich wette drauf, dass er im auskommentieren Bereich edititert hat statt die Scripts hoch zu kopieren.
|
|
|
02/24/2013, 18:45
|
#6798
|
elite*gold: 0
Join Date: Nov 2009
Posts: 130
Received Thanks: 22
|
ich hab einfach mal neu runter geladen und nur die sachen wo er hin soll gemacht gucken obs klappt
Quote:
Originally Posted by mirkoregge
Solltest schon mal auf Englisch umstellen; ich wette drauf, dass er im auskommentieren Bereich edititert hat statt die Scripts hoch zu kopieren.
|
wie stell ich noch mal auf englisch um?
|
|
|
02/24/2013, 18:51
|
#6799
|
elite*gold: 0
Join Date: Jan 2009
Posts: 3,170
Received Thanks: 1,191
|
Nutzt du eigentlich Notepad++ zum Einstellen? Am einfachsten kannste mit der Use-Datei auf Englisch umstellen; in den Quciklinks findest du genug Anleitungen dazu.
|
|
|
02/24/2013, 19:50
|
#6800
|
elite*gold: 0
Join Date: Nov 2009
Posts: 130
Received Thanks: 22
|
gerade getesten und es funkioniert nicht -.-*
|
|
|
02/24/2013, 20:34
|
#6801
|
elite*gold: 0
Join Date: Jan 2009
Posts: 3,170
Received Thanks: 1,191
|
Gibts du immer so schnell auf und wechselst gleich den Bot? Ich behaupte immer noch, dass du im KOMMENTIERTEN Bereich der Config nur geändert hast. Unsere Fragen hast du auch nicht beantwortet …
Nutzt du Notepad++ zum Einstellen? Oben bei Sprahe auf Javascript klicken. Dann wirst du sehen, dass du im grün gekennzeichneten Bereich gearbeitet hast. Dieses sieht der Bot allerdings nicht. Poste doch mal deine Charconfig in einer Code-Box. Ich habe diese Woche noch Urlaub, könnte ggf. auch mal via Teamviewer mit Skypesupport helfen.
|
|
|
02/24/2013, 21:06
|
#6802
|
elite*gold: 0
Join Date: Sep 2010
Posts: 118
Received Thanks: 23
|
Diablo von irgend einer Sprache auf Englisch:
Im "diablo" Verzeichnis einen neuen Ordner erstellen: "data"
Im "data" Verzeichnis einen neuen Ordner erstellen: "local"
Dadrin eine Textdatei erstellen, die als Inhalt ein Leerzeichen " " enthält.
Die Textdatei speichern als "use". OHNE ENDUNG!
Das sollte aber gemacht sein!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
€:
Quote:
Originally Posted by mirkoregge
Gibts du immer so schnell auf und wechselst gleich den Bot? Ich behaupte immer noch, dass du im KOMMENTIERTEN Bereich der Config nur geändert hast. Unsere Fragen hast du auch nicht beantwortet …
Nutzt du Notepad++ zum Einstellen? Oben bei Sprahe auf Javascript klicken. Dann wirst du sehen, dass du im grün gekennzeichneten Bereich gearbeitet hast. Dieses sieht der Bot allerdings nicht. Poste doch mal deine Charconfig in einer Code-Box. Ich habe diese Woche noch Urlaub, könnte ggf. auch mal via Teamviewer mit Skypesupport helfen.
|
Wenn da ein Syntax-Fehler drin sein sollte, bleibt der Bot für gewöhnlich stehen und zeigt eine Fehler in Datei "soundso" Zeile "soundso" an...
€: @OxolarsoxO: Ich habe noch keine Antwort auf meinen letzten Post bekommen...
|
|
|
02/24/2013, 21:38
|
#6803
|
elite*gold: 0
Join Date: Nov 2009
Posts: 130
Received Thanks: 22
|
ich hab mein fehler gefunden -.-
// Set to true to exit the game instantly if the game is public. This may happen sometimes due to an error pasting the password correctly.
MWConfig_ExitGameOnMissingPassword = false;
das war auf true -.-*
sry jungs
|
|
|
02/24/2013, 22:27
|
#6804
|
elite*gold: 0
Join Date: Sep 2010
Posts: 118
Received Thanks: 23
|
x| Na wenigstens wissen wir jetzt warum... ^^
|
|
|
02/25/2013, 14:02
|
#6805
|
elite*gold: 0
Join Date: Feb 2013
Posts: 4
Received Thanks: 1
|
Wie bekomme ich den Bot dazu Blut-Ringe und Caster-Amulette zu craften? Der Bot sammelt Gems und cubed die, obwohl die in den Nips auskommentiert sind, aber sonst nichts, also keine Runen, keine Juwelen und keine Amus oder Ringe. Die Rezepte sind in der global config auch entsprechend nicht auskommentiert.
Charms cubed er nur, wenn es sich um Baalcharms handelt?
|
|
|
02/25/2013, 14:08
|
#6806
|
elite*gold: 0
Join Date: Jan 2009
Posts: 3,170
Received Thanks: 1,191
|
Quote:
Originally Posted by neryll
Wie bekomme ich den Bot dazu Blut-Ringe und Caster-Amulette zu craften? Der Bot sammelt Gems und cubed die, obwohl die in den Nips auskommentiert sind, aber sonst nichts, also keine Runen, keine Juwelen und keine Amus oder Ringe. Die Rezepte sind in der global config auch entsprechend nicht auskommentiert.
Charms cubed er nur, wenn es sich um Baalcharms handelt?
|
Code:
//------------------------------------------------------------------------------
// Cubing Configuration
//------------------------------------------------------------------------------
// Set to true to enable cubing and crafting. NOTE: The recipes are added in the global config by default. If you like to craft certain recipe only using this very char, add those recipes below.
NTConfig_Cubing = true;
// Set to true to log cubing of gems in the manager's common log.
MWConfig_ShowCubedGemsInCommonLog = false;
// Set to true to always remove all items from cube after transmuting. If set to false, the item will remain in cube and is not removed until it interferes with another recipe.
MWConfig_ClearCubeAfterCubing = true;
// Set to true to enable an advanced cubing algorithm that allows collecting ingredients for multiple recipes at the same time.
MWConfig_UseAdvancedCubingAlgorithm = true;
// Set to true if you do not want kept low runes or gems to be used for cubing. Set to false to use them anyway.
MWConfig_RestrictKeptItemsFromCubing = false;
// *********************** Misc ***********************
//NTConfig_CubingItem.push([NTCU_ESSENCE, 653]); // Essences --> Token
// ****************** Transmute Gems ******************
// NTConfig_CubingItem.push([NTCU_GEM, 560]); // Flawless Amethyst
// NTConfig_CubingItem.push([NTCU_GEM, 565]); // Flawless Topaz
// NTConfig_CubingItem.push([NTCU_GEM, 570]); // Flawless Saphire
// NTConfig_CubingItem.push([NTCU_GEM, 575]); // Flawless Emerald
// NTConfig_CubingItem.push([NTCU_GEM, 580]); // Flawless Ruby
// NTConfig_CubingItem.push([NTCU_GEM, 585]); // Flawless Diamond
// NTConfig_CubingItem.push([NTCU_GEM, 600]); // Flawless Skull
// NTConfig_CubingItem.push([NTCU_MAGIC, 420]); // Magic Tiara
// NTConfig_CubingItem.push([NTCU_MAGIC, 421]); // Magic Diadem
// ************* Transmute magic and rares *************
// NTConfig_CubingItem.push([NTCU_MAGIC_CHARM, 603]); // Magic Small Charm
// NTConfig_CubingItem.push([NTCU_MAGIC_CHARM, 605]); // Magic Grand Charm
// NTConfig_CubingItem.push([MWCU_RARE, 421]); // Rare Diadem
// ********************** Crafting *********************
// NTConfig_CubingItem.push([NTCU_CRAFT_HITPOWER_GLOVES, 336]); // Craft Chain Gloves
// NTConfig_CubingItem.push([NTCU_CRAFT_HITPOWER_GLOVES, 382]); // Craft Heavy Bracers
// NTConfig_CubingItem.push([NTCU_CRAFT_HITPOWER_GLOVES, 452]); // Craft Vambraces
// NTConfig_CubingItem.push([NTCU_CRAFT_HITPOWER_RING, 522]); // Craft Ring
// NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_HELM, 354]); // Craft Casque
// NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_HELM, 424]); // Craft Armet
// NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_BOOTS, 388]); // Craft Battle Boots
// NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_BOOTS, 458]); // Craft Mirrored Boots
// NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_GLOVES, 381]); // Craft Sharkskin Gloves
// NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_GLOVES, 451]); // Craft Vampirebone Gloves
// NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_BELT, 392]); // Craft Mesh Belt
// NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_BELT, 462]); // Craft Mithril Coil
// NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_AMULET, 520]); // Craft Amulet
// NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_RING, 522]); // Craft Ring
// NTConfig_CubingItem.push([NTCU_CRAFT_CASTER_BOOTS, 455]); // Craft Wyrmhide Boots
// NTConfig_CubingItem.push([NTCU_CRAFT_CASTER_AMULET, 520]); // Craft Amulet
// NTConfig_CubingItem.push([NTCU_CRAFT_SAFETY_SHIELD, 447]); // Craft Monarch
// NTConfig_CubingItem.push([NTCU_CRAFT_SAFETY_AMULET, 520]); // Craft Amulet
einfach entsprechende Crafts aktivieren
|
|
|
02/25/2013, 14:24
|
#6807
|
elite*gold: 0
Join Date: Feb 2013
Posts: 4
Received Thanks: 1
|
Quote:
Originally Posted by mirkoregge
[...]
einfach entsprechende Crafts aktivieren
|
Hab ich wie man unten sieht. Wie gesagt Gems cubed er, genauso wie er in Rüstungen Sockel macht. Nur die Crafts scheinen nicht zu wollen.
Der Wert NTConfig_Cubing wird bei mir im Charprofil gesetzt und ist natürlich auf true.
Code:
//------------------------------------------------------------------------------
// Cubing Configuration
//------------------------------------------------------------------------------
// Set to true to log cubing of gems in the manager's common log.
MWConfig_ShowCubedGemsInCommonLog = true;
// Set to true to always remove all items from cube after transmuting. If set to false, the item will remain in cube and is not removed until it interferes with another recipe.
MWConfig_ClearCubeAfterCubing = true;
// Set to true to enable an advanced cubing algorithm that allows collecting ingredients for multiple recipes at the same time.
MWConfig_UseAdvancedCubingAlgorithm = true;
// Set to true if you do not want kept low runes or gems to be used for cubing. Set to false to use them anyway.
MWConfig_RestrictKeptItemsFromCubing = false;
// *********************** Misc ***********************
NTConfig_CubingItem.push([NTCU_ESSENCE, 653]); // Essences --> Token
// ****************** Transmute Gems ******************
NTConfig_CubingItem.push([NTCU_GEM, 560]); // Flawless Amethyst
NTConfig_CubingItem.push([NTCU_GEM, 565]); // Flawless Topaz
NTConfig_CubingItem.push([NTCU_GEM, 570]); // Flawless Saphire
NTConfig_CubingItem.push([NTCU_GEM, 575]); // Flawless Emerald
NTConfig_CubingItem.push([NTCU_GEM, 580]); // Flawless Ruby
NTConfig_CubingItem.push([NTCU_GEM, 585]); // Flawless Diamond
NTConfig_CubingItem.push([NTCU_GEM, 600]); // Flawless Skull
//NTConfig_CubingItem.push([NTCU_MAGIC, 420]); // Magic Tiara
//NTConfig_CubingItem.push([NTCU_MAGIC, 421]); // Magic Diadem
// ************* Transmute magic and rares *************
NTConfig_CubingItem.push([NTCU_MAGIC_CHARM, 603]); // Magic Small Charm
NTConfig_CubingItem.push([NTCU_MAGIC_CHARM, 605]); // Magic Grand Charm
//NTConfig_CubingItem.push([MWCU_RARE, 421]); // Rare Diadem
// ********************** Crafting *********************
//NTConfig_CubingItem.push([NTCU_CRAFT_HITPOWER_GLOVES, 336]); // Craft Chain Gloves
//NTConfig_CubingItem.push([NTCU_CRAFT_HITPOWER_GLOVES, 382]); // Craft Heavy Bracers
//NTConfig_CubingItem.push([NTCU_CRAFT_HITPOWER_GLOVES, 452]); // Craft Vambraces
//NTConfig_CubingItem.push([NTCU_CRAFT_HITPOWER_RING, 522]); // Craft Ring
//NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_HELM, 354]); // Craft Casque
//NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_HELM, 424]); // Craft Armet
//NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_BOOTS, 388]); // Craft Battle Boots
//NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_BOOTS, 458]); // Craft Mirrored Boots
//NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_GLOVES, 381]); // Craft Sharkskin Gloves
//NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_GLOVES, 451]); // Craft Vampirebone Gloves
//NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_BELT, 392]); // Craft Mesh Belt
//NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_BELT, 462]); // Craft Mithril Coil
//NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_AMULET, 520]); // Craft Amulet
NTConfig_CubingItem.push([NTCU_CRAFT_BLOOD_RING, 522]); // Craft Ring
//NTConfig_CubingItem.push([NTCU_CRAFT_CASTER_BOOTS, 455]); // Craft Wyrmhide Boots
NTConfig_CubingItem.push([NTCU_CRAFT_CASTER_AMULET, 520]); // Craft Amulet
//NTConfig_CubingItem.push([NTCU_CRAFT_SAFETY_SHIELD, 447]); // Craft Monarch
//NTConfig_CubingItem.push([NTCU_CRAFT_SAFETY_AMULET, 520]); // Craft Amulet
// ****************** Transmute runes ******************
//NTConfig_CubingItem.push([NTCU_RUNE_THUL, 562]); // Transmute 3xTHUL --> 1xAMN
//NTConfig_CubingItem.push([NTCU_RUNE_AMN, 557]); // Transmute 3xAMN --> 1xSOL
//NTConfig_CubingItem.push([NTCU_RUNE_SOL, 567]); // Transmute 3xSOL --> 1xSHAEL
//NTConfig_CubingItem.push([NTCU_RUNE_SHAEL, 577]); // Transmute 3xSHAEL --> 1xDOL
//NTConfig_CubingItem.push([NTCU_RUNE_DOL, 572]); // Transmute 3xDOL --> 1xHEL
//NTConfig_CubingItem.push([NTCU_RUNE_HEL, 582]); // Transmute 3xHEL --> 1xIO
//NTConfig_CubingItem.push([NTCU_RUNE_IO, 563]); // Transmute 3xIO --> 1xLUM
//NTConfig_CubingItem.push([NTCU_RUNE_LUM, 558]); // Transmute 3xLUM --> 1xKO
//NTConfig_CubingItem.push([NTCU_RUNE_KO, 568]); // Transmute 3xKO --> 1xFAL
//NTConfig_CubingItem.push([NTCU_RUNE_FAL, 578]); // Transmute 3xFAL --> 1xLEM
//NTConfig_CubingItem.push([NTCU_RUNE_LEM, 573]); // Transmute 3xLEM --> 1xPUL
//NTConfig_CubingItem.push([NTCU_RUNE_PUL, 583]); // Transmute 2xPUL --> 1xUM
//NTConfig_CubingItem.push([NTCU_RUNE_UM, 564]); // Transmute 2xUM --> 1xMAL
//NTConfig_CubingItem.push([NTCU_RUNE_MAL, 559]); // Transmute 2xMAL --> 1xIST
//NTConfig_CubingItem.push([NTCU_RUNE_IST, 569]); // Transmute 2xIST --> 1xGUL
//NTConfig_CubingItem.push([NTCU_RUNE_GUL, 579]); // Transmute 2xGUL --> 1xVEX
//NTConfig_CubingItem.push([NTCU_RUNE_VEX, 574]); // Transmute 2xVEX --> 1xOHM
//NTConfig_CubingItem.push([NTCU_RUNE_OHM, 584]); // Transmute 2xOHM --> 1xLO
//NTConfig_CubingItem.push([NTCU_RUNE_LO, 565]); // Transmute 2xLO --> 1xSUR
//NTConfig_CubingItem.push([NTCU_RUNE_SUR, 560]); // Transmute 2xSUR --> 1xBER
//NTConfig_CubingItem.push([NTCU_RUNE_BER, 570]); // Transmute 2xBER --> 1xJAH
//NTConfig_CubingItem.push([NTCU_RUNE_JAH, 580]); // Transmute 2xJAH --> 1xCHAM
//NTConfig_CubingItem.push([NTCU_RUNE_CHAM, 575]); // Transmute 2xCHAM --> 1xZOD
// ******************* Socket items ********************
// Primary item must inlcluded in one of your .nip Files
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 429]); // Socket Dusk Shroud
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 430]); // Socket Wyrmhide
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 431]); // Socket Scarab Husk
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 432]); // Socket Wire Fleece
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 433]); // Socket Diamond Mail
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 434]); // Socket Loricated Mail
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 435]); // Socket Bone Weave
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 436]); // Socket Great Hauberk
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 437]); // Socket Balrog Skin
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 438]); // Socket Hellforge Plate
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 439]); // Socket Kraken Shell
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 440]); // Socket Lacquered Plate
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 441]); // Socket Shadow Plate
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 442]); // Socket Sacred Armor
NTConfig_CubingItem.push([NTCU_SOCKET_BODYARMOR, 443]); // Socket Archon Plate
//NTConfig_CubingItem.push([NTCU_SOCKET_WEAPON, 200]); NTConfig_CubingItem[NTConfig_CubingItem.length - 1].Ethereal = false; // Socket Berserker Axe
NTConfig_CubingItem.push([NTCU_SOCKET_WEAPON, 255]); // Socket Thresher
NTConfig_CubingItem.push([NTCU_SOCKET_WEAPON, 256]); // Socket Cryptic Axe
//NTConfig_CubingItem.push([NTCU_SOCKET_WEAPON, 257]); // Socket Great Poleaxe
//NTConfig_CubingItem.push([NTCU_SOCKET_WEAPON, 258]); // Socket Giant Thresher
NTConfig_CubingItem.push([NTCU_SOCKET_SHIELD, 447]); NTConfig_CubingItem[NTConfig_CubingItem.length - 1].Ethereal = true; // Socket Monarch
NTConfig_CubingItem.push([NTCU_SOCKET_SHIELD, 498]); NTConfig_CubingItem[NTConfig_CubingItem.length - 1].Ethereal = true; // Socket Sacred Targe
NTConfig_CubingItem.push([NTCU_SOCKET_SHIELD, 502]); NTConfig_CubingItem[NTConfig_CubingItem.length - 1].Ethereal = true; // Socket Vortex Shield
// ******************* Upgrade items *******************
//NTConfig_CubingItem.push([NTCU_UPGRADE_E_UNIQUE_WEAPON, 295]);// Titan's Revenge : Exceptional -> Elite
//NTConfig_CubingItem.push([NTCU_UPGRADE_N_UNIQUE_ARMOR, 337]); // Magefist : Normal -> Exceptional
//NTConfig_CubingItem.push([NTCU_UPGRADE_E_UNIQUE_ARMOR, 360]); // Skin of the Vipermagi : Exceptional -> Elite
//NTConfig_CubingItem.push([NTCU_UPGRADE_E_UNIQUE_ARMOR, 383]); // Magefist or Lava Gout : Exceptional -> Elite
//NTConfig_CubingItem.push([NTCU_UPGRADE_E_UNIQUE_ARMOR, 389]); // Gore Rider : Exceptional -> Elite
//NTConfig_CubingItem.push([NTCU_UPGRADE_E_UNIQUE_ARMOR, 477]); // Arreat's Face : Exceptional -> Elite
//NTConfig_CubingItem.push([NTCU_UPGRADE_E_UNIQUE_ARMOR, 481]); // Herald Of Zakarum : Exceptional -> Elite
//NTConfig_CubingItem.push([NTCU_UPGRADE_N_UNIQUE_ARMOR, 342]); // Goblin Toe N -> E
//NTConfig_CubingItem.push([NTCU_UPGRADE_E_UNIQUE_ARMOR, 388]); // Goblin Toe E -> E
|
|
|
02/27/2013, 11:38
|
#6808
|
elite*gold: 0
Join Date: Jan 2009
Posts: 2
Received Thanks: 0
|
Hello
How do I tell my bot/script to JOIN public games(Dia-, Baal-keywords)? There is no Joiner script with Muddy's. :-(
(You can answer me in german)
|
|
|
02/27/2013, 21:39
|
#6809
|
elite*gold: 0
Join Date: Nov 2009
Posts: 130
Received Thanks: 22
|
hey jungs und mädels ^^
neues problem er macht ein game auf dann nach einer minute taucht das auf

Die datei
Code:
/**
* This file was modified by
* Check the programming section for updates and further scripts
* Last Update: 13:19 26.08.2011
*
* New Keyword added: [MaxQuantity]
* This Keyword must not be placed anywhere except the very beginning of a line in a nip file!
* Any operator except '==' is invalid for [MaxQuantity]!
* Example: [MaxQuantity] == 3 && [Name] = KeyOfDestruction
*/
/*
[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 NTIP_OpenFile(filepath)
{
var _nipfile;
var _line;
var _filename, _lineCount, _buffer;
_lineCount = 0;
_nipfile = FileOpen(filepath, 0);
_filename = filepath.split("/")[filepath.split("/").length - 1];
if(!_nipfile)
return false;
while(!_nipfile.eof)
{
_lineCount++;
_buffer = _nipfile.ReadLine();
try
{
_line = NTIP_ParseLineInt(_buffer);
}
catch(e)
{
Print("ÿc1Wow, this one is REALLY nasty!");
_line = ["UNABLE TO", "PARSE LINE!"];
}
if(_line)
{
_line.push("/" + filepath.split("/")[filepath.split("/").length - 2] + "/" + _filename);
_line.push(_lineCount);
_line.push(_buffer);
_NTIP_CheckList.push(_line);
}
}
_nipfile.Close();
return true;
}
function NTIP_CheckItem(item, checkQuantity, nipDebug)
{
var i;
var _identified;
var _result = 0;
var _quantity, _quantityString, _replacedCheckListItem, _specs;
_identified = item.itemflag & 0x10;
if(arguments.length < 2)
checkQuantity = false;
if(arguments.length < 3)
nipDebug = false;
for(i = 0 ; i < _NTIP_CheckList.length ; i++)
{
if(_NTIP_CheckList[i][0].length > 0)
{
if(_NTIP_CheckList[i][0].indexOf("maxquantity") == -1)
{
if(eval(_NTIP_CheckList[i][0]))
{
if(_NTIP_CheckList[i][1].length > 0)
{
if(eval(_NTIP_CheckList[i][1]))
{
if(nipDebug)
return new Array(1, _NTIP_CheckList[i][2], _NTIP_CheckList[i][3], _NTIP_CheckList[i][4], _NTIP_CheckList[i][0] + " && " + _NTIP_CheckList[i][1]);
return 1;
}
else if(!_identified && _result == 0)
_result = -1;
}
else
{
if(nipDebug)
return new Array(1, _NTIP_CheckList[i][2], _NTIP_CheckList[i][3], _NTIP_CheckList[i][4], _NTIP_CheckList[i][0]);
return 1;
}
}
}
else
{
// Extract the quantity from the string and cast it to integer
_quantityString = _NTIP_CheckList[i][0].split("&&")[0];
for(var n = 0; n < _quantityString.length; n++)
{
if(!isNaN(_quantityString.charAt(n)))
{
_quantity = parseInt(_quantityString.substring(n, _quantityString.length));
break;
}
}
// Remove the quantity definition from the nip string in JavaScript Syntax
_replacedCheckListItem = _NTIP_CheckList[i][0].replace(/maxquantity==\d+&&/gi,"");
if(eval(_replacedCheckListItem))
{
if(_NTIP_CheckList[i][1].length > 0)
{
if(eval(_NTIP_CheckList[i][1]) && (!checkQuantity || MWIP_CheckItemQuantity(_quantity, _replacedCheckListItem + "&&" + _NTIP_CheckList[i][1], item.gid)))
{
if(nipDebug)
return new Array(1, _NTIP_CheckList[i][2], _NTIP_CheckList[i][3], _NTIP_CheckList[i][4], _replacedCheckListItem + " && " + _NTIP_CheckList[i][1]);
return 1;
}
else if(!_identified && _result == 0)
_result = -1;
else
_result = 3;
}
else if(!checkQuantity || MWIP_CheckItemQuantity(_quantity, _replacedCheckListItem, item.gid))
{
if(nipDebug)
return new Array(1, _NTIP_CheckList[i][2], _NTIP_CheckList[i][3], _NTIP_CheckList[i][4], _replacedCheckListItem);
return 1;
}
else
_result = 3;
}
}
}
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 NTIP_ParseLineInt(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 'm':
_result[0] += "maxquantity";
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(!NTIP_IsSyntaxInt(_section[i][_end]))
break;
}
_result[0] += _section[i].substring(_start, _end);
for(_start = _end ; _end < _section[i].length ; _end++)
{
if(NTIP_IsSyntaxInt(_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] += "0x" + parseInt(_NTIPAliasFlag[_keyword]).toString(16).toUpperCase() + ")";
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 NTIP_IsSyntaxInt(ch)
{
return (ch == '!' || ch == '%' || ch == '&' || (ch >= '(' && ch <= '+') || ch == '-' || ch == '/' || (ch >= ':' && ch <= '?') || ch == '|');
}
function MWIP_CheckItemQuantity(max, specs, gid)
{
var _items, _count, _specs;
_items = me.GetItems();
_count = 0;
_specs = specs.replace(/item\./gi, "_items[i]."); // Replace the unit's name within the specs as it is not defined in this context
if(_items)
{
for(i = 0 ; i < _items.length ; i++)
{
if(_items[i] && _items[i].mode == 0 && _items[i].gid != gid && eval(_specs))
_count++;
}
}
return _count < max;
}
/*
_NTIP_CheckList structure:
Index 0: Properties JavaScript
Index 1: Stats JavaScript
Index 2: .nip Filename
Index 3: Line index
Index 4: .nip Line
*/
function MWIP_CheckNips()
{
var _errors, _jsString, _items, _date;
var i, item;
_items = me.GetItems();
_errors = new Array();
if(!_items || !_items[0])
return false;
item = _items[0]; // This item unit is just used as a dummy
for(i = 0; i < _NTIP_CheckList.length; i++)
{
_jsString = _NTIP_CheckList[i][0].replace(/maxquantity==\d+&&/gi,"");
if(_NTIP_CheckList[i][1])
_jsString += "&&" + _NTIP_CheckList[i][1];
try
{
eval(_jsString); // Will raise an exceptions on syntax errors
if(_jsString.indexOf("undefined") > 0) // Adds an error remark on conversion erros due to typos
_errors.push([i, "Invalid NIP Keyword"]);
}
catch(e)
{
_errors.push([i, e]);
}
}
Print("ÿc8[Nip Check Results] ÿc0Checked " + _NTIP_CheckList.length + " lines: " + ((_errors.length > 0) ? "ÿc1" : "ÿc<") + _errors.length + " errors");
_jsString = "------------------------------------------------------------------------------\nNIP Error Report - File Created: <date> by " + me.charname + "\n------------------------------------------------------------------------------";
_date = new Date();
if(_date)
_jsString = _jsString.replace("<date>", _date.toLocaleFormat("%a %m/%d/%y %H:%M:%S"));
for(i = 0; i < _errors.length; i++)
{
Print("ÿc1[Error #" + (i + 1) + "]: .." + _NTIP_CheckList[_errors[i][0]][2] + ", line " + _NTIP_CheckList[_errors[i][0]][3]);
_jsString += "\n[Error #" + (i + 1) + "]";
_jsString += "\nFile: " + _NTIP_CheckList[_errors[i][0]][2];
_jsString += "\nLine: " + _NTIP_CheckList[_errors[i][0]][3] + " (This may not be the exact line number, check the line content below to find the actual line containing the error)";
_jsString += "\nException: " + _errors[i][1];
_jsString += "\nLine Content Nip: " + _NTIP_CheckList[_errors[i][0]][4].replace(/([ ]?)([<>!=\+\-\*#&|][&|=><]?)([ ]?)/g, " $2 ");;
_jsString += "\nLine Content JavaScript: " + _NTIP_CheckList[_errors[i][0]][0].replace(/maxquantity==\d+&&/gi,"").replace(/([ ]?)([<>!=\+\-\*#&|][&|=><]?)([ ]?)/g, " $2 ");;
if(_NTIP_CheckList[_errors[i][0]][1])
_jsString += " && " + _NTIP_CheckList[_errors[i][0]][1].replace(/([ ]?)([<>!=\+\-\*#&|][&|=><]?)([ ]?)/g, " $2 ");;
_jsString += "\n------------------------------------------------------------------------------";
// Ignore the faulty line
_NTIP_CheckList.splice(_errors[i][0], 1);
}
if(_errors.length > 0)
{
MWC_WriteToTextfile(_jsString, "Logs/NipErrors.txt", 1);
Print("ÿc1Check NipErrors.txt for a more detailed error description!");
}
else
MWC_WriteToTextfile(_jsString + "\nNO ERRORS", "Logs/NipErrors.txt", 1);
return true;
}
|
|
|
02/28/2013, 02:29
|
#6810
|
elite*gold: 0
Join Date: Apr 2008
Posts: 10
Received Thanks: 0
|
how do i get my bot to stop picking up gold?
i am running muddys d2nt 3.3
|
|
|
 |
|
Similar Threads
|
[Release] D2NT 3.1 1.13c
07/17/2016 - Diablo 2 - 91 Replies
hi,
hab eben den d2nt3.1 gefunden. ein neues baba script is dabei.
release thread eon
D2NT3.1
|
[Realease] Muddy's Waypoint Catcher
08/21/2013 - Diablo 2 Programming - 46 Replies
Moin zusammen,
hier mal die erste Release Version eines kleinen Scripts genannt Waypoint Catcher. Das ganze ist jetzt nichtmal 24h alt, dementsprechend sind vermutlich noch einige Bugs vorhanden. Hinweise dazu nehme ich gerne entgegen. ;)
Features:
- Suchen sämtlicher Wegpunkte mit Ausnahme, wobei in Akt ein durch Probleme im Jail Bereich nach dem Wegpunkt Outer Cloister abgebrochen wird
- Wahlweise auch mit TP an jedem gefundenen Wp, sodass man damit auch anderen (nicht-Bots) die...
|
[D2NT] Long Dia Release
05/10/2011 - Diablo 2 Programming - 28 Replies
Ein kleines Script für diablo, es startet beim eingang macht ein tp cleart den weg zum star macht am star noch ein tp dann läufts wie das normale nur cleart es schöner :)
hoffe euch gefällts ich habs noch nicht wirklich getestet (2-3 runs) bugs können gerne hier gepostet werden verbesserungs vorschläge auch :D
installation:
1.)Script in den Bot ordner kopieren
2.)Script im editor oder vergleichbaren öffnen
3.) Msg´s anpassen (ist nicht schwer)
4.) in der char config die zeile...
|
D2NT 3.0 Pickit release
10/22/2010 - Diablo 2 - 77 Replies
edit
|
Muddy's D2NT Help
07/29/2010 - Diablo 2 - 3 Replies
hi i just started to use the bot it work's great.
how do i set up the skill's i use on my Sorc and pick up itme's?
.....
if you reply to this post please use english
|
All times are GMT +1. The time now is 15:55.
|
|