您尚未登录,请登录后浏览更多内容! 登录 | 注册并了解

QQ登录

只需一步,快速开始

 找回密码
 注册并了解

QQ登录

只需一步,快速开始

查看: 16403|回复: 1
打印 上一主题 下一主题
收起左侧

官方DB脚本语法

[复制链接]

QQ

跳转到指定楼层
楼主
发表于 2014-3-15 16:34:21 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 abalis 于 2014-3-15 16:49 编辑

DB脚本语法,我试着翻译了下

每个标签具有以下属性:“questId”“stepId”在写特定的任务脚本文件时使用这些,你可以找到quest/stepId在“Info Dumping”页面。

.常用标签属性
.questId              当前任务ID,1代表任何任务,任务ID你可以在“Info Dumping"找到它的信息
.stepID               当前任务的stepID,你可以在“Info Dumping"找到它的信息

.statusText      设置当前状态文本信息,它位于DB程序窗口的顶部
.ignoreReset     强制标签完成即使脚本需要一个标签重置


接受确认标签
.在确认对话框上点击”确认"
属性
.等待确认对话框的时间,时间单位:毫秒
例如:
  1. <AcceptConfirmation questId="1" pauseTime="1000" />
复制代码
//表示等1000毫秒后在对话框点击"确认"
提前对话标签
.在做任务时提前和玩家/NPC对话
属性
.numberOfTimes---要推进对话步骤的数字
例如:
  1. <AdvanceConversation questId="1" numberOfTimes="20" />
复制代码
探索区域标签
.探索地牢或者静态区域
属性
"until" - Decides when we are done when the tag, acceptable values: [required]
FullyExplored---一直探索直到整个区域探索完毕
ExitFound---一直探索直到发现出口为止
ObjectFound ---一直探索直到发现某个特定物品
"exitNameHash" - the name hash of the exit if until is used with ExitFound, can be found in the info dumping tab in the log after pressing Dump Mapmarkers. [optional]
"boxSize" - The size of the boxes the tsp uses when planning routes, can be visualized in the the mapviewer
"boxTolerance" - Tolerance for how many walkable cells a node needs to be added to the nodelist used by the tsp.
"actorId" - Id of the object to find, can be used in conjunction with the ObjectFound option together with the until attribute.[optional]
例如:
  1. <ExploreArea  questId="72095" stepId="11" boxTolerance="0.30" boxSize="15" until="ExitFound" exitNameHash="-816183389" statusText="Searching for deckard cain!" />
复制代码
强制回城标签.强制回城(不论背包是否满了)
属性
.reason---回城的原因(将显示在DB程序记录上)
  1. <ForceTownRun questId="1" reason="Hungry" />
复制代码
//强制回城,原因“饥饿”
离开游戏标签
.离开游戏
例如:
<LeaveGame reason="Run is done" />
//脚本结束,离开游戏
加载脚本标签
.加载脚本
属性
.profile---脚本名字
.loadRandom---true/false 如果设为true将从一个脚本列表里面随机加载脚本
例如:
  1. Loading a specific profile
  2. <LoadProfile profile="A1_ShatteredCrown.xml" />

  3. Loading a random profile:
  4. <LoadProfile loadRandom="True">
  5.   <Profiles>
  6.     <Profile>Profile1.xml</Profile>
  7.     <Profile>Profile2.xml</Profile>
  8.     <Profile>Profile3.xml</Profile>
  9.     <Profile>Profile4.xml</Profile>
  10.   </Profiles>
  11. </LoadProfile>  
  12. //加载A1_ShatteredCrown.xml这个脚本,从Profile1.xml/Profile2.xml/Profile3.xml/Profile4.xml中随机选择一个脚本运行
复制代码
信息记录标签
.显示信息记录
属性
.message---写入记录的信息,要使用"output"命令
.logLevel---和设置里的logLevel一样,如Diagnostic, Normal等等
例如:
  1. <LogMessage output="I'm a little teacup!" logLevel="Verbose" />
  2. <LogMessage message="short and stout!" />
  3. <LogMessage output="here is my handle!" logLevel="Diagnostic" />
复制代码
移动标签
.移动你的角色到游戏中的某处
属性
.X Y Z---XYZ坐标
.pathPrecision---从你的角色到目的地的距离
.straightLinePathing
.unsafeRandomDistance
.name
例如:
  1. <MoveTo questId="1" x="117.8131" y="103.533" z="0.1000004" />
复制代码



上一篇:20140305的DB更新你们可以登陆吗?
下一篇:【2.0】暗黑破坏神3利润点
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 支持支持 反对反对 订阅订阅

QQ

沙发
 楼主| 发表于 2014-3-15 17:45:13 | 只看该作者
本帖最后由 abalis 于 2014-3-15 17:54 编辑

脚本文件构成
  1. <Profile>
  2. <Name>脚本名字</Name>
  3. <GameParams quest="72738" step="12" act="A1" resumeFromSave="True" isPrivate="False" numGames="-1" />
  4. <KillMonsters>True</KillMonsters>
  5.   <PickupLoot>True</PickupLoot>
  6. <Order>
  7. <If>
  8. <ToggleTargeting>
  9. <LogMessage>
  10. <TakeTownPortal>
  11. <TrinityMoveTo questId="" x="" y="" z="" pathPrecision="" />
  12. <MoveTo questId="" x="" y="" z="" pathPrecision="" />
  13. <TrinityTownPortal questId="" stepId=""/>
  14. </If>
  15. </Order>
  16. </Profile>
复制代码
您需要登录后才可以回帖 登录 | 注册并了解

本版积分规则

       
    闽ICP备18004340号-3

GMT+8, 2024-6-3 10:59 , Processed in 0.514251 second(s), 50 queries .

返回顶部