//////////////////////////////////////////////////////////////////////
// Boss configuration
//====================================================================
// This is the list of currently available boss to run.
// Reorder the lines to change the order in which they will be killed.
// Comment out (put // before) a line to skip the boss.
// Recommendation: Reorder the sequence in order of difficulty,
// to kill the toughest boss last and the easiest boss first.
//--------------------------------------------------------------------
// SPECIAL FEATURE: For those of you that only want to do baal but sometime you script abort due to pathing problem or
// you set AbortDoll=true, you will find yourself tp back to town and wait for minimum game length to pass. Now you can
// have your bot kill other bosses instead, by MOVING the baal script to the top of the list, it will kill any other
// bosses you set if it abort to town. But if it manage to get to baal then kill him. It will ignore any other bosses.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//--------------------------------------------------------------------
// The numbers correspond to your inventory. Set 0 to keep whatever is there, 1 to stash it.
// This allows you to keep charms in inventory. Note: If you have an empty spot set to 0
// the item that appears there during a run will NEVER get stashed.
// (Useful if you have lots of space and want to use the bonuses of freshly-ID'd charms.)
// WARNING: Make sure that you have set this correctly otherwise you can lose
// your existing items!
//--------------------------------------------------------------------

//////////////////////////////////////////////////////////////////////
// Precasting configuration
//====================================================================
// DA_UseCTA = true/false Switch to and use your CTA weapon runeword when doing the precasts.
// DA_AutoPrecasts = true/false Set to true to ignore the config below and automatically detect which skills to use for precasts.
// RedemMana = number Set this number to the LW_ManaThresh value if you changed your LifeWatch value.
// RedemLife = number Set this number to the LW_LifeThresh value if you changed your LifeWatch value.
// UseVigor= true/false True to use vigor in town. If you find that you having problem with interact with merchant, set it to false.
// DA_Refresh=true/false Set to true to refresh your precasts by default, if DA_AutoPrecasts is false
//--------------------------------------------------------------------

//////////////////////////////////////////////////////////////////////
// Mercenary configuration
//====================================================================
// DT_UseMerc = true/false Set to true to watch out for mercenary, revive him when he dies, etc.

// XP_EnchantMerc = true/false Set to true to cast Enchant on your merc when doing other precasts.
//--------------------------------------------------------------------

//////////////////////////////////////////////////////////////////////
// Baal configuration
//====================================================================
// SkipBaal = true/false Skip killing baal. Suggested for public run.
// AvoidHydra = true/false Set true to go back to town to avoid the councils' hydras.
// VenomLordCTA = true/false Set true to cast BO after Vemon Lord has been killed.
// NextGamemsg="text" What you want to say for the next game.
// MonsterSearch = number 2-9: put higher number if you find that you fail to kill all the monster.
// MonsterWait=number How many SECOND you should wait in throne before start searching for monster left over.
// AbortDoll=true/false Abort run if dolls around.
// preAttackAmount=number Number of attack before the boss spawn.
// RemovePoison=true/false Set to true if you want to go back to town to remove the poison from the unraverler.
// UseVigor=true/false Set to true to use vigor in town.
//--------------------------------------------------------------------
SkipBaal = true; Aqui pondremos true para k no mate a baal
AvoidHydra = false;
VenomLordCTA = false;
NextGamemsg="I'll make next game, see you there";
MonsterSearch=6;
MonsterWait=20;
AbortDoll=false;
preAttackAmount=5;
RemovePoison=false;
var UseVigor=true;

//////////////////////////////////////////////////////////////////////
// Immunities/Resistances/Enchantments to skip
//====================================================================
// Set each to true to chicken out if a monster is immune to that kind of damage.
// Thanks to D32v1n for contributing to some of these settings
//--------------------------------------------------------------------

//YAMXXP.push("Pindle");
//YAMXXP.push("Eldritch");
//YAMXXP.push("Trav");
YAMXXP.push("Countess");
YAMXXP.push("Meph");
//YAMXXP.push("Shenk");
//YAMXXP.push("Cow");
//YAMXXP.push("Hephasto");
YAMXXP.push("Andy");
//YAMXXP.push("Pit");
//YAMXXP.push("ThreshSocket");
//YAMXXP.push("Baal"); // baal must be last for the other script to run unless you want to use the special feature.
YAMXXP.push("Summoner");
YAMXXP.push("Nihlathak")

//////////////////////////////////////////////////////////////////////
// ShopIt! and GambleIt!
//====================================================================
// YAM_ShopIt = true/false Set to true to shop every npc you talk to, false to skip this.
// YAM_GambleIt = true/false Set to true to gamble at Anya and Gheed each time you talk to them.
// YAM_AlwaysGamble = true/false If GambleItOn is set to true, always go to Anya and Gheed to gamble.
// YAM_GambleMinGold = number Set a minimum amount of gold before starting to gamble.
// YAM_RandomNPC = true/false Set to true to always visit a random NPC before a run.
// YAM_AlwaysGoToHealer = true/false Set to true to always visit the local healer before a run.
// YAM_AlwaysRepair = true/false Set to true to always visit the repair npc before a run.
// YAM_AlwaysAkara = true/false Set to true to always visit Akara when in act 1.
// YAM_AlwaysCharsi = true/false Set to true to always visit Charsi when in act 1.
// YAM_VisitGheed = true/false Set to true to always visit Gheed when in act 1.
// YAM_AlwaysOrmus = true/false Set to true to always visit Ormus when in act 3.
// YAM_AlwaysMalah = true/false Set to true to always visit Malah when in act 5.
// YAM_AlwaysLarzuk = true/false Set to true to always visit Larzuk when in act 5.
// YAM_VisitAnya = true/false Set to true to always visit Anya before killing Pindle if ShopIt is true.
// Will also shop after comming back if PXP_EscapeThroughPortal is true.
//--------------------------------------------------------------------

//////////////////////////////////////////////////////////////////////
// General configuration
//====================================================================
// YAM_StartGameDelay = rnd(min,max) Random delay in milliseconds before game initialization.
// YAM_MinGameLength = number (sec) Minimum game length under which bot will stall after runs, in seconds.
// YAM_MaxGameLength = number (sec) Maximum game length before aborting, in seconds. Use 0 for infinite length.
// YAM_GameCatchup = number (msec) Time delay to let d2jsp catchup after an area change
// DC_Verbose = true/false Set to true to display various action messages.
// YAM_AbortNoMerc = true/false Set to true to abort the game if the merc is dead and failed to be ressurected.
// YAM_StopFullInv = true/false Set to true to stop the bot if the inventory and stash are full.
// YAM_StopNoRepair=true/false Set to true to stop if we have no enough gold to repair and some items is in critical level
// YAM_UseShrines = true/false Set to true to use shrines if they are found, during Meph or Shenk runs
// XP_SellBackItems = true/false Set to true to sell items your bmitems_XP.ini says not to keep to NPCs.
// XP_DropItems = true/false If XP_SellBackItems is set to true but gold is full, drop items instead (faster).
// XP_BossLOS = true/false Move closer to the boss if no LOS or too far
// XP_ImmuneQuit = number (monsters) If [x]XP_QuitImmune is set to true, chicken if the number of immune monsters reaches this value
// DA_LogChickens = true/false Set to true to log chickens. This only applies to chickens from LifeWatch
// DL_LogMode = 0/1/2 Item logging level, 0 by default.
// 0 = minimum (snagged, kept, bought and gambled only).
// 1 = normal (added dropped, ignored and sold).
// 2 = full (added snagged for val. and full stats of identified items).
// YAM_MustIdle=true/false Set to true to force YAMB to idle (uses HOTIP module idler)
// Useful if you need to perm your mule.
// DSN_LogRunes=true/false Set to true to log runes for the rune console.
// YAM_LifeWatchPath = "path" Path to the life watcher tool to use.
// YAM_MonsterWatchPath = "path" Path to the monster watcher tool to use.
// YAM_PartyUpPath ="path" path to the party up tool to use.
// YAM_ClearInv = true/false Set to true to clear inventory of junk before stashing and during npc interactions
// YAM_UseABM = true/false Set to true to use the Advanced Belt Manager (slower but gets full belt most of the time)
// YAM_StepPath = value Controls step-action during path move. Check YAM-Pathing.d2l for details.
// YAM_OpenChests = true/false Set to true to allow pather to open chests if they are found.
// YAM_StepPath also needs to be set correctly for this.
//--------------------------------------------------------------------

//////////////////////////////////////////////////////////////////////
// ShopIt! and GambleIt!
//====================================================================
// YAM_ShopIt = true/false Set to true to shop every npc you talk to, false to skip this.
// YAM_GambleIt = true/false Set to true to gamble at Anya and Gheed each time you talk to them.
// YAM_AlwaysGamble = true/false If GambleItOn is set to true, always go to Anya and Gheed to gamble.
// YAM_GambleMinGold = number Set a minimum amount of gold before starting to gamble.
// YAM_RandomNPC = true/false Set to true to always visit a random NPC before a run.
// YAM_AlwaysGoToHealer = true/false Set to true to always visit the local healer before a run.
// YAM_AlwaysRepair = true/false Set to true to always visit the repair npc before a run.
// YAM_AlwaysAkara = true/false Set to true to always visit Akara when in act 1.
// YAM_AlwaysCharsi = true/false Set to true to always visit Charsi when in act 1.
// YAM_VisitGheed = true/false Set to true to always visit Gheed when in act 1.
// YAM_AlwaysOrmus = true/false Set to true to always visit Ormus when in act 3.
// YAM_AlwaysMalah = true/false Set to true to always visit Malah when in act 5.
// YAM_AlwaysLarzuk = true/false Set to true to always visit Larzuk when in act 5.
// YAM_VisitAnya = true/false Set to true to always visit Anya before killing Pindle if ShopIt is true.
// Will also shop after comming back if PXP_EscapeThroughPortal is true.
//--------------------------------------------------------------------

////////////////////////////////////////////////////////////////////////
// Automatic Settings selector for multiple chars
//====================================================================
// To use the automatic config selector, set YAM_AutoSelect to true
//
// To make this feature work, you must name each config file with the
// Following rule : YAM_LifeWatchConfig_[char name].d2l where [char name] is
// the exact character name, including the exact case.
////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
// Character lifewatch settings
//====================================================================
// All potion drink and chicken values for self are now absolute values instead of percentages (faster) !!
//--------------------------------------------------------------------
// LW_UseTownChicken = true/false Set to true to chicken to town on many things. For HC, set it to false.
// LW_ChickenLife = number This is your chicken life amount. If you go below this life total, exit game.
// LW_ChickenTownLife = xx This is your chicken to town life. If you go below this life amount,
// the game will make a portal and go to town.
// LW_ChickenMana = number This is your chicken mana amount. If you go below this mana total, exit game.
// LW_LifeThresh = number Drink a normal potion if under this amount of life.
// LW_ManaThresh = number Drink a normal potion if under this amount of mana.
// LW_LifeRejuvThresh = number Drink a rejuvenation potion if under this amount of life.
// LW_ManaRejuvThresh = number Drink a rejuvenation potion if under this amount of mana.
// LW_QuitOnNoDrink = number Quit if you cannot drink a potion because your character action is preventing
// it and life is lower then this amount.
// LW_ChickenOnOutOfManaPots = true/false Set to true to quit when out of mana potions in belt.
// LW_ChickenOnOutOfHealPots = true/false Set to true to quit when out of healing potions in belt.
// LW_ChickenOnOutOfRejuvPots = true/false Set to true to quit when out of rejuvenation potions in belt.
// LW_ChickenOnOutOfPots = true/false Set to true to quit when out of rejuvenation and either out of life or
// out of mana potions too (recommended.)
//
// Note: If you set LW_UseTownChicken to false, the bot will quit the game if one of the conditions below is true:
// 1) LW_ChickenTownLife is reached
// 2) LW_ChickenMana is reached
// 3) LW_DeadMercChicken is true and merc dies
// 4) LW_MercChickenLife is reached for your merc
// 5) LW_QuitOnNoDrink is reached and you cannot drink a potion
// 6) LW_ChickenOnOutOf... is reached and set to true
//
// If, on the other hand, LW_UseTownChicken is set to true, the bot will be signaled to tp to town if any of the above conditions are true.
// If you want the bot to ignore any of one these conditions (i.e. not to quit the game or tp to town irregardless of the value of LW_UseTownChicken),
// you should set the respective boolean value of the condition above to false, or set it to -1, if it is a number.
//--------------------------------------------------------------------

//--------------------------------------------------------------------
// Mercenary settings
//--------------------------------------------------------------------
// All potion drinking and chicken values for merc are still percentages !!
//--------------------------------------------------------------------
// LW_DisplayMercHP = true/false Set to true to display Merc HP on screen. Will be displayed as a value out of 128, not in %.
// LW_MercLifeThresh = number (%) This is the threshold to use a life potion on your merc in percent.
// LW_MercRejuvThresh = number (%) This is the threshold to use a rejuv potion on your merc in percent.
// LW_DrinkTimer = number (secs) But dont drink more than one potion for this number of seconds.
// LW_RejuvDrinkTimer = number (secs) Dont drink more than one rejuv potion for this number of seconds.
// LW_MercChickenLife = number (%) This is your mercs chicken life percentage. If he goes below this, exit game.
// LW_DeadMercChicken = true/false Set to true to chicken if your merc dies. If LW_UseTownChicken is set, you will
// chicken to town ONLY if you have configured to use a merc and you have enough gold
// to revive him. Otherwise the chicken request will be issued but ignored.
//--------------------------------------------------------------------

//--------------------------------------------------------------------
// Misc settings
//--------------------------------------------------------------------
// LW_LoopDelay = xxx This is the time your script will pause in between each life check
// Setting the LoopDelay very low consumes a lot of CPU power.
// If Diablo seems sluggish raise this value. 200 should be fine for most systems,
// though HC players on a fast system might want to do 100.
// LW_IgnorePosition = true/false Set to true to drink any potion in your belt, not just those readily clickable.
// IgnorePosition is intended for cautious players who are paranoid about detection.
// It will allow only the drinking of the lowest 4 belt positions (i.e. the ones you
// would normally drink from.) Otherwise the bot can drink from the entire belt.
// LW_QuitOnHostile = true/false Quit when someone goes hostile with you.
// LW_MaxPing = number Ping in ms to chicken at. Should never be under 500!
// LW_MaxSpamFailed = number Maximum number of times to print "failed to drink" message until sucessful drink.
//--------------------------------------------------------------------