|
You last visited: Today at 06:27
Advertisement
[Release] Muddy's D2NT
Discussion on [Release] Muddy's D2NT within the Diablo 2 Programming forum part of the Diablo 2 category.
04/10/2011, 21:54
|
#1246
|
elite*gold: 0
Join Date: Mar 2011
Posts: 9
Received Thanks: 0
|
Hey alle, habe da nen kleines Problem mit dem Diablo script. Nachdem er diablo gekillt hat bleibt er einfach stehen und macht nix, kein error nix steht oben einfach nur Stop.
Jmd ne idee wora das liegt? Items nach dem kill lootet er noch.
Code:
function NTMain()
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
NTA_Initialize();
if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
return;
}
if(!NTM_TakeWaypoint(107))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}
NTP_DoPrecast(true);
if(!NTM_MoveTo(108, 7797, 5560))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
if(NTConfig_PublicMode)
{
var _attackpos = [7792, 5525, 7793, 5501, 7773, 5495, 7768, 5480, 7767, 5458, 7770, 5438, 7774, 5417, 7767, 5391, 7768, 5369, 7769, 5345, 7770, 5320, 7780, 5308];
if(!NTM_MoveTo(me.areaid, 7790, 5544))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
NTA_ClearPosition(20, false, 2);
NTM_MoveTo(me.areaid, 7790, 5544);
NTC_PingDelay(1000);
NTA_ClearPosition(20, true, 2);
NTM_MoveTo(me.areaid, 7790, 5544);
NTM_MakeTP();
Say("TP is safe!");
for(var i = 0 ; i < _attackpos.length ; i += 2)
{
NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);
NTA_ClearPosition(25, true, 2);
}
NTP_DoPrecast(true);
}
if(!NT_OpenSealsInt())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NT_OpenSealsInt()");
return;
}
if(NTConfig_PublicMode)
Say("Killing Diablo");
NTP_DoPrecast(true);
//if(!NTM_MoveTo(me.areaid, 7792, 5292))
if(!NTM_MoveTo(me.areaid, 7814, 5302)) //Kalel
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe|0x01, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
NTC_FindUnit(NTC_UNIT_MONSTER, 243, 100);
if(!NTA_KillMonster(243))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
return;
}
NTSI_PickItems();
if(NTConfig_PublicMode)
Say("Next game");
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
// Internal function
function NT_OpenSealsInt()
{
var i, _unit;
var _result;
_unit = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT);
if(!_unit)
return false;
_result = false;
for(i = 0 ; i < _unit.length ; i++)
{
if(_unit[i].id == 396)
{
if(_unit[i].roomy*5 + _unit[i].y == 5275)
_result = NT_OpenVizierSealInt(1);
else
_result = NT_OpenVizierSealInt(2);
break;
}
}
if(!_result)
return false;
NTP_DoPrecast(false);
_result = false;
for(i = 0 ; i < _unit.length ; i++)
{
if(_unit[i].id == 394)
{
if(_unit[i].roomx*5 + _unit[i].x == 7773)
_result = NT_OpenDeSeisSealInt(1);
else
_result = NT_OpenDeSeisSealInt(2);
break;
}
}
if(!_result)
return false;
NTP_DoPrecast(false);
_result = false;
for(i = 0 ; i < _unit.length ; i++)
{
if(_unit[i].id == 392)
{
if(_unit[i].roomx*5 + _unit[i].x == 7893)
_result = NT_OpenVenomSealInt(1);
else
_result = NT_OpenVenomSealInt(2);
break;
}
}
return _result;
}
function NT_OpenVizierSealInt(type)
{
var i, n;
var _attackpos = [7740, 5300, 7740, 5280, 7720, 5280, 7720, 5300];
var _monstername = GetLocaleString(2851);
for(i = 0 ; i < _attackpos.length ; i += 2)
{
NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);
NTA_ClearPosition(25, true, 2);
}
for(i = 0 ; i < 3 ; i++)
{
if(type == 1)
{
NT_OpenSealInt(395, 7654, 5310);
NT_OpenSealInt(396, 7659, 5277);
NTM_MoveTo(me.areaid, 7665, 5277);
}
else
{
NT_OpenSealInt(395, 7650, 5276);
NT_OpenSealInt(396, 7651, 5310);
}
for(n = 0 ; n < 10 ; n++)
{
NTC_Delay(200);
if(NTA_KillMonster(_monstername))
{
NTA_ClearPosition();
NTSI_PickItems();
return NTM_MoveTo(me.areaid, 7750, 5280);
}
}
}
return false;
}
function NT_OpenDeSeisSealInt(type)
{
var i, n;
var _attackpos = [7780, 5255, 7800, 5255, 7800, 5235, 7780, 5235, 7800, 5189, 7771, 5196];
var _monstername = GetLocaleString(2852);
for(i = 0 ; i < _attackpos.length ; i += 2)
{
NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);
NTA_ClearPosition(30, true, 2);
}
for(i = 0 ; i < 3 ; i++)
{
if(type == 1)
{
//NT_OpenSealInt(394, 7769, 5158);
NT_OpenSealInt(394, 7778, 5157);
NTC_Delay(500);
//NTM_MoveTo(me.areaid, 7771, 5196);
NTM_MoveTo(me.areaid, 7796, 5226);
}
else
{
NT_OpenSealInt(394, 7810, 5156);
NTC_Delay(500);
//NTM_MoveTo(me.areaid, 7770, 5169);
NTM_MoveTo(me.areaid, 7800, 5189);
}
for(n = 0 ; n < 10 ; n++)
{
NTC_Delay(200);
if(NTA_KillMonster(_monstername))
{
NTA_ClearPosition(35);
NTSI_PickItems();
return NTM_MoveTo(me.areaid, 7800, 5255);
}
}
}
return false;
}
function NT_OpenVenomSealInt(type)
{
var i, n;
var _attackpos = [7835, 5280, 7835, 5300, 7855, 5300, 7855, 5280];
var _monstername = GetLocaleString(2853);
for(i = 0 ; i < _attackpos.length ; i += 2)
{
NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);
NTA_ClearPosition(25, true, 2);
}
for(i = 0 ; i < 3 ; i++)
{
if(type == 1)
{
NT_OpenSealInt(393, 7915, 5280);
NT_OpenSealInt(392, 7895, 5318);
NTM_MoveTo(me.areaid, 7892, 5298);
}
else
{
NT_OpenSealInt(393, 7905, 5277);
NT_OpenSealInt(392, 7916, 5310);
NTM_MoveTo(me.areaid, 7937, 5305);
}
for(n = 0 ; n < 10 ; n++)
{
NTC_Delay(200);
if(NTA_KillMonster(_monstername))
{
NTSI_PickItems();
if(NTC_PutSkill(124, NTC_HAND_RIGHT))
NTC_PingDelay(1000);
return true;
}
}
}
return false;
}
function NT_OpenSealInt(classid, x, y)
{
var _seal;
NTM_MoveTo(me.areaid, x, y);
NTA_ClearPosition(25, true, 2);
_seal = NTC_FindUnit(NTC_UNIT_OBJECT, classid, 5);
if(!_seal)
return false;
if(_seal.mode > 0)
return true;
for(var i = 0 ; i < 4 ; i++)
{
if((i % 2) == 0)
{
if(GetDistance(me, _seal) > 2)
NTM_MoveTo(_seal.areaid, _seal.x+1, _seal.y);
NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, _seal);
}
NTC_Delay(500);
if(_seal.mode > 0)
return true;
}
return false;
}
das ist das diablo script was beim bot dabei war.
|
|
|
04/10/2011, 21:55
|
#1247
|
elite*gold: 0
Join Date: Apr 2009
Posts: 25
Received Thanks: 4
|
bin bluebird gewohnt darum hab ich da wohl nen fehler reingeknallt :P
jetzt funzt es mitn standart aber ich hätt gerne die ersten 3 reihen hp und die letzte mp
Code:
/**
* This file was modified by
* Check the programming section for updates and further scripts
* Last Update: 03/02/2011
*
* Hotkey Description
*
* Pause/Break Pauses the current bot script.
* Page up (PgUp) Skips the current bot script.
* Page down (PgDn) Repeats the previous bot script
* Home (Pos1) Shows your current coordinates and areaid.
* End Shows current ping in status text bar.
* Insert (Ins) Logs all items on your char to either XML or TXT.
* Delete (Del) Exits the game. NOTE: Always use this key to leave a game!
*/
Include("NTBot/char_configs/MWConfig_GlobalSettings.ntl");
var NTConfig_UseRedemptionHP;
var NTConfig_UseRedemptionMP;
function NT_LoadConfig()
{
MW_LoadGlobalSettings();
//------------------------------------------------------------------------------
//
// Run Configuration
//
//------------------------------------------------------------------------------
// 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(["NTDiablo.ntj", 10]); MWConfig_KillFullInfectorMob = true; MWConfig_StartAtStar = false; // false: start at entrance, true: start at star
// *****************************************************
//------------------------------------------------------------------------------
// Available Scripts
//------------------------------------------------------------------------------
/*
// *********************** Act I ***********************
//MWConfig_Script.push(["NTMausoleum.ntj", 10]); NTConfig_KillBloodRaven = true;
//MWConfig_Script.push(["NTTristram.ntj", 10]); NTConfig_KillRakanishu = true;
//MWConfig_Script.push(["NTHole.ntj", 10]); NTConfig_ClearHoleLevel1 = 1; // 0 : don't clear, 1 : clear path only, 2 : clear all
//MWConfig_Script.push(["NTTreehead.ntj", 10]);
//MWConfig_Script.push(["NTCountess.ntj", 5]); MWConfig_ClearCountessRoomsSpectype = 0;
//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(["NTAndariel.ntj", 10]);
// *********************** Act II **********************
//MWConfig_Script.push(["NTRadament.ntj", 10]);
//MWConfig_Script.push(["NTColdworm.ntj", 10]);
//MWConfig_Script.push(["NTAncientTunnels.ntj", 10]); MWConfig_ClearPathToTunnelsSpectype = 0x01;
//MWConfig_Script.push(["NTSummoner.ntj", 5]); NTConfig_KillFireEye = false; MWConfig_ClearPathToSummonerSpectype = 0;
//MWConfig_Script.push(["NTDuriel.ntj", 10]); MWConfig_ClearPathToDurielSpectype = 0x01;
// ********************** Act III **********************
//MWConfig_Script.push(["MWFlayerJungle.ntj", 10]);
//MWConfig_Script.push(["MWKurastSewers.ntj", 5]); MWConfig_ClearPathToKurastSewersSpectype = 0;
//MWConfig_Script.push(["MWKurastTemples.ntj", 5])
//MWConfig_Script.push(["NTTravincal.ntj", 5]);
//MWConfig_Script.push(["NTMephisto.ntj", 5]); MWConfig_OpenMephistoChest = true; MWConfig_MephistoClearArea = true;
// *********************** Act IV **********************
//MWConfig_Script.push(["NTIzual.ntj", 5]);
//MWConfig_Script.push(["MWRiverOfFlame.ntj", 10]);
//MWConfig_Script.push(["NTHephasto.ntj", 10]);
//MWConfig_Script.push(["NTDiablo.ntj", 10]); MWConfig_KillFullInfectorMob = true; MWConfig_StartAtStar = false; // false: start at entrance, true: start at star
// *********************** Act V ***********************
//MWConfig_Script.push(["NTEldritch.ntj", 5]); NTConfig_ShenkExtension = true;
//MWConfig_Script.push(["NTThreshSocket.ntj", 5]);
//MWConfig_Script.push(["NTFrozenRiver.ntj", 10]); NTConfig_ClearFrozenRiver = false;
//MWConfig_Script.push(["NTGlacialTrail.ntj", 10]); NTConfig_ClearGlacialTrail = false;
//MWConfig_Script.push(["NTIcyCellar.ntj", 5]); NTConfig_ClearIcyCellar = false;
//MWConfig_Script.push(["NTNihlathak.ntj", 5]); NTConfig_PindleskinExtension = false; MWConfig_SkipOnTombVipers = true;
//MWConfig_Script.push(["MWWorldstoneKeep.ntj", 10]); MWConfig_SkipLevelOnWitches = true; MWConfig_SkipLevelOnSouls = false; MWConfig_SkipLevelOnDeathLords = true;
//MWConfig_Script.push(["NTBaal.ntj", 10]); NTConfig_KillBaal = true; MWConfig_SkipBaalOnDolls = true; MWConfig_SkipBaalOnSouls = false; MWConfig_DoBaalPreAttack = true;
// *********************** Misc ************************
//MWConfig_Script.push(["MWSuperChests.ntj", 20]); MWConfig_SuperChestClearAreaRadius = 10; MWConfig_SuperChestAreas = ["Cave Level 2", "Mausoleum", "Hole Level 2", "Pit Level 2", "Sewers Level 3", "Halls of the Dead Level 2", "Stony Tomb Level 2", "Maggot's Lair Level 3", "Ancient Tunnels", "Tal Rasha's Tomb", "Arachnid Lair", "Swampy Pit Level 3", "Flayer Dungeon", "Sewers Level 2", "Abbadon", "Pit of Acheron", "Drifter Cavern", "Infernal Pit", "Icy Cellar", "Halls of Pain"];
//MWConfig_Script.push(["MWRush.ntj", 0]); MWConfig_IsRusher = true; MWConfig_ActiveQuestersName = ""; MWConfig_NumberOfCharsToRush = 1; MWConfig_GetHoradricCubesInNorm = true; MWConfig_QuestSchedule = ["A4Q1", "A5Q1"]; MWConfig_RushActs = [1, 2, 3, 4, 5];
//MWConfig_Script.push(["MWWaypointCatcher.ntj", 0]); MWConfig_WaypointCatcherActs = [1, 2, 3, 4, 5]; MWConfig_TPWaypoints = true; MWConfig_SkipHallsOfPain = true; MWConfig_ClearWaypointPaths = false;
//MWConfig_Script.push(["MWIdleMode.ntj", 0]); MWConfig_IdleModeRuntime = 5; // Runtime in Minutes
//MWConfig_Script.push(["NTCows.ntj", 10]);
//MWConfig_Script.push(["MWBloodyRejuvs.ntj", 10]);
//MWConfig_Script.push(["MWOrganHarvest.ntj", 10]); MWConfig_EnterInvalidUberPortals = true; MWConfig_PauseOnLackOfKeys = false; MWConfig_IntendedUberPortal = 0; // Matron's Den: 133; Forgotten Sands: 134; Furnace Of Pain: 135;
//MWConfig_Script.push(["MWUberTristram.ntj", 10]); MWConfig_PauseOnLackOfOrgans = false;
*/
//------------------------------------------------------------------------------
// Misc Configuration
//------------------------------------------------------------------------------
//NTConfig_SkipHealLife = 90; // If you have more than this percent of life, you won't go to a healer.
//NTConfig_SkipHealMana = 70; // If you have more than this percent of mana, you won't go to a healer
NTConfig_UseMerc = true; // Set to true if you use a mercenary, will revive merc at a reviver npc.
MWConfig_ResetArmor = false; // Set to true to reset your Enigma if Teleport skill is missing. WARNING: Activating this feature may - though not likely will - result in the loss of your enigma. Use at your own risk!
//------------------------------------------------------------------------------
// Potion Configuration
//------------------------------------------------------------------------------
NTConfig_LifeThresh = 70; // Drink a normal potion if under this percent of life.
NTConfig_LifeRejuvThresh = 37; // Drink a rejuvenation potion if under this percent of life.
NTConfig_ManaThresh = 30; // Drink a normal potion if under this percent of mana.
NTConfig_ManaRejuvThresh = 0; // Drink a rejuvenation potion if under this percent of mana.
NTConfig_MercLifeThresh = 80; // This is the threshold to use a life potion on your merc in percent.
NTConfig_MercRejuvThresh = 30; // This is the threshold to use a rejuv potion on your merc in percent.
//------------------------------------------------------------------------------
// Chicken Configuration
//------------------------------------------------------------------------------
// This is your chicken life. If you go below this threshhold, your char will exit the game. You can either enter a percentage (1-100), an absolute threshold (>100) or 0 to deactivate life chicken.
NTConfig_LifeChicken = 30;
// This is your chicken mana. If you go below this threshhold, your char will exit the game. You can either enter a percentage (1-100), an absolute threshold (>100) or 0 to deactivate mana chicken.
NTConfig_ManaChicken = 0;
// This is your merc's chicken life in percent. If your merc goes below this threshhold, your char will exit the game.
NTConfig_MercChicken = 0;
//------------------------------------------------------------------------------
// Inventory Configuration
//------------------------------------------------------------------------------
// Number of free columns. If less full columns are free stashing is set.
NTConfig_FreeSpace = 5;
// Each number represents a slot in your inventory.
// Set to 0 if the slot and its content must not be touched.
// Set to 1 to allow access to this slot.
// Set to 2 to select the slot that is used for storing keys. (if keys are kept at another slot, your char will try to move them)
NTConfig_Columns[0] = [0,0,0,0,0,0,0,0,0,0];
NTConfig_Columns[1] = [0,0,0,0,0,0,0,0,0,0];
NTConfig_Columns[2] = [0,0,0,0,0,0,0,0,0,0];
NTConfig_Columns[3] = [1,1,1,0,0,0,0,0,0,0];
// Maximum gold amount carried before going to stash.
NTConfig_MinGoldToStash = 100000;
// Set to true if your char is supposed to carry, buy and pick up keys. You do not need to add keys to your .nip files, they will be picked up anyway if this is set to true.
MWConfig_CarryKeys = true;
//------------------------------------------------------------------------------
// Belt Configuration
//------------------------------------------------------------------------------
// Determine how many columns for each type of potion are used.
// Available types : "hp" = health | "mp" = mana | "rv" = rejuvenation
// The first number indicates how many columns will be used for this type of potion.
// The second number indicates the minimum amount of potions in one column. If there are less potions in a single column when your char is in town, he will is visit a merchant in order to buy potions.
// Unlike in vanilla D2NT, there is no need to specify which column is used for certain type of potion, this will be chosen automatically!
MWConfig_BeltTypeColQuantity["hp"] = [0, 1];
MWConfig_BeltTypeColQuantity["hp"] = [0, 2];
MWConfig_BeltTypeColQuantity["mp"] = [3];
// Visit Town and buy potions if your char lacks mana when trying to loot a corpse or teleport.
MWConfig_BuyPotionsOnLackOfMana = true;
// Set to true to replace low quality potions with higher quality potions that just dropped.
MWConfig_ReplaceLowQualityPotions = true;
//-----------------------------------------------------------------------------------
// NipFile Configuration
//-----------------------------------------------------------------------------------
//NTConfig_NIPFilePath.push("private/normal.nip");
//NTConfig_NIPFilePath.push("private/magic_rare.nip");
//NTConfig_NIPFilePath.push("private/set.nip");
//NTConfig_NIPFilePath.push("private/unique.nip");
//NTConfig_NIPFilePath.push("private/craft.nip");
//NTConfig_NIPFilePath.push("private/temp.nip");
//------------------------------------------------------------------------------
// Pickit Configuration
//------------------------------------------------------------------------------
// Radius to check for dropped items. NOTE: The maximum is at about ~75, entering higher values will not have any effect.
NTConfig_SnagRange = 70;
// Set to true to check for dropped items whenever you kill a monster.
MWConfig_PickItemsInstantly = false;
//------------------------------------------------------------------------------
// Chest Configuration
//------------------------------------------------------------------------------
// Set to true to open chests. NOTE: This only affects some super unique chests in certain boss scripts.
//NTConfig_OpenChest = true;
// Set to true to open almost any type of container.
//MWConfig_OpenAllNearbyChests = true;
// Set to true to check for dropped items right after opening a chest. NOTE: This will slow down your runs and therefore should definately be set to false when doing private games.
//MWConfig_PickChestLootsInstantly = false;
// This is the range being checked for chests after clearing an area or room. NOTE: You should not set this too high, 30 is a good value.
//MWConfig_OpenChestsRange = 30;
// If you do not like to open chests in a certain area, you can its areaid as an exception below. NOTE: All areaids can be found in "sdk\areas.txt".
// MWConfig_ChestExceptions.push(<areaid1>, <areaid2>, <areaidn>);
//------------------------------------------------------------------------------
// 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 = false;
//------------------------------------------------------------------------------
// General Configuration
//------------------------------------------------------------------------------
// Set to true to activate public mode. By activating public mode, your char will form a party, open TPs and do some chat outputs when running certain bot scripts.
NTConfig_PublicMode = true;
// 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;
// Set to true to exit the game when another player expresses hostility towards you.
me.quitonhostile = true;
// This is the maximum time in seconds your char will remain in a single game. Set to 0 to stay in game infinitely.
me.maxgametime = 3000;
// This is the minimum time in seconds for your char to remain in a single game. Your char will not exit the game before this time elapsed.
me.mingametime = 900000;
//------------------------------------------------------------------------------
// Shrine Configuration
//------------------------------------------------------------------------------
// Set to true to activate nearby shrines. Shrines will only be activated if it is actually useful.
MWConfig_ActivateNearbyShrines = true;
// If you would like to skip shrines in a certain area, you can its areaid as an exception below. NOTE: All areaids can be found in "sdk\areas.txt".
// MWConfig_ShrineExceptions.push(<areaid1>, <areaid2>, <areaidn>);
//------------------------------------------------------------------------------
// Precast Configuration
//------------------------------------------------------------------------------
// Your precast skills can be defined in the array below. NOTE: Battle Command, Battle Orders and Shout will be cast automatically. Constants for all skill ids can be found in "scripts\libs\common\MWSkills.ntl".
MWConfig_PrecastSkills = [MWS_HOLY_SHIELD];
// Set this to true if you would like to switch slots right after casting BC, BO and Shout. If set to false, your char will remain with the BO Slot until the whole precast procedure is done.
MWConfig_SwitchSlotsAfterBoPrecast = true;
//------------------------------------------------------------------------------
// Attack Configuration
//------------------------------------------------------------------------------
// Specify your attack skills below. NOTE: Constants for all skill ids can be found in "scripts\libs\common\MWSkills.ntl".
NTConfig_AttackSkill[0] = 0; // This skill is used once whenever attacking a new target. Set to 0 to deactivate.
NTConfig_AttackSkill[1] = MWS_BLESSED_HAMMER; // Primary skill to bosses.
NTConfig_AttackSkill[2] = MWS_CONCENTRATION; // Primary aura to bosses. Set to 0 to deactivate.
NTConfig_AttackSkill[3] = MWS_BLESSED_HAMMER; // Primary skill to others.
NTConfig_AttackSkill[4] = MWS_CONCENTRATION; // Primary aura to others. Set to 0 to deactivate.
NTConfig_AttackSkill[5] = MWS_HOLY_BOLT; // Secondary skill in case monster is immune to primary skill. Set to 0 if you won't
NTConfig_AttackSkill[6] = MWS_CONCENTRATION; // Secondary aura. Set to 0 not to activate any aura.
NTConfig_AttackSkill[7] = MWS_SALVATION; // Aura to be used against Uber Mephisto. Set to 0 to deactivate.
// Set to true if you want to clear area after killing boss. NOTE: This only affects a few botscripts.
NTConfig_ClearPosition = true;
// Set to true to clear area when killing a boss and the position is crowded by monsters. NOTE: Setting this to true may cause NTA_KillMonster() to fail way more often.
MWConfig_ClearBossPosition = false;
// This is the number of attacks to be performed before the the character tries to move to another position. Set to 0 not to reposition.
MWConfig_AttacksBeforeRepositioning = 20;
// Define a time limit for your attacks for each type of monster.
MWConfig_AttackTimeLimit[0] = 20; // Maximum time in seconds to attack a normal monster
MWConfig_AttackTimeLimit[1] = 120; // Maximum time in seconds to attack a super unique monster
MWConfig_AttackTimeLimit[2] = 30; // Maximum time in seconds to attack a champion
MWConfig_AttackTimeLimit[3] = 120; // Maximum time in seconds to attack a bosse
MWConfig_AttackTimeLimit[4] = 30; // Maximum time in seconds to attack a minion
// Define when a monster is considered immune by entering the index of one or more of your attack skills. As an example: [1, 3] means that a monster is considered immune if it is immune to both NTConfig_AttackSkill[1] and NTConfig_AttackSkill[3], whatever those may be.
MWConfig_CheckImmunitySkills = [];
// Select the behaviour of your character when encountering a monsters that is considered immune referring to the definition above.
// 0: Don't do anything. (D2NT default)
// 1: Get close to the monster.
// 2: Skip the monster.
// 3: Attack the monster using NTConfig_AttackSkill[8] and NTConfig_AttackSkill[9]
NTConfig_BehaviourOnImmuneMonster = 0;
NTConfig_AttackSkill[8] = 0; // Skill to be used against user defined immunes.
NTConfig_AttackSkill[9] = 0; // Untimed Skill to be used against user defined immunes.
// Activate Redemption if your health is lower than this percentage. Set to 0 not to use Redemption.
NTConfig_UseRedemptionHP = 80;
// Activate Redemption if your health is lower than this percentage. Set to 0 not to use Redemption.
NTConfig_UseRedemptionMP = 60;
// Check self safe in field (NOT in town). Set to 0 if you won't.
// 0x01 : Potion
// 0x02 : Poison
// 0x04 : Amplify Damage
// 0x08 : Weaken
// 0x10 : Iron Maiden
// 0x20 : Decrepify
// 0x40 : Lower Resist
NTConfig_CheckSelfSafe = 0;
// Check merc's safe in field (NOT in town). Set to 0 if you won't.
// 0x01 : Death
// 0x02 : Poison
// 0x04 : Amplify Damage
// 0x08 : Weaken
// 0x10 : Iron Maiden
// 0x20 : Decrepify
// 0x40 : Lower Resist
//NTConfig_CheckMercSafe = 0x01;
}
|
|
|
04/10/2011, 22:19
|
#1248
|
Administrator
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,727
Received Thanks: 12,652
|
Quote:
Originally Posted by koonak
Hey alle, habe da nen kleines Problem mit dem Diablo script. Nachdem er diablo gekillt hat bleibt er einfach stehen und macht nix, kein error nix steht oben einfach nur Stop.
Jmd ne idee wora das liegt? Items nach dem kill lootet er noch.
Code:
function NTMain()
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
NTA_Initialize();
if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
return;
}
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
return;
}
if(!NTM_TakeWaypoint(107))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}
NTP_DoPrecast(true);
if(!NTM_MoveTo(108, 7797, 5560))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
if(NTConfig_PublicMode)
{
var _attackpos = [7792, 5525, 7793, 5501, 7773, 5495, 7768, 5480, 7767, 5458, 7770, 5438, 7774, 5417, 7767, 5391, 7768, 5369, 7769, 5345, 7770, 5320, 7780, 5308];
if(!NTM_MoveTo(me.areaid, 7790, 5544))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
NTA_ClearPosition(20, false, 2);
NTM_MoveTo(me.areaid, 7790, 5544);
NTC_PingDelay(1000);
NTA_ClearPosition(20, true, 2);
NTM_MoveTo(me.areaid, 7790, 5544);
NTM_MakeTP();
Say("TP is safe!");
for(var i = 0 ; i < _attackpos.length ; i += 2)
{
NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);
NTA_ClearPosition(25, true, 2);
}
NTP_DoPrecast(true);
}
if(!NT_OpenSealsInt())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NT_OpenSealsInt()");
return;
}
if(NTConfig_PublicMode)
Say("Killing Diablo");
NTP_DoPrecast(true);
//if(!NTM_MoveTo(me.areaid, 7792, 5292))
if(!NTM_MoveTo(me.areaid, 7814, 5302)) //Kalel
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe|0x01, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
NTC_FindUnit(NTC_UNIT_MONSTER, 243, 100);
if(!NTA_KillMonster(243))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
return;
}
NTSI_PickItems();
if(NTConfig_PublicMode)
Say("Next game");
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
// Internal function
function NT_OpenSealsInt()
{
var i, _unit;
var _result;
_unit = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT);
if(!_unit)
return false;
_result = false;
for(i = 0 ; i < _unit.length ; i++)
{
if(_unit[i].id == 396)
{
if(_unit[i].roomy*5 + _unit[i].y == 5275)
_result = NT_OpenVizierSealInt(1);
else
_result = NT_OpenVizierSealInt(2);
break;
}
}
if(!_result)
return false;
NTP_DoPrecast(false);
_result = false;
for(i = 0 ; i < _unit.length ; i++)
{
if(_unit[i].id == 394)
{
if(_unit[i].roomx*5 + _unit[i].x == 7773)
_result = NT_OpenDeSeisSealInt(1);
else
_result = NT_OpenDeSeisSealInt(2);
break;
}
}
if(!_result)
return false;
NTP_DoPrecast(false);
_result = false;
for(i = 0 ; i < _unit.length ; i++)
{
if(_unit[i].id == 392)
{
if(_unit[i].roomx*5 + _unit[i].x == 7893)
_result = NT_OpenVenomSealInt(1);
else
_result = NT_OpenVenomSealInt(2);
break;
}
}
return _result;
}
function NT_OpenVizierSealInt(type)
{
var i, n;
var _attackpos = [7740, 5300, 7740, 5280, 7720, 5280, 7720, 5300];
var _monstername = GetLocaleString(2851);
for(i = 0 ; i < _attackpos.length ; i += 2)
{
NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);
NTA_ClearPosition(25, true, 2);
}
for(i = 0 ; i < 3 ; i++)
{
if(type == 1)
{
NT_OpenSealInt(395, 7654, 5310);
NT_OpenSealInt(396, 7659, 5277);
NTM_MoveTo(me.areaid, 7665, 5277);
}
else
{
NT_OpenSealInt(395, 7650, 5276);
NT_OpenSealInt(396, 7651, 5310);
}
for(n = 0 ; n < 10 ; n++)
{
NTC_Delay(200);
if(NTA_KillMonster(_monstername))
{
NTA_ClearPosition();
NTSI_PickItems();
return NTM_MoveTo(me.areaid, 7750, 5280);
}
}
}
return false;
}
function NT_OpenDeSeisSealInt(type)
{
var i, n;
var _attackpos = [7780, 5255, 7800, 5255, 7800, 5235, 7780, 5235, 7800, 5189, 7771, 5196];
var _monstername = GetLocaleString(2852);
for(i = 0 ; i < _attackpos.length ; i += 2)
{
NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);
NTA_ClearPosition(30, true, 2);
}
for(i = 0 ; i < 3 ; i++)
{
if(type == 1)
{
//NT_OpenSealInt(394, 7769, 5158);
NT_OpenSealInt(394, 7778, 5157);
NTC_Delay(500);
//NTM_MoveTo(me.areaid, 7771, 5196);
NTM_MoveTo(me.areaid, 7796, 5226);
}
else
{
NT_OpenSealInt(394, 7810, 5156);
NTC_Delay(500);
//NTM_MoveTo(me.areaid, 7770, 5169);
NTM_MoveTo(me.areaid, 7800, 5189);
}
for(n = 0 ; n < 10 ; n++)
{
NTC_Delay(200);
if(NTA_KillMonster(_monstername))
{
NTA_ClearPosition(35);
NTSI_PickItems();
return NTM_MoveTo(me.areaid, 7800, 5255);
}
}
}
return false;
}
function NT_OpenVenomSealInt(type)
{
var i, n;
var _attackpos = [7835, 5280, 7835, 5300, 7855, 5300, 7855, 5280];
var _monstername = GetLocaleString(2853);
for(i = 0 ; i < _attackpos.length ; i += 2)
{
NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);
NTA_ClearPosition(25, true, 2);
}
for(i = 0 ; i < 3 ; i++)
{
if(type == 1)
{
NT_OpenSealInt(393, 7915, 5280);
NT_OpenSealInt(392, 7895, 5318);
NTM_MoveTo(me.areaid, 7892, 5298);
}
else
{
NT_OpenSealInt(393, 7905, 5277);
NT_OpenSealInt(392, 7916, 5310);
NTM_MoveTo(me.areaid, 7937, 5305);
}
for(n = 0 ; n < 10 ; n++)
{
NTC_Delay(200);
if(NTA_KillMonster(_monstername))
{
NTSI_PickItems();
if(NTC_PutSkill(124, NTC_HAND_RIGHT))
NTC_PingDelay(1000);
return true;
}
}
}
return false;
}
function NT_OpenSealInt(classid, x, y)
{
var _seal;
NTM_MoveTo(me.areaid, x, y);
NTA_ClearPosition(25, true, 2);
_seal = NTC_FindUnit(NTC_UNIT_OBJECT, classid, 5);
if(!_seal)
return false;
if(_seal.mode > 0)
return true;
for(var i = 0 ; i < 4 ; i++)
{
if((i % 2) == 0)
{
if(GetDistance(me, _seal) > 2)
NTM_MoveTo(_seal.areaid, _seal.x+1, _seal.y);
NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, _seal);
}
NTC_Delay(500);
if(_seal.mode > 0)
return true;
}
return false;
}
das ist das diablo script was beim bot dabei war.
|
Und wo genau soll das dabei gewesen sein?
Bei meiner Version jedenfalls nicht...
Sämtliche Script Messages gehen an das falsche Script, durchsuch mal das Thema, das hatten wir hier nun schon oft genug.
Quote:
Originally Posted by so_ad
bin bluebird gewohnt darum hab ich da wohl nen fehler reingeknallt :P
jetzt funzt es mitn standart aber ich hätt gerne die ersten 3 reihen hp und die letzte mp
Code:
/**
* This file was modified by
* Check the programming section for updates and further scripts
* Last Update: 03/02/2011
*
* Hotkey Description
*
* Pause/Break Pauses the current bot script.
* Page up (PgUp) Skips the current bot script.
* Page down (PgDn) Repeats the previous bot script
* Home (Pos1) Shows your current coordinates and areaid.
* End Shows current ping in status text bar.
* Insert (Ins) Logs all items on your char to either XML or TXT.
* Delete (Del) Exits the game. NOTE: Always use this key to leave a game!
*/
Include("NTBot/char_configs/MWConfig_GlobalSettings.ntl");
var NTConfig_UseRedemptionHP;
var NTConfig_UseRedemptionMP;
function NT_LoadConfig()
{
MW_LoadGlobalSettings();
//------------------------------------------------------------------------------
//
// Run Configuration
//
//------------------------------------------------------------------------------
// 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(["NTDiablo.ntj", 10]); MWConfig_KillFullInfectorMob = true; MWConfig_StartAtStar = false; // false: start at entrance, true: start at star
// *****************************************************
//------------------------------------------------------------------------------
// Available Scripts
//------------------------------------------------------------------------------
/*
// *********************** Act I ***********************
//MWConfig_Script.push(["NTMausoleum.ntj", 10]); NTConfig_KillBloodRaven = true;
//MWConfig_Script.push(["NTTristram.ntj", 10]); NTConfig_KillRakanishu = true;
//MWConfig_Script.push(["NTHole.ntj", 10]); NTConfig_ClearHoleLevel1 = 1; // 0 : don't clear, 1 : clear path only, 2 : clear all
//MWConfig_Script.push(["NTTreehead.ntj", 10]);
//MWConfig_Script.push(["NTCountess.ntj", 5]); MWConfig_ClearCountessRoomsSpectype = 0;
//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(["NTAndariel.ntj", 10]);
// *********************** Act II **********************
//MWConfig_Script.push(["NTRadament.ntj", 10]);
//MWConfig_Script.push(["NTColdworm.ntj", 10]);
//MWConfig_Script.push(["NTAncientTunnels.ntj", 10]); MWConfig_ClearPathToTunnelsSpectype = 0x01;
//MWConfig_Script.push(["NTSummoner.ntj", 5]); NTConfig_KillFireEye = false; MWConfig_ClearPathToSummonerSpectype = 0;
//MWConfig_Script.push(["NTDuriel.ntj", 10]); MWConfig_ClearPathToDurielSpectype = 0x01;
// ********************** Act III **********************
//MWConfig_Script.push(["MWFlayerJungle.ntj", 10]);
//MWConfig_Script.push(["MWKurastSewers.ntj", 5]); MWConfig_ClearPathToKurastSewersSpectype = 0;
//MWConfig_Script.push(["MWKurastTemples.ntj", 5])
//MWConfig_Script.push(["NTTravincal.ntj", 5]);
//MWConfig_Script.push(["NTMephisto.ntj", 5]); MWConfig_OpenMephistoChest = true; MWConfig_MephistoClearArea = true;
// *********************** Act IV **********************
//MWConfig_Script.push(["NTIzual.ntj", 5]);
//MWConfig_Script.push(["MWRiverOfFlame.ntj", 10]);
//MWConfig_Script.push(["NTHephasto.ntj", 10]);
//MWConfig_Script.push(["NTDiablo.ntj", 10]); MWConfig_KillFullInfectorMob = true; MWConfig_StartAtStar = false; // false: start at entrance, true: start at star
// *********************** Act V ***********************
//MWConfig_Script.push(["NTEldritch.ntj", 5]); NTConfig_ShenkExtension = true;
//MWConfig_Script.push(["NTThreshSocket.ntj", 5]);
//MWConfig_Script.push(["NTFrozenRiver.ntj", 10]); NTConfig_ClearFrozenRiver = false;
//MWConfig_Script.push(["NTGlacialTrail.ntj", 10]); NTConfig_ClearGlacialTrail = false;
//MWConfig_Script.push(["NTIcyCellar.ntj", 5]); NTConfig_ClearIcyCellar = false;
//MWConfig_Script.push(["NTNihlathak.ntj", 5]); NTConfig_PindleskinExtension = false; MWConfig_SkipOnTombVipers = true;
//MWConfig_Script.push(["MWWorldstoneKeep.ntj", 10]); MWConfig_SkipLevelOnWitches = true; MWConfig_SkipLevelOnSouls = false; MWConfig_SkipLevelOnDeathLords = true;
//MWConfig_Script.push(["NTBaal.ntj", 10]); NTConfig_KillBaal = true; MWConfig_SkipBaalOnDolls = true; MWConfig_SkipBaalOnSouls = false; MWConfig_DoBaalPreAttack = true;
// *********************** Misc ************************
//MWConfig_Script.push(["MWSuperChests.ntj", 20]); MWConfig_SuperChestClearAreaRadius = 10; MWConfig_SuperChestAreas = ["Cave Level 2", "Mausoleum", "Hole Level 2", "Pit Level 2", "Sewers Level 3", "Halls of the Dead Level 2", "Stony Tomb Level 2", "Maggot's Lair Level 3", "Ancient Tunnels", "Tal Rasha's Tomb", "Arachnid Lair", "Swampy Pit Level 3", "Flayer Dungeon", "Sewers Level 2", "Abbadon", "Pit of Acheron", "Drifter Cavern", "Infernal Pit", "Icy Cellar", "Halls of Pain"];
//MWConfig_Script.push(["MWRush.ntj", 0]); MWConfig_IsRusher = true; MWConfig_ActiveQuestersName = ""; MWConfig_NumberOfCharsToRush = 1; MWConfig_GetHoradricCubesInNorm = true; MWConfig_QuestSchedule = ["A4Q1", "A5Q1"]; MWConfig_RushActs = [1, 2, 3, 4, 5];
//MWConfig_Script.push(["MWWaypointCatcher.ntj", 0]); MWConfig_WaypointCatcherActs = [1, 2, 3, 4, 5]; MWConfig_TPWaypoints = true; MWConfig_SkipHallsOfPain = true; MWConfig_ClearWaypointPaths = false;
//MWConfig_Script.push(["MWIdleMode.ntj", 0]); MWConfig_IdleModeRuntime = 5; // Runtime in Minutes
//MWConfig_Script.push(["NTCows.ntj", 10]);
//MWConfig_Script.push(["MWBloodyRejuvs.ntj", 10]);
//MWConfig_Script.push(["MWOrganHarvest.ntj", 10]); MWConfig_EnterInvalidUberPortals = true; MWConfig_PauseOnLackOfKeys = false; MWConfig_IntendedUberPortal = 0; // Matron's Den: 133; Forgotten Sands: 134; Furnace Of Pain: 135;
//MWConfig_Script.push(["MWUberTristram.ntj", 10]); MWConfig_PauseOnLackOfOrgans = false;
*/
//------------------------------------------------------------------------------
// Misc Configuration
//------------------------------------------------------------------------------
//NTConfig_SkipHealLife = 90; // If you have more than this percent of life, you won't go to a healer.
//NTConfig_SkipHealMana = 70; // If you have more than this percent of mana, you won't go to a healer
NTConfig_UseMerc = true; // Set to true if you use a mercenary, will revive merc at a reviver npc.
MWConfig_ResetArmor = false; // Set to true to reset your Enigma if Teleport skill is missing. WARNING: Activating this feature may - though not likely will - result in the loss of your enigma. Use at your own risk!
//------------------------------------------------------------------------------
// Potion Configuration
//------------------------------------------------------------------------------
NTConfig_LifeThresh = 70; // Drink a normal potion if under this percent of life.
NTConfig_LifeRejuvThresh = 37; // Drink a rejuvenation potion if under this percent of life.
NTConfig_ManaThresh = 30; // Drink a normal potion if under this percent of mana.
NTConfig_ManaRejuvThresh = 0; // Drink a rejuvenation potion if under this percent of mana.
NTConfig_MercLifeThresh = 80; // This is the threshold to use a life potion on your merc in percent.
NTConfig_MercRejuvThresh = 30; // This is the threshold to use a rejuv potion on your merc in percent.
//------------------------------------------------------------------------------
// Chicken Configuration
//------------------------------------------------------------------------------
// This is your chicken life. If you go below this threshhold, your char will exit the game. You can either enter a percentage (1-100), an absolute threshold (>100) or 0 to deactivate life chicken.
NTConfig_LifeChicken = 30;
// This is your chicken mana. If you go below this threshhold, your char will exit the game. You can either enter a percentage (1-100), an absolute threshold (>100) or 0 to deactivate mana chicken.
NTConfig_ManaChicken = 0;
// This is your merc's chicken life in percent. If your merc goes below this threshhold, your char will exit the game.
NTConfig_MercChicken = 0;
//------------------------------------------------------------------------------
// Inventory Configuration
//------------------------------------------------------------------------------
// Number of free columns. If less full columns are free stashing is set.
NTConfig_FreeSpace = 5;
// Each number represents a slot in your inventory.
// Set to 0 if the slot and its content must not be touched.
// Set to 1 to allow access to this slot.
// Set to 2 to select the slot that is used for storing keys. (if keys are kept at another slot, your char will try to move them)
NTConfig_Columns[0] = [0,0,0,0,0,0,0,0,0,0];
NTConfig_Columns[1] = [0,0,0,0,0,0,0,0,0,0];
NTConfig_Columns[2] = [0,0,0,0,0,0,0,0,0,0];
NTConfig_Columns[3] = [1,1,1,0,0,0,0,0,0,0];
// Maximum gold amount carried before going to stash.
NTConfig_MinGoldToStash = 100000;
// Set to true if your char is supposed to carry, buy and pick up keys. You do not need to add keys to your .nip files, they will be picked up anyway if this is set to true.
MWConfig_CarryKeys = true;
//------------------------------------------------------------------------------
// Belt Configuration
//------------------------------------------------------------------------------
// Determine how many columns for each type of potion are used.
// Available types : "hp" = health | "mp" = mana | "rv" = rejuvenation
// The first number indicates how many columns will be used for this type of potion.
// The second number indicates the minimum amount of potions in one column. If there are less potions in a single column when your char is in town, he will is visit a merchant in order to buy potions.
// Unlike in vanilla D2NT, there is no need to specify which column is used for certain type of potion, this will be chosen automatically!
MWConfig_BeltTypeColQuantity["hp"] = [3, 3];
MWConfig_BeltTypeColQuantity["mp"] = [1, 3];
MWConfig_BeltTypeColQuantity["rv"] = [0, 0];
// Visit Town and buy potions if your char lacks mana when trying to loot a corpse or teleport.
MWConfig_BuyPotionsOnLackOfMana = true;
// Set to true to replace low quality potions with higher quality potions that just dropped.
MWConfig_ReplaceLowQualityPotions = true;
//-----------------------------------------------------------------------------------
// NipFile Configuration
//-----------------------------------------------------------------------------------
//NTConfig_NIPFilePath.push("private/normal.nip");
//NTConfig_NIPFilePath.push("private/magic_rare.nip");
//NTConfig_NIPFilePath.push("private/set.nip");
//NTConfig_NIPFilePath.push("private/unique.nip");
//NTConfig_NIPFilePath.push("private/craft.nip");
//NTConfig_NIPFilePath.push("private/temp.nip");
//------------------------------------------------------------------------------
// Pickit Configuration
//------------------------------------------------------------------------------
// Radius to check for dropped items. NOTE: The maximum is at about ~75, entering higher values will not have any effect.
NTConfig_SnagRange = 70;
// Set to true to check for dropped items whenever you kill a monster.
MWConfig_PickItemsInstantly = false;
//------------------------------------------------------------------------------
// Chest Configuration
//------------------------------------------------------------------------------
// Set to true to open chests. NOTE: This only affects some super unique chests in certain boss scripts.
//NTConfig_OpenChest = true;
// Set to true to open almost any type of container.
//MWConfig_OpenAllNearbyChests = true;
// Set to true to check for dropped items right after opening a chest. NOTE: This will slow down your runs and therefore should definately be set to false when doing private games.
//MWConfig_PickChestLootsInstantly = false;
// This is the range being checked for chests after clearing an area or room. NOTE: You should not set this too high, 30 is a good value.
//MWConfig_OpenChestsRange = 30;
// If you do not like to open chests in a certain area, you can its areaid as an exception below. NOTE: All areaids can be found in "sdk\areas.txt".
// MWConfig_ChestExceptions.push(<areaid1>, <areaid2>, <areaidn>);
//------------------------------------------------------------------------------
// 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 = false;
//------------------------------------------------------------------------------
// General Configuration
//------------------------------------------------------------------------------
// Set to true to activate public mode. By activating public mode, your char will form a party, open TPs and do some chat outputs when running certain bot scripts.
NTConfig_PublicMode = true;
// 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;
// Set to true to exit the game when another player expresses hostility towards you.
me.quitonhostile = true;
// This is the maximum time in seconds your char will remain in a single game. Set to 0 to stay in game infinitely.
me.maxgametime = 3000;
// This is the minimum time in seconds for your char to remain in a single game. Your char will not exit the game before this time elapsed.
me.mingametime = 900000;
//------------------------------------------------------------------------------
// Shrine Configuration
//------------------------------------------------------------------------------
// Set to true to activate nearby shrines. Shrines will only be activated if it is actually useful.
MWConfig_ActivateNearbyShrines = true;
// If you would like to skip shrines in a certain area, you can its areaid as an exception below. NOTE: All areaids can be found in "sdk\areas.txt".
// MWConfig_ShrineExceptions.push(<areaid1>, <areaid2>, <areaidn>);
//------------------------------------------------------------------------------
// Precast Configuration
//------------------------------------------------------------------------------
// Your precast skills can be defined in the array below. NOTE: Battle Command, Battle Orders and Shout will be cast automatically. Constants for all skill ids can be found in "scripts\libs\common\MWSkills.ntl".
MWConfig_PrecastSkills = [MWS_HOLY_SHIELD];
// Set this to true if you would like to switch slots right after casting BC, BO and Shout. If set to false, your char will remain with the BO Slot until the whole precast procedure is done.
MWConfig_SwitchSlotsAfterBoPrecast = true;
//------------------------------------------------------------------------------
// Attack Configuration
//------------------------------------------------------------------------------
// Specify your attack skills below. NOTE: Constants for all skill ids can be found in "scripts\libs\common\MWSkills.ntl".
NTConfig_AttackSkill[0] = 0; // This skill is used once whenever attacking a new target. Set to 0 to deactivate.
NTConfig_AttackSkill[1] = MWS_BLESSED_HAMMER; // Primary skill to bosses.
NTConfig_AttackSkill[2] = MWS_CONCENTRATION; // Primary aura to bosses. Set to 0 to deactivate.
NTConfig_AttackSkill[3] = MWS_BLESSED_HAMMER; // Primary skill to others.
NTConfig_AttackSkill[4] = MWS_CONCENTRATION; // Primary aura to others. Set to 0 to deactivate.
NTConfig_AttackSkill[5] = MWS_HOLY_BOLT; // Secondary skill in case monster is immune to primary skill. Set to 0 if you won't
NTConfig_AttackSkill[6] = MWS_CONCENTRATION; // Secondary aura. Set to 0 not to activate any aura.
NTConfig_AttackSkill[7] = MWS_SALVATION; // Aura to be used against Uber Mephisto. Set to 0 to deactivate.
// Set to true if you want to clear area after killing boss. NOTE: This only affects a few botscripts.
NTConfig_ClearPosition = true;
// Set to true to clear area when killing a boss and the position is crowded by monsters. NOTE: Setting this to true may cause NTA_KillMonster() to fail way more often.
MWConfig_ClearBossPosition = false;
// This is the number of attacks to be performed before the the character tries to move to another position. Set to 0 not to reposition.
MWConfig_AttacksBeforeRepositioning = 20;
// Define a time limit for your attacks for each type of monster.
MWConfig_AttackTimeLimit[0] = 20; // Maximum time in seconds to attack a normal monster
MWConfig_AttackTimeLimit[1] = 120; // Maximum time in seconds to attack a super unique monster
MWConfig_AttackTimeLimit[2] = 30; // Maximum time in seconds to attack a champion
MWConfig_AttackTimeLimit[3] = 120; // Maximum time in seconds to attack a bosse
MWConfig_AttackTimeLimit[4] = 30; // Maximum time in seconds to attack a minion
// Define when a monster is considered immune by entering the index of one or more of your attack skills. As an example: [1, 3] means that a monster is considered immune if it is immune to both NTConfig_AttackSkill[1] and NTConfig_AttackSkill[3], whatever those may be.
MWConfig_CheckImmunitySkills = [];
// Select the behaviour of your character when encountering a monsters that is considered immune referring to the definition above.
// 0: Don't do anything. (D2NT default)
// 1: Get close to the monster.
// 2: Skip the monster.
// 3: Attack the monster using NTConfig_AttackSkill[8] and NTConfig_AttackSkill[9]
NTConfig_BehaviourOnImmuneMonster = 0;
NTConfig_AttackSkill[8] = 0; // Skill to be used against user defined immunes.
NTConfig_AttackSkill[9] = 0; // Untimed Skill to be used against user defined immunes.
// Activate Redemption if your health is lower than this percentage. Set to 0 not to use Redemption.
NTConfig_UseRedemptionHP = 80;
// Activate Redemption if your health is lower than this percentage. Set to 0 not to use Redemption.
NTConfig_UseRedemptionMP = 60;
// Check self safe in field (NOT in town). Set to 0 if you won't.
// 0x01 : Potion
// 0x02 : Poison
// 0x04 : Amplify Damage
// 0x08 : Weaken
// 0x10 : Iron Maiden
// 0x20 : Decrepify
// 0x40 : Lower Resist
NTConfig_CheckSelfSafe = 0;
// Check merc's safe in field (NOT in town). Set to 0 if you won't.
// 0x01 : Death
// 0x02 : Poison
// 0x04 : Amplify Damage
// 0x08 : Weaken
// 0x10 : Iron Maiden
// 0x20 : Decrepify
// 0x40 : Lower Resist
//NTConfig_CheckMercSafe = 0x01;
}
|
Wer Kommentare lesen kann ist klar im Vorteil.
Habe es mal oben reineditiert.
Wie den Kommentaren zu entnehmen gibst du nur an wieviele Spalten pro Tranksorte, welche Spalten das konkret sind ergibt sich, das wird nicht vorgegeben.
Warum genau nimmst du eigentlich keine Rejuvs mit?
LG
Muddy
|
|
|
04/10/2011, 22:42
|
#1249
|
elite*gold: 0
Join Date: Apr 2009
Posts: 25
Received Thanks: 4
|
ist das normal das er bei diaruns sehr oft abstürzt?
also z.B.
NTM_MoveTo() failed
oder
NT_OpenSealsInt() failed
von 10 runs kam sowas 4 ma
edit 7 von 13^^
lg
|
|
|
04/11/2011, 10:03
|
#1250
|
elite*gold: 0
Join Date: Jun 2008
Posts: 210
Received Thanks: 14
|
hey hab eben mal versucht nihalatak zu botten, hat beim ersten mal auch toll funktioniert, danach die male is er leider chickened ^^ bin blizzard sorc
ist ja im prinzip nicht schlimm das ich den nicht machen kann, nur ist ja nun das portal leider weg. kann ich pindle auch über den wp machen? oder ne möglichkeit nihalatak "safer" zu machen. er hat sich halt oft nach 1-2 attacken in den ganzen pulk getelt
|
|
|
04/11/2011, 11:20
|
#1251
|
Administrator
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,727
Received Thanks: 12,652
|
Quote:
Originally Posted by so_ad
ist das normal das er bei diaruns sehr oft abstürzt?
also z.B.
NTM_MoveTo() failed
oder
NT_OpenSealsInt() failed
von 10 runs kam sowas 4 ma
edit 7 von 13^^
lg
|
Wurde schonmal erwähnt, ist definitiv nicht normal.
Aber solange ich selber keinen Char habe, der da schafft, kann ich das Problem schlecht reproduzieren und beseitigen.
Quote:
Originally Posted by bloodydeluxe
hey hab eben mal versucht nihalatak zu botten, hat beim ersten mal auch toll funktioniert, danach die male is er leider chickened ^^ bin blizzard sorc
ist ja im prinzip nicht schlimm das ich den nicht machen kann, nur ist ja nun das portal leider weg. kann ich pindle auch über den wp machen? oder ne möglichkeit nihalatak "safer" zu machen. er hat sich halt oft nach 1-2 attacken in den ganzen pulk getelt
|
Ich glaube kaum, dass es irgendeinen Sinn hat, das Script dahingehend umzuschreiben, zumal ich nichtmal wüsste wie. Entweder dein Char ist stark genug, oder dein Char ist eben nicht stark genug.
Und im Normalfall sollte sich in der Config eine Variable NTConfig_PindleskinExtension im Bezug auf das Nihlatak Script finden, im Zweifelsfall einfach mal diese mit true initialisieren.
LG
Muddy
|
|
|
04/11/2011, 12:56
|
#1252
|
elite*gold: 0
Join Date: Jun 2009
Posts: 45
Received Thanks: 6
|
hey .)
wie kann ich einstellen das mein bot einfach so in iwelche spiele joint un da mf runs macht?
damit halt nich immer das game ganz leer is..
hab gehört so dropt dann besser
autoparty exitgame und sowas is ausgeschaltet also muss nur noch wissen wie er in nen anderes game einfach joint
|
|
|
04/11/2011, 12:59
|
#1253
|
elite*gold: 0
Join Date: Jun 2008
Posts: 210
Received Thanks: 14
|
Quote:
Originally Posted by WeeDling
hey .)
wie kann ich einstellen das mein bot einfach so in iwelche spiele joint un da mf runs macht?
damit halt nich immer das game ganz leer is..
hab gehört so dropt dann besser
autoparty exitgame und sowas is ausgeschaltet also muss nur noch wissen wie er in nen anderes game einfach joint
|
du könntest einfach im d2nt manager die haken bei random gamename/passwort rausnehmen und sowas wie:
i-tele-baal
und kein passwort hinschreiben. er zählt dann automatisch rauf und oft joinen dann ja leute.
|
|
|
04/11/2011, 13:09
|
#1254
|
elite*gold: 0
Join Date: Jun 2009
Posts: 45
Received Thanks: 6
|
hm ja ok .. das könnt ich wirklich machen xD
aber sonst das er andere games joint geht nicht?
|
|
|
04/11/2011, 14:00
|
#1255
|
Administrator
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,727
Received Thanks: 12,652
|
Quote:
Originally Posted by bloodydeluxe
du könntest einfach im d2nt manager die haken bei random gamename/passwort rausnehmen und sowas wie:
i-tele-baal
und kein passwort hinschreiben. er zählt dann automatisch rauf und oft joinen dann ja leute.
|
Ich weiss ja nicht wie du das hälst, aber ich halte absolut nichts davon, Leute mit leeren Versprechen zu locken.
Ob das offensichtlich ein Bot game ist hin oder her, es wird etwas vorgegaukelt, von dem man definitiv vorher weiss, dass man es nicht halten wird - mein Stil wäre sowas jedenfalls nicht.
Quote:
Originally Posted by WeeDling
hm ja ok .. das könnt ich wirklich machen xD
aber sonst das er andere games joint geht nicht?
|
Schau einfach mal in den Entry Point (== NTBot.ntj).
Dort solltest du zwei Variablen finden:
Code:
var JoinGameKeywords = new Array("dia", "baal");
var JoinRandomGamesChars = new Array("");
Diese musst du nun nur entsprechend initialisieren.
Das erste sind Schlüsselwörter, die im Spielnamen vorkommen sollen (case insensitive).
Das zweite ist der Name deines Chars, der öffentliche Spiele Joinen soll (case sensitive).
Versuch mal ob das funktioniert, das ist eigentlich eher ein angefangener Entwurf, den ich aber scheinbar nicht in der Release Version entfernt habe.
LG
Muddy
|
|
|
04/11/2011, 22:00
|
#1256
|
elite*gold: 0
Join Date: May 2008
Posts: 788
Received Thanks: 58
|
Wo kann ich einstellen das er gegengift Elixiere kauft und benutzt ?
|
|
|
04/11/2011, 23:05
|
#1257
|
Administrator
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,727
Received Thanks: 12,652
|
Quote:
Originally Posted by BlackManta
Wo kann ich einstellen das er gegengift Elixiere kauft und benutzt ?
|
Gar nicht, das ist schlicht und einfach nicht vorgesehen.
LG
Muddy
|
|
|
04/12/2011, 11:02
|
#1258
|
elite*gold: 0
Join Date: Jan 2009
Posts: 4
Received Thanks: 0
|
Hallo again
Schon ne weile her das ich gepostet hatte das mein pala immer wieder errors hat... naja is nich wirklich besser geworden jetzt macht er halt nur noch bei 26 runs 11 disconnects :-/... statt vorher exact 13 ... ich hab die festplatte defragmentiert ich hab d2 neu installed ich hab die registry repaired aber hilft alles nix ...
muddy hast du vll eine idee?
liebe grüße
halgrev
|
|
|
04/12/2011, 11:15
|
#1259
|
elite*gold: 0
Join Date: Feb 2011
Posts: 394
Received Thanks: 75
|
Hast du schonmal versucht den Bot ein zweites mal runter zuladen, und die zu verwenden? Hatte selbes Problem mit meiner Sorc, hab alles erdenktliche gemacht um das Problem zu beheben, hat aber nichts gebracht. Bis ich dan (dank daarmys vorschlag weil er auch nimma weiter wusste :P ) den Bot einfach aus verzweiflung ein zweites mal runtergeladen habe und alles neu eingestellt habe bei dem. Dan gings wieder ohne restarts probs.
Warscheinlich ist es irgendwo einfach n kleiner fehler der sich eingeschlichen hat.
Sachen die man in der Config ausstellen kann um damit der Bot evt. besser läuft währen:
- xml log aus machen
- MWConfig_PickItemsInstantly = false; (auf false stellen in privat runs)
- interaktion bei der mit static ausmachen (nur notwendig bei der soso)
- MWConfig_PickChestLootsInstantly = false; (auf false stellen in privat runs)
Denke das sind einige sachen die du mal bevor du den bot neurunterlädst mal ausprobieren solltest. Falls die nicht sowiso schon alles aus hast  Standartmässig (ausser xml log und static bei sosos) sollte es denk ich sowiso auf false sein.
Was auch sicherlich empfehlenswert währe, falls du das nicht auch schon hast, währe dir das Notepad++ runter zu laden. Dafür gibts auch nen tollen Guide von Muddys. Damit kannst du kleiner "rechtschreibe fehler" in deiner Config schneller erkennen und hast eine viel besser übersicht was auch zum vorbeugen div. kleineren fehlern hilft.
mfg
|
|
|
04/12/2011, 12:51
|
#1260
|
elite*gold: 0
Join Date: May 2010
Posts: 212
Received Thanks: 40
|
Mal ne Frage,
Was sagt mir die Textausgabe "Return C" ?
Ich weiss, sie kommt aus der NTAttack und scheinbar im Zusammenhang mit Immunitäten. Durch Einstelungen in der NTConfig_Soreress_xxx kann ich die Häufigkeit der Meldung beeinflussen. Sagt sie mir, dass ich nix verstehe?
Code:
NTConfig_AttackSkill[0] = MWS_FROZEN_ORB; // This skill is used once whenever attacking a new target. Set to 0 to deactivate.
NTConfig_AttackSkill[1] = MWS_FROZEN_ORB; // Primary skill to bosses.
NTConfig_AttackSkill[2] = MWS_FIRE_BALL; // Primary untimed skill to boss. Set to 0 to deactivate.
NTConfig_AttackSkill[3] = MWS_FROZEN_ORB; // Primary skill to others.
NTConfig_AttackSkill[4] = MWS_FIRE_BALL; // Primary untimed skill to others. Set to 0 to deactivate.
NTConfig_AttackSkill[5] = MWS_FIRE_BALL; // Secondary skill in case monster is immune to primary skill. Set to 0 to deactivate.
NTConfig_AttackSkill[6] = 0; // Secondary untimed skill. Set to 0 to deactivate.
NTConfig_AttackSkill[7] = MWS_STATIC_FIELD; // Alternative untimed skill which is used if the target is immune to your untimed skill - mostly useful for FB/FO/Meteor sorcs or other sorcs that are using the same untimed skills. Set to 0 to deactivate.
// Set to true if you want to clear area after killing boss. NOTE: This only affects a few botscripts.
NTConfig_ClearPosition = true;
// Set to true to clear area when killing a boss and the position is crowded by monsters. NOTE: Setting this to true may cause NTA_KillMonster() to fail way more often.
MWConfig_ClearBossPosition = true;
// This is the number of attacks to be performed before the the character tries to move to another position. Set to 0 not to reposition.
MWConfig_AttacksBeforeRepositioning = 10; //ff 20
// Define a time limit for your attacks for each type of monster.
MWConfig_AttackTimeLimit[0] = 40; // Maximum time in seconds to attack a normal monster
MWConfig_AttackTimeLimit[1] = 140; // Maximum time in seconds to attack a super unique monster
MWConfig_AttackTimeLimit[2] = 50; // Maximum time in seconds to attack a champion
MWConfig_AttackTimeLimit[3] = 180; // Maximum time in seconds to attack a bosse
MWConfig_AttackTimeLimit[4] = 40; // Maximum time in seconds to attack a minion
// Define when a monster is considered immune by entering the index of one or more of your attack skills. As an example: [1, 3] means that a monster is considered immune if it is immune to both NTConfig_AttackSkill[1] and NTConfig_AttackSkill[3], whatever those may be.
MWConfig_CheckImmunitySkills = [1, 2];
// Select the behaviour of your character when encountering a monsters that is considered immune referring to the definition above.
// 0: Don't do anything. (D2NT default)
// 1: Get close to the monster, use static field if the monster is not immune to lightning, so Merc kill monster
// 2: Skip the monster.
// 3: Attack the monster using NTConfig_AttackSkill[8] and NTConfig_AttackSkill[9]
NTConfig_BehaviourOnImmuneMonster = 0;
NTConfig_AttackSkill[8] = 49; // Skill to be used against user defined immunes.
NTConfig_AttackSkill[9] = 49; // Untimed Skill to be used against user defined immunes.
Obwohl NTConfig_BehaviourOnImmuneMonster auf Null steht, wie hier im Auszug meiner Datei, kommt die Meldung.
|
|
|
 |
|
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 06:27.
|
|