当前位置: 首页 > news >正文

conversation_template | conversation_actors | conversation_line_template

目录

conversation_template

conversation_actors

conversation_line_template

实例应用


conversation_template

  • id:某段谈话的唯一编号
  • FirstLineId:谈话开始的第一段话的编号,取值来源 ConversationLine.db2 的 ID 字段
  • TextureKitId:谈话框的背景贴图编号,取值来源 UiTextureKit.db2 的 ID 字段
  • Flags:取值如下
  • NameFlagComments
    None0x00
    MultipleConversationType0x01
    IsTalkingHeadConversation0x02
    AllowWithoutSpawnedActor0x03
  • ScriptName:源码预设的脚本名

conversation_actors

  • ConversationId:某段谈话的唯一编号,取值来源 conversation_template 的 ID 字段
  • ConversationActorId:某段谈话参与者的编号
  • ConversationActorGuid:某段谈话参与者的 guid,取值来源 creature 的 guid 字段
  • Idx:某段谈话参与者的发言顺序编号
  • CreatureId:谈话框架内显示的参与者的 entry,取值来源 creature_template 的 entry 字段
    • 谈话参与者也可以是非世界对象
  • CreatureDisplayInfoId:谈话参与者显示的视觉外观编号,取值来源 CreatureDisplayInfo.db2 DisplayID 字段
  • NoActorObject:取值如下
  • ValueDescription
    0If WorldObject (ConversationActorGuid) is missing conversation is interrupted
    1If WorldObject (ConversationActorGuid) is missing conversation is continuing
  • ActivePlayerObject:取值如下
  • ValueDescription
    0CreatureID or WorldObject is actor for conversation
    1ActivePlayer is actor for conversation

conversation_line_template

  • 某段谈话内其中一个对话的编号,取值来源 ConversationLine.db2 的 ID 字段
  • UiCameraID:谈话显示的UI视角编号,取值来源 UiCamera.db2 的 ID 字段
  • ActorIdx:取值链接 conversation_actors 的 Idx 字段
  • Flags:取值如下
  • ValueNameDescription
    0x0None
    0x1CONVERSATION_LINE_FLAG_NOTIFY_STARTEDClient will send CMSG_CONVERSATION_LINE_STARTED when it runs this line
  • ChatType:谈话类型,取值如下
  • enum ChatType
    {CHAT_TYPE_SAY                = 0,CHAT_TYPE_YELL               = 1,CHAT_TYPE_TEXT_EMOTE         = 2,CHAT_TYPE_BOSS_EMOTE         = 3,CHAT_TYPE_WHISPER            = 4,CHAT_TYPE_BOSS_WHISPER       = 5,CHAT_TYPE_ZONE_YELL          = 6,CHAT_TYPE_END                = 255
    };
    

实例应用

-- Drustvar: Conversation script for Marshal Everit Reade-- Conversation
DELETE FROM `conversation_template` WHERE `Id` = 5667;
INSERT INTO `conversation_template` (`Id`, `FirstLineID`, `TextureKitId`, `VerifiedBuild`) VALUES 
(5667, 12683, 0, 60257);DELETE FROM `conversation_actors` WHERE (`ConversationId`=5667 AND `Idx` IN (1,0));
INSERT INTO `conversation_actors` (`ConversationId`, `ConversationActorId`, `ConversationActorGuid`, `Idx`, `CreatureId`, `CreatureDisplayInfoId`, `NoActorObject`, `ActivePlayerObject`, `VerifiedBuild`) VALUES
(5667, 59853, 7002088, 1, 0, 0, 0, 0, 60257), -- Full: 0x20426CCD607A74800050CB000000B17A Creature/0 R4251/S20683 Map: 1643 (Kul Tiras) Entry: 125394 (Constable Henry Framer) Low: 45434
(5667, 61576, 7002090, 0, 0, 0, 0, 0, 60257); -- Full: 0x20426CCD607A72400050CB000080B17A Creature/0 R4251/S20683 Map: 1643 (Kul Tiras) Entry: 125385 (Marshal Everit Reade) Low: 8434042DELETE FROM `conversation_line_template` WHERE `Id` IN (12686, 12685, 12684, 12683);
INSERT INTO `conversation_line_template` (`Id`, `UiCameraID`, `ActorIdx`, `Flags`, `ChatType`, `VerifiedBuild`) VALUES
(12686, 0, 1, 1, 0, 60257),
(12685, 0, 1, 0, 0, 60257),
(12684, 0, 0, 0, 1, 60257),
(12683, 0, 0, 0, 0, 60257);-- Quest
DELETE FROM `quest_details` WHERE `ID` = 48111;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(48111, 1, 0, 0, 0, 0, 0, 0, 0, 60257); -- Trial by SuperstitionDELETE FROM `creature_queststarter` WHERE (`id`=125380 AND `quest`=48111);
INSERT INTO `creature_queststarter` (`id`, `quest`, `VerifiedBuild`) VALUES
(125380, 48111, 60257); -- Trial by Superstition offered by Lucille Waycrest
DELETE FROM `creature_questender` WHERE (`id`=125380 AND `quest`=48111);
INSERT INTO `creature_questender` (`id`, `quest`, `VerifiedBuild`) VALUES
(125380, 48111, 60257); -- Trial by Superstition ended by Lucille Waycrest-- Marshal Everit Reade SAI
SET @ENTRY := 125385;UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 20, 0, 100, 0, 48109, 0, 0, 0, 0, 143, 5667, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player rewarded quest The Woods Have Eyes (48109) - Rewarded player: Start conversation 5667', ''),
(@ENTRY, 0, 1, 0, 20, 0, 100, 0, 48110, 0, 0, 0, 0, 143, 5667, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player rewarded quest In Case of Ambush (48110) - Rewarded player: Start conversation 5667', '');DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 125385 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES 
(22, 1, 125385, 0, 0, 47, 0, 48110, 64, 0, '', 0, 'Action invoker has In Case of Ambush (48110) in state rewarded'),
(22, 2, 125385, 0, 0, 47, 0, 48109, 64, 0, '', 0, 'Action invoker has The Woods Have Eyes (48109) in state rewarded');

http://www.xdnf.cn/news/8083.html

相关文章:

  • 网安加·百家讲坛 | 刘志诚:AI安全风险与未来展望
  • MCP的推出将给未来的开发带来哪些变革?
  • 解决jupyter notebook修改路径下没有c.NotebookApp.notebook_dir【建议收藏】
  • 第五章 SQLite数据库:4、SQLite 进阶用法:常见的约束、PRAGMA 配置、数据操作
  • 2025年03月中国电子学会青少年软件编程(Python)等级考试试卷(二级)真题
  • 《软件设计师》复习笔记(4.2)——关系代数、函数依赖、范式
  • 下载HBuilder X,使用uniapp编写微信小程序
  • Linux简介
  • 下拉框select标签类型
  • PLOS ONE:VR 游戏扫描揭示了 ADHD 儿童独特的大脑活动
  • 基础数学知识-概率论
  • 机器学习05-CNN
  • 守护进程及gdb调试(新手简略版)
  • 工作总结(十二)——迁移svn单项目到gitlab上,保留历史提交记录
  • 02.Spring_IOC详解
  • Evidential Deep Learning和证据理论教材的区别(主要是概念)
  • test ssl java
  • 【C++指南】哈希驱动的封装:如何让unordered_map/set飞得更快更稳?【上】
  • 数据结构学习笔记 :二叉搜索树与高效查找算法详解
  • React 列表渲染基础示例
  • DFS/BFS专练-搞定图论基础!(从海岛问题过渡至图论基础应用C++/C)
  • 无刷电机槽数相同、转子极数不同的核心区别
  • Nacos安装及数据持久化
  • ESP32之本地HTTP服务器OTA固件升级流程,基于VSCode环境下的ESP-IDF开发(附源码)
  • 【Spring Boot】MyBatis入门:连接Mysql数据库、测试单元、连接的常见错误
  • 汇编语言中的数据
  • 基于C++(MFC)的细胞识别程序
  • 人工智能在后端开发中的革命:从架构到运维
  • 前端:uniapp中uni.pageScrollTo方法与元素的overflow-y:auto之间的关联
  • 极狐GitLab 项目导入导出设置介绍?