templerunbug
圣骑的角色设置说明
/////////////////////// YAMB for 1.11b by Foster ///////////////////////////////
// This bot is originally written by DarkSpirit.
// Derived from ChainXP by ET aka cougio (irc) aka kougio (bh)
// Collaborator: wurscht, sumo1
//
// Thanks to Snarg who started the whole thing with his MultiXP and by encouraging me to publish this.
//
// Thanks to Matt Lanteigne aka mattlant for his pathing work YAM uses.
//
// Original XP scripts authors : 2KH, Xizeta, DaBeerMan, LordOfMars, FruitBar, HPB_Forever
// Collaborators : Ven0m, Muellsammler, Darien, Killkeeper, Damoon, HellNucleus,
// Gill_105, Syadasti, Smoke, sicojola and others
//
// Am I forgetting someone? Oh yea, the core! Thanks to bubbafate for cracking it :-D
//
// Legal stuff :
// This program is free software; You can redistribute freely as long as this
// notice stays intact. If you don't want to submit your modifications and want
// to redistribute this script, you must rename it by replacing with your own
// name to avoid conflicts.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY
// or FITNESS FOR A PARTICULAR PURPOSE.
///////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
// This is the file you should be editing!!!
//
// General configs can be found at the top.
// Class specific configuration can be found in the sections below.
//
// For skill codes, refer to "skills.txt" in the sdk folder or use the exact skill name.
//
// For potion drinking settings, edit the LifeWatchXP associated via YAM_LifeWatchPath
//
// To use a character specific configuration, see header of bots/YAM.d2j
////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
// Game configuration
//====================================================================
// YAM_StartGameDelay = rnd(min,max) Random delay in milliseconds before game initialization.
// YAM_GameCatchup = number (msec) Time delay to let d2jsp catchup after an area change
// YAM_MaxGameLength = number (sec) Maximum game length before aborting, in seconds. Use 0 for infinite length.
// YAM_MinGameLength = number (sec) Minimum game length under which bot will stall after runs, in seconds.
// YAM_MustIdle=true/false Set to true to force YAMB to idle (uses HOTIP module idler)
// Useful if you need to perm your mule.
//--------------------------------------------------------------------
YAM_StartGameDelay = 0 // Use rdn(0,0) or just 0 for no delay.起始游戏的延时设定
YAM_GameCatchup = 1000;//转换场景的延时设定
YAM_MaxGameLength = 660; // Default is 8 min, don't set too low or you may not kill everyone !最大游戏时间
YAM_MinGameLength = 360;//最小游戏时间
//////////////////////////////////////////////////////////////////////
// Module 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.
//--------------------------------------------------------------------
//YAMXXP.push("Cow");//牛关
//YAMXXP.push("Mausoleum");//血乌
//YAMXXP.push("Pit");//泰摩高地的地穴
//YAMXXP.push("Countess");//女伯爵
//YAMXXP.push("Andy");//安达利尔
//YAMXXP.push("MaggotLair");//蛆虫巢穴
//YAMXXP.push("Tunnels");//古代通道
//YAMXXP.push("Summoner");//召唤者
//YAMXXP.push("Duriel");//都瑞尔
YAMXXP.push("Trav");//崔凡克3C
//YAMXXP.push("Temple");//残破神殿等神庙
YAMXXP.push("Meph");//墨菲斯脱
//YAMXXP.push("Izual");//依卒尔
//YAMXXP.push("Hephasto");//海尔法特
//YAMXXP.push("Diablo");//暗黑破坏神
YAMXXP.push("Pindle");//暴燥外皮
//YAMXXP.push("Nihlathak");//尼拉塞克
YAMXXP.push("Eldritch");//矫正者
//YAMXXP.push("Shenk");//督军山克
//YAMXXP.push("ThreshSocket");//脱壳凹槽
//YAMXXP.push("Baal");//巴尔
// Follower, enchanter, bo script
//YAMXXP.push("Follower");
//////////////////////////////////////////////////////////////////////
// Team Botting configuration
//====================================================================
// PublicMode = 0/1/2 0 - Private, 1 - Public, >1 - Supports Leeches
// YAM_TPMsg = value define the boardcast msg to use to signal to the team bots to enter your tp
// WaitForPortal = true/false; Set to true to wait for a YAM_TPMsg before entering tp
// rather than teleporting to the boss itself.
// DC_UseFriendsList = true/false Set to true to use the "/f m" command for your team bots
// to join your game rather than message them individually
// if true, you need to add the accounts of your team bots
// to your bnet friends list!
// YAM_WaitInChat=true/false; false to bot as normal and true to wait in chat for team botting.
//--------------------------------------------------------------------
PublicMode = 0;//0私人游戏;1公众游戏;>1支援吸经验值模式
DC_UseFriendsList=false;//是不使用朋友列表
YAM_WaitInChat=false;//是否等待下列讯息才进入TP
YAM_TPMsg="tp up";//进入TP讯息
WaitForPortal=false;//等待角色是否会跑
//////////////////////////////////////////////////////////////////////
// General configuration
//====================================================================
// XP_BossLOS = true/false Move closer to the boss if no LOS or too far
// XP_DropItems = true/false If XP_SellBackItems is set to true but gold is full, drop items instead (faster).
// XP_SellBackItems = true/false Set to true to sell items your bmitems_XP.ini says not to keep to NPCs.
// YAM_ClearInv = true/false Set to true to clear inventory of junk before stashing and during npc interactions
// 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_OpenChests = true/false Set to true to allow pather to open chests if they are found.
// DCH_MaxDistance = number max distance away we will go for a chest
// YAM_OpenGoldenChest = true/false Set to true to open golden chests
// YAM_UseShrines = true/false Set to true to use shrines if they are found, during Meph or Shenk runs
// DS_MaxDistance = number max distance away we will go for a shrine
//--------------------------------------------------------------------
XP_BossLOS = true;//是否移近头目;如果发生LOS或落点离太远时
XP_DropItems = true;//当下一行设成ture时;当身上钱满了又有东西卖时会直接丢掉要卖的东西
XP_SellBackItems = true;//设成ture时会把bmitems_XP.ini档内设定不留的东西卖掉
YAM_ClearInv = false;//和NPC交易及辩识前会清理辩识卷
YAM_StopFullInv = true;//身上的辩识卷满了没地方放时会自动停止
YAM_StopNoRepair = true;//没钱修理是是否停止
YAM_OpenChests = false;//是否开箱子
DCH_MaxDistance = 20;//离多远的距离会去开子
YAM_OpenGoldenChest = true;//是否开金箱子(注:应该是地穴内会发光的箱子吧)
YAM_UseShrines = false; // leave it on false for now. True will freeze your bot for more then 20 seconds.是否去摸神坛
DS_MaxDistance = 20;//离多远距离的神坛会去摸
//////////////////////////////////////////////////////////////////////
// Snagit configuration
//====================================================================
// DSN_MinGoldStack = number Minimum gold stack amount to pickup. Set to 0 to ignore all gold stacks, 1 to pick all.
// DSN_PickPotions = true/false Set to true to include potions in the pickup checking.
// DSN_SnagType = number Type of pickup: 0 = Best item first and 1 = Closest item first
// DSN_UseTK = true/false Set to true to use Telekinesis to pick certain items.
// DSN_SnagRange = number Radius to check for dropped items. 40 is a good number here.
// DSN_GoldSnagRange = number Radius to check for gold (usually smaller than item range.)
// DSN_SnagDelay = number This is the amount of time to wait before snagit picks up items.
// DSN_PickPotions = true/false; Set to true to include potions in the checking
// DSN_FillBelt = true/false; Set to true to stop picking pots if belt is full
// ------------------------------------------------------------------
DSN_MinGoldStack = 1000;//多少钱会去捡
DSN_PickPotions = true;//是否捡药水
DSN_SnagType = 1;//先捡那一种类的物品
DSN_UseTK = false;//是否使用心灵传动捡东西
DSN_SnagRange = 40;//捡取半径
DSN_GoldSnagRange = 25;//捡钱的半径
DSN_SnagDelay = 200;//捡取延时
DSN_FillBelt=true;//腰带满了是否就不捡药水了
///////////////////////////////////////////////////////////////////
// NIP files configuration
//=================================================================
// Each section has a set of .nip files for a given char. This is useful
// in case you wanted to have a different file depending on chars or to
// have char-specific files.
//
// If you want to add your own .nip files, just copy any line and enter the
// exact .nip file name ( example : DSN_NIPFilePath.push("myown.nip"); ).
//
// To disable a .nip file, just add "//" at the start of the line or delete the line.
//
// Finally, shopping and gambling will use the same files without problems.
// ------------------------------------------------------------------
//在此段调用所使用的物品捡取判断文件
DSN_NIPFilePath.push("uniques.nip");
DSN_NIPFilePath.push("sets.nip");
DSN_NIPFilePath.push("whites.nip");
DSN_NIPFilePath.push("runes.nip");
DSN_NIPFilePath.push("rares.nip");
DSN_NIPFilePath.push("magics.nip");
DSN_NIPFilePath.push("gems.nip");
DSN_NIPFilePath.push("charmsjewels.nip");
DSN_NIPFilePath.push("ringsamulets.nip");
DSN_NIPFilePath.push("potions.nip");
//////////////////////////////////////////////////////////////////////
// Cubing configuration
//====================================================================
// YAM_EnableCubing = true/false Set to true to enable cubing
//--------------------------------------------------------------------
YAM_EnableCubing = false;//是否合成
//////////////////////////////////////////////////////////////////////
// Stashing configuration
//====================================================================
// DT_FreeSpace = number Minimum number of free columns: if less full columns are free, go to stash.
// DT_MinGoldToStash = number Maximum gold amount carried before going to stash.
//--------------------------------------------------------------------
DT_FreeSpace = 3;//剩下多少行时放到箱子去
DT_MinGoldToStash = 100000;//多少钱在身上时去放箱子
//--------------------------------------------------------------------
// 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!
//--------------------------------------------------------------------
DT_Columns[0]=[1,1,1,1,0,0,0,0,0,0];
DT_Columns[1]=[1,1,1,1,0,0,0,0,0,0];
DT_Columns[2]=[1,1,1,1,0,0,0,0,0,0];
DT_Columns[3]=[1,1,1,1,0,0,0,0,0,0];
//1是不留,0是留
//////////////////////////////////////////////////////////////////////
// Belt configuration
//====================================================================
// YAM_UseBeltManager = true/false Leave at true if you want the bot to buy potions.
// YAM_UseABM = true/false Set to true to use the Advanced Belt Manager (slower but gets full belt most of the time)
//--------------------------------------------------------------------
YAM_UseBeltManager = true;//是否使用腰带管理员
YAM_UseABM = true;//是否使用进阶腰带管理员(会较慢一些)
//--------------------------------------------------------------------
// Type of potion used in each belt column
// Available types : "hp" = health | "mp" = mana | "rv" = rejuv. Can use other potion types too (untested!).
// Keep equal types at adjacent columns. First HP then MP and then HP again is a bad choice.
// Keep HP and MP at the beginning of the belt (in case you want to use rejuv and other types).
// Rejuvenations MUST, I REPEAT MUST be at the end of the belt (last x columns).
// Recommendation: Since YAMB supports potion-swapping there is no point in reserving
// a column for rejuvenations anymore.
//--------------------------------------------------------------------
DT_BeltColType[0] = "hp"; // Column 1 in belt
DT_BeltColType[1] = "hp"; // Column 2
DT_BeltColType[2] = "hp"; // Column 3
DT_BeltColType[3] = "mp"; // Column 4
//四格腰带放何种药水
//--------------------------------------------------------------------
// Minimum amount of potions in each column before needing refilling.
// If there's less potions then this number in the column we go and shop.
// Set to 4 to go shopping as soon as there's a potion missing.
// Leave columns set to "rv" at 0, since shops don't carry rejuvs.
//--------------------------------------------------------------------
DT_BeltColMin[0] = 2;
DT_BeltColMin[1] = 2;
DT_BeltColMin[2] = 2;
DT_BeltColMin[3] = 2;
//剩多少药水会去补
//////////////////////////////////////////////////////////////////////
// ShopIt!
//====================================================================
// YAM_ShopIt = true/false Set to true to shop every npc you talk to, false to skip this.
// 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_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_AlwaysAnya = 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.
//--------------------------------------------------------------------
YAM_ShopIt = false;//是否和你谈话的NPC购物
YAM_RandomNPC = false;//是否在开始前随机找NPC谈话
YAM_AlwaysGoToHealer = false;//是否每次开始前找那一章的治疗NPC谈话
YAM_AlwaysRepair = false;//是否在开始前都去修理一下
YAM_AlwaysAkara = false;//是否在开始前都去找阿卡拉(在第一章)
YAM_AlwaysCharsi = false;//是否在开始前都去找恰西(在第一章)
YAM_AlwaysOrmus = false;//是否在开始前都去找奥玛斯(在第三章)
YAM_AlwaysMalah = false;//是否在开始前都去找玛拉(在第五章)
YAM_AlwaysLarzuk = false;//是否在开始前都去找拉苏克(在第五章)
YAM_AlwaysAnya = false;//是否在开始前去找安亚(在第五章)
//////////////////////////////////////////////////////////////////////
// GambleIt!
//====================================================================
// YAM_GambleIt = true/false Set to true to gamble at Anya and Gheed each time you talk to them.
// YAM_GambleStartGold = number Set a amount of gold before starting to gamble.
// YAM_GambleStopGold = number Set a amount of gold before stopping to gamble. It must be smaller than YAM_GambleStartGold
// DT_GambleItem Items that you are gonna gamble. Must be nonempty when you set YAM_GambleIt to true
//--------------------------------------------------------------------
YAM_GambleIt = true;//是否赌博
YAM_GambleStartGold = 1000000;//多少钱开始赌
YAM_GambleStopGold = 200000;//剩多少钱结束
//以下是设定赌什麼东西
//DT_GambleItem.push("rin"); // Rings戒指
//DT_GambleItem.push("amu"); // Amulet护身符
DT_GambleItem.push("ci0"); // Circlet头环
DT_GambleItem.push("ci1"); // Coronet宝冠
//////////////////////////////////////////////////////////////////////
// End of general configuration section
//////////////////////////////////////////////////////////////////////
function XP_InitConfig() {
//////////////////////////////////////////////////////////////////////
// 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
//--------------------------------------------------------------------
DA_UseCTA = false;//是否使用CTA
DA_AutoPrecasts = false; // keep on false. I think there is a bug in the core.是否自动使用防护技能
RedemMana = 50; // set your LW_ManaThresh to this value in your life watch file.在mana剩多少时使用救读
RedemLife = 900;//血剩多少时使用救读
UseVigor=true;//是否使用活力
DA_Refresh = true;//是否更新防护技能
//////////////////////////////////////////////////////////////////////
// Attack configuration
//====================================================================
///////////////////////////////////////////////////////////////////////////
// Skill configuration
//==========================================================================
// XP_PallyAttack=number // Attack skill number
// XP_PallyAura=number // Aura skill number. See /sdk/skills.txt for skill number.
//----------------------------------------------------------------
XP_PallyAttack=112; // Blessed hammer.
XP_PallyAura=113; // Concentration.
//////////////////////////////////////////////////////////////////////
// Mercenary configuration
//====================================================================
// DT_UseMerc = true/false Set to true to watch out for mercenary, revive him when he dies, etc.
// YAM_AbortNoMerc = true/false Set to true to abort the game if the merc is dead and failed to be ressurected.
// XP_EnchantMerc = true/false Set to true to cast Enchant on your merc when doing other precasts.
//--------------------------------------------------------------------
DT_UseMerc = true;//是否使用pet
YAM_AbortNoMerc = true;//pet死了是否中断
XP_EnchantMerc = false;//是否对pet使用强化
//////////////////////////////////////////////////////////////////////
// Other configurations
//====================================================================
// DT_RepairPercent = number (%) Go repair if any of your items fall below this percent of durability.
// DT_SkipHealLife = number (%) If you have more than this percent of your life, you won't go to a Healer. Also the percent of life at which Safe Check will go to heal before a boss.
// DT_SkipHealMana = number (%) If you have more than this percent of your mana, you won't g