当前位置: 首页 > 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');

相关文章:

  • Yarn的安装及环境配置
  • 专精特新政策推动,B端UI设计如何赋能中小企业创新发展?
  • GCD算法的学习
  • MySQL内置函数:字符串函数,数值函数,日期函数,流程控制函数
  • 基于VS Code 为核心平台的python语言智能体开发平台搭建
  • Oracle 19c部署之RMP一键安装初始化(五)
  • 微前端框架QianKun
  • 开源AI守护每一杯------奶茶咖啡店视频安全系统的未来之力
  • 20250418 一个正定矩阵的引理
  • 算法-链表
  • Docker Image export and load and tag
  • Xcode16 调整 Provisioning Profiles 目录导致证书查不到
  • React 函数组件和类组件的区别
  • dify本地部署,docker-plugin_daemon-1启动不了,一直报错
  • OpenSPG/KAG V0.7发布,多方面优化提升,事实推理效果领先且构建成本降至11%
  • 科技天眼守望农田:珈和卫星遥感监测赋能智慧农业,护航粮食安全新未来
  • 无刷电机槽数相同、转子极数不同的核心区别
  • Java ThreadLocal内存泄漏分析
  • 健康养生:开启活力生活新篇章
  • 前端如何构建跨平台可复用的业务逻辑层(Web、App、小程序)
  • 波兰斯基最新回忆录追述“二战”童年往事
  • 五大白酒去年净利超1500亿元:贵州茅台862亿领跑,洋河营收净利齐降
  • 韩国代总统、国务总理韩德洙宣布辞职,将择期宣布参选总统
  • 五一假期上海口岸出入境客流总量预计达59.4万人,同比增约30%
  • 媒体:酒店、民宿临时毁约涨价,怎么管?
  • 五一去哪儿| 追着花期去旅行,“赏花经济”绽放文旅新活力