/**
* This file was written by

* Check the programming section for updates and further scripts
* Last Update: 03/02/2011
*/
Include("libs/common/MWSkills.ntl");
function MW_LoadGlobalSettings()
{
//------------------------------------------------------------------------------
// General Configuration
//------------------------------------------------------------------------------
// Set to true to run sorting algorithm whenever managing your stash.
MWConfig_SortStash = true;
// Set to true to form a party even if public mode is deactivated.
MWConfig_AutoParty = true;
// This is the maximum number of errors that may occur in a single game. If more errors occur, your char will exit the game.
MWConfig_GameErrorLimit = 3;
// This is the delay in milliseconds before the first bot script is loaded.
NTConfig_StartDelay = 500;
// This is the delay in milliseconds on area changes. Do not set this too low!
NTConfig_AreaDelay = 250;
// This is the delay in milliseconds before picking up items. Do not set this too low!
NTConfig_SnagDelay = 250;
// Set to true to enable overhead status messages. NOTE: This will be visible for everyone in the game so you might not want to activate it when doing public games.
MWConfig_ShowOverheadStatus = true;
// Define which negative states on your char require visiting a healer when in town. Set to 0 not to visit a healer.
// 0x02 : Poison
// 0x04 : Amplify Damage
// 0x08 : Weaken
// 0x10 : Iron Maiden
// 0x20 : Decrepify
// 0x40 : Lower Resist
MWConfig_CheckSelfSafeTown = 0x0C;
// Define which negative states on your merc require visiting a healer when in town. Set to 0 not to visit a healer.
// 0x02 : Poison
// 0x04 : Amplify Damage
// 0x08 : Weaken
// 0x10 : Iron Maiden
// 0x20 : Decrepify
// 0x40 : Lower Resist
MWConfig_CheckMercSafeTown = 0;
//------------------------------------------------------------------------------
// Bulletin Board Output Configuration
//------------------------------------------------------------------------------
// Select the path of your output textfile. The file extension .txt is added automatically.
MWConfig_BulletinBoardFilePath = "Logs/BBOutput";
// Select the mode for writing to the output textfile. Use 1 to overwrite the existing content and use 2 to append to the existing content.
MWConfig_BulletinBoardFileMode = 1;
// Define the colors used for replacing the D2 color codes. WARNING: You should not change these if you are not familiar with hexadecimal colors.
MWConfig_BulletinBoardColors["white"] = "#FFFFFF";
MWConfig_BulletinBoardColors["red"] = "#CD0000";
MWConfig_BulletinBoardColors["green"] = "#00FF00";
MWConfig_BulletinBoardColors["blue"] = "#3A5FCD";
MWConfig_BulletinBoardColors["gold"] = "#8B814C";
MWConfig_BulletinBoardColors["gray"] = "#606060";
MWConfig_BulletinBoardColors["orange"] = "#FF8C00";
MWConfig_BulletinBoardColors["yellow"] = "#FFFF00";
//------------------------------------------------------------------------------
// User Defined Commands
//------------------------------------------------------------------------------
// This feature allows you to assign some commands to your numpad.
// The current assignment is shown by pressing "Numpad +".
//
// Command Name Description
// -----------------------------------------------------------------------------
// ShowChickenThresholds Shows your chars current chicken thresholds.
// ShowTotalGoldCarried Shows the amount of gold your char currently carries.
// ShowActiveStates Shows the active states or your char.
// ShowScriptOrder Shows the current bot script schedule.
// ShowStash Shows the current layout of your stash and how many slots are used/unused.
// ClearPosition_X Kills all monsters in a radius of X. NOTE: Will not work while a bot script is running.
// PickItems Check for dropped items. NOTE: Will not work while a bot script is running.
// RevealMap Reveals the automap.
// ShowEnemiesOnMap Shows nearby enemies on automap.
// ShowMisslesOnMap Shows nearby missles on automap.
// ShowKeysCarried Shows how many of each type of key your character currently carries.
// ShowOrgansCarried Shows how many of each type of organ your character currently carries.
// ShowRunesCarried Shows how many runes of each type your character currently carries.
// ShowItemLevel Shows the item level and nip info of a selected item. NOTE: "Selected" means placed in your cube.

// WriteBBOutput Generates BB Code output for a selected item's description. NOTE: "Selected" means placed in your cube.

// -----------------------------------------------------------------------------
// ShowObjectUnits_X Shows the properties of all object units in a radius of X.
// ShowNpcUnits_X Shows the properties of all npc units in a radius of X.
// ShowPlayerUnits_X Shows the properties of all player units in a radius of X.
// ShowItemUnits_X Shows the properties of all item units in a radius of X.
// ShowTileUnits Shows the properties of all nearby tile units.
MWConfig_CommandAssignedToNumpad[0] = "ShowStash";
MWConfig_CommandAssignedToNumpad[1] = "ShowScriptOrder";
MWConfig_CommandAssignedToNumpad[2] = "ShowChickenThresholds";
MWConfig_CommandAssignedToNumpad[3] = "ShowItemLevel";
MWConfig_CommandAssignedToNumpad[4] = "WriteBBOutput";
MWConfig_CommandAssignedToNumpad[5] = "ShowKeysCarried";
MWConfig_CommandAssignedToNumpad[6] = "ShowRunesCarried";
MWConfig_CommandAssignedToNumpad[7] = "ShowMisslesOnMap";
MWConfig_CommandAssignedToNumpad[8] = "ShowEnemiesOnMap";
MWConfig_CommandAssignedToNumpad[9] = "RevealMap";
//------------------------------------------------------------------------------
// World Event Configuration
//------------------------------------------------------------------------------
// Set to true to stop and wait some minutes after receiving "x Stones of Jordan sold to Merchants" message. Your char will switch acts every couple of minutes so he won't be kicked.
MWConfig_CheckSojSales = true;
// Set to true to wait ingame after receiving a "Diablo Walks the Earth" message. Your char will switch acts every couple of minutes so he won't be kicked.
NTConfig_CheckCloneDiablo = true;
// Enter an account name that will be informed about soj sales or world events. Leave empty not to wisper any account.
MWConfig_WorldEventAccount = "";
// This is the time in minutes your char will remain in the game in case of a world event. Set to 0 to wait infinitely.
MWConfig_WorldEventWaitTime = 0;
//------------------------------------------------------------------------------
// Identification Configuration
//------------------------------------------------------------------------------
// Set to true to visit Deckard Cain in order to identify items. NOTE: Cain will not be visited if you char carries items that you like to be kept unidentified.
MWConfig_IdentAtCain = true;
// Set to true to always visit a merchant in order to sell items that are not required. If set to false, the char will drop these items, unless he is visiting a merchant anyway.
MWConfig_AlwaysSellTrashItems = true;
// Set to true to identify items when not in town. Items that do not meet your requirements will be dropped.
MWConfig_IdentAfterPickup = true;
// This is the minimum number of unid items to be carried before your char identifies them when not in town.
MWConfig_MinItemsToIdent = 6;
//------------------------------------------------------------------------------
// Itemlog Configuration
//------------------------------------------------------------------------------
// Set to true to log both sold and kept items in an XML logfile that can be viewed in a browser. NOTE: For some reason that does not work using IE, try Firefox instead.
MWConfig_UseXMLItemlog = false;
// Set to true to activate Nip debug mode. The Nip debug mode adds additional information to the item tooltips in the manager's item log that tells you exactly why an item was kept.
MWConfig_NipDebugMode = true;
// Set to true to log items in manager's log that were not required and therefore sold. NOTE: You should definately set this to false when running multiple bots. Use the XML log instead in order to keep track of sold items.

MWConfig_LogSoldItems = false;
// Set to true to print how much gold was picked up during the last script after it is finished.
MWConfig_ShowGoldPickupsPerScript = true;
// Set to true to show a pick up message for gold.
MWConfig_ShowGoldPickups = true;
// Set to true to show a pick up message for potions.
MWConfig_ShowPotionPickups = true;
// Set to true to log to txt when using the stashlog feature.
MWConfig_LogStashToTxt = true;
// This is the number of the lowest rune to be logged in the manager's item log when picked up. Mostly useful to keep your item log clean when collecting low runes. The default value 19 means that only runes equal or greater than LEM will be shown in the manager's item log.
MWConfig_LowestRuneToLog = 19;
//------------------------------------------------------------------------------
// Pickit Configuration
//------------------------------------------------------------------------------
// Set to true to pick up possibly useful items before picking up low priority items like keys, scrolls, gold, potions, and runes <= FAL.
MWConfig_PickUpPriorityItemsFirst = false;
// Pick up all items that are likely to be worth a lot of gold whenever your character is about to visit town.
MWConfig_PickUpMoneymakers = true;
// This is the minimum quantity of TP scrolls in your tome. If you got less, scrolls will be picked up in order to fill your tome.
MWConfig_MinimumTpScrollCount = 20;
// This is the minimum quantity of ID scrolls in your tome. If you got less, scrolls will be picked up in order to fill your tome.
MWConfig_MinimumIdScrollCount = 20;
//------------------------------------------------------------------------------
// Gambling Configuration
//------------------------------------------------------------------------------
// Set to true to enable gambling.
NTConfig_Gamble = true;
// This is the gold mount to start gambling.
NTConfig_GambleStartGold = 2500000;
// This is the gold mount to stop gambling.
NTConfig_GambleStopGold = 150000;
// Select which items are gambled by adding the classids of the desired items to the gambling array.
NTConfig_GambleItem.push(520); // Amulets
NTConfig_GambleItem.push(522); // Rings
NTConfig_GambleItem.push(418); // Circlets
NTConfig_GambleItem.push(419); // Coronets
// NTConfig_GambleItem.push(334); // Leather Gloves
// NTConfig_GambleItem.push(335); // Heavy Gloves
// NTConfig_GambleItem.push(336); // Chain Gloves
// NTConfig_GambleItem.push(337); // Light Gauntlets
// NTConfig_GambleItem.push(338); // Gauntlets
// NTConfig_GambleItem.push(<classid>);
NTConfig_GambleItem.push(331); // Schild (jmod?)
NTConfig_GambleItem.push(377); // Schild (jmod?)
NTConfig_GambleItem.push(175); // Klauen
NTConfig_GambleItem.push(176); // Klauen
NTConfig_GambleItem.push(178); // Klauen
NTConfig_GambleItem.push(179); // Klauen
NTConfig_GambleItem.push(180); // Klauen
NTConfig_GambleItem.push(181); // Klauen
NTConfig_GambleItem.push(182); // Klauen
NTConfig_GambleItem.push(183); // Klauen
NTConfig_GambleItem.push(184); // Klauen
NTConfig_GambleItem.push(185); // Klauen
NTConfig_GambleItem.push(186); // Klauen
NTConfig_GambleItem.push(187); // Klauen
NTConfig_GambleItem.push(188); // Klauen
NTConfig_GambleItem.push(189); // Klauen
NTConfig_GambleItem.push(190); // Klauen
NTConfig_GambleItem.push(191); // Klauen
NTConfig_GambleItem.push(192); // Klauen
NTConfig_GambleItem.push(193); // Klauen
NTConfig_GambleItem.push(194); // Klauen
NTConfig_GambleItem.push(195); // Klauen
//------------------------------------------------------------------------------
// 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 = true;
// *********************** 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_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 --> 1xBER
//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]); // 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]); // Socket Monarch
//NTConfig_CubingItem.push([NTCU_SOCKET_SHIELD, 498]); // Socket Sacred Targe
//NTConfig_CubingItem.push([NTCU_SOCKET_SHIELD, 502]); // 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
}