cfg_npclist.lua 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. -- 此文件工具自动生成,不要修改
  2. ---@class cfg_npclist_column
  3. ---所处地图id+两位编号
  4. ---@field id number @npcid column=1 A
  5. ---NPC名称
  6. ---@field name string @npc名字 column=2 B
  7. ---NPC布置地图,读取cfg_map_info表id
  8. ---@field mapId number @所在地图 column=3 C
  9. ---
  10. ---@field showInMinimap string @小地图用名称 column=4 D
  11. ---NPC小地图显示图标,填写文件名称;不填则不显示图标
  12. ---@field icon string @NPC图标 column=5 E
  13. ---NPC所在X轴坐标
  14. ---@field x number @X坐标 column=6 F
  15. ---NPC所在Y轴坐标
  16. ---@field y number @Y坐标 column=7 G
  17. ---NPC模型
  18. ---读取cfg_model_npc表id
  19. ---@field appr number @外观代码 column=8 H
  20. ---0:右上
  21. ---1:右
  22. ---2:右下
  23. ---3:下
  24. ---4:左下
  25. ---5:左
  26. ---6:左上
  27. ---7:上
  28. ---{右上=0|右=1|右下=2|下=3|左下=4|左=5|左上=6|上=7}
  29. ---@field direction number @NPC方向#客户端#C column=9 I
  30. ---NPC对话文本
  31. ---<color=#9b39cc>颜色部分</color>
  32. ---\n换行
  33. ---@field content string @对话面板文字 column=10 J
  34. ---跳转功能面板的等级,大于等于设定等级后才可以弹,否则只弹出对话面板
  35. ---填空时,不显示
  36. ---[大于等于设定等级后才可以弹,否则只弹出对话面板;填空时不显示]
  37. ---@field limitLv number @功能面板等级限制 column=11 K
  38. ---对应面板名称
  39. ---格式:路径#参数 无参数可不填
  40. ---如果需要使用的面板无变化,如合成面板UISyntheticPanel,则直接填写面板id即可。
  41. ---如果需要使用的面板会变化,如NPC商店面板UINpcShopPanel,会根据商店编号,显示商品类型,这时就需要填写参数。
  42. ---有需要填写参数的地方,需要与对应面板制作程序沟通,进行填写[格式:面板名#参数 无参数可不填]
  43. ---@field openPanel StringListList @功能面板#客户端#C column=12 L
  44. ---不填默认0[不填默认0]
  45. ---@field namey IntList @npc名字垂直偏移 column=13 M
  46. ---调整模型的大小比例
  47. ---单位:百分比
  48. ---@field size number @模型大小 column=14 N
  49. ---填写cfg_audio表对应的音效id
  50. ---空为不播放
  51. ---点击模型时,播放音效[填写cfg_audio表对应的音效id]
  52. ---@field speak number @互动音效 column=15 O
  53. ---场景模型的音效播放方式
  54. ---1=点击模型触发音效
  55. ---2=进入模型配置的声音范围内开始播放,退出范围后停止播放
  56. ---3=持续播放
  57. ---为空时不播放
  58. ---编辑器读取
  59. ---{不播放=0|点击模型触发音效=1|进入模型配置的声音范围内开始播放,退出范围后停止播放=2|持续播放=3}[不播放=0|点击模型触发音效=1|进入模型配置的声音范围内开始播放,退出范围后停止播放=2|持续播放=3]
  60. ---@field time number @触发时机 column=16 P
  61. ---小于这个距离时显示对话按钮
  62. ---@field talkdistance number @对话按钮距离 column=17 Q
  63. local cfg_npclist =
  64. {
  65. {id=100101, name="酒吧老板娘·莉亚", showInMinimap="酒吧老板娘", icon="img_minimap__npc", x=123, y=135, appr=9, content="", openPanel={{"dev/ui/NPC/Panel/KLNPCShop/KLNPCShopPanel","1"}}},
  66. {id=100102, name="铁匠·汉斯", x=116, y=141, appr=2, direction=2, content="", speak=20018},
  67. {id=100103, name="魔导师·帕希", x=118, y=113, appr=3, direction=2, content=""},
  68. {id=100104, x=131, y=128, direction=2},
  69. {id=100105, name="流浪商人·海罗德", showInMinimap="流浪商人", icon="img_minimap__npc", x=183, y=136, appr=7, content=""},
  70. {id=100106, name="少女·安娜", x=127, y=86, appr=15, content=""},
  71. {id=100107, name="仓库使者·塞弗特", showInMinimap="仓库使者", icon="img_minimap__npc", x=147, y=145, appr=1, content="", openPanel={{"dev/ui/Bag/Panel/KLDepots/KLDepotsPanel","table:x=-415;y=0"},{"dev/ui/Bag/Panel/KLUIBag/KLUIBagPanel"}}},
  72. {id=100108, x=172, y=129},
  73. {id=100109, x=132, y=166, direction=2},
  74. {id=100110, x=132, y=90, direction=2},
  75. {id=100111, showInMinimap="幻影导师", icon="img_minimap__npc", x=97, y=129},
  76. {id=100112, name="仓库使者·塞弗特", showInMinimap="仓库使者", icon="img_minimap__npc", x=145, y=109, appr=1, direction=2, content="", openPanel={{"dev/ui/Bag/Panel/KLDepots/KLDepotsPanel","table:x=-415;y=0"},{"dev/ui/Bag/Panel/KLUIBag/KLUIBagPanel"}}},
  77. {id=100113, name="赤色要塞报名官", showInMinimap="赤色要塞报名官", icon="img_minimap__npc", x=130, y=134, appr=17, direction=3, openPanel={{"dev/outui/Activity/Panel/KLRedFort/KLRedFortPanel"}}},
  78. {id=100114, name="连击试炼教官", showInMinimap="连击试炼教官", icon="img_minimap__npc", x=143, y=127, appr=43, direction=2, content="你好,勇士!等你达到65级时,可以来我这里参加连击试炼,获取丰厚奖励!", limitLv=65, openPanel={{"dev/outui/Activity/Panel/KLActivityCombo/KLActivityComboPanel"}}, time=0, talkdistance=0},
  79. {id=100115, name="宝箱商人", showInMinimap="宝箱商人", icon="img_minimap__npc", x=131, y=121, appr=25, direction=3, content="你好,勇士!可以来我这里购买宝箱,获取丰厚奖励!", openPanel={{"dev/outui/NPC/Panel/KLSpecialNPCShop/KLSpecialNPCShopPanel","1"}}},
  80. {id=100116, name="大秘境接引人", showInMinimap="大秘境接引人", icon="img_minimap__npc", x=141, y=125, appr=43, direction=3, content="你好,勇士!等你达到100级时,可以来我这里参加大天使秘境试炼,获取丰厚奖励!", limitLv=100, openPanel={{"dev/outui/BigSecretCopy/Panel/KLBigSecretCopy/KLBigSecretCopyPanel"}}, time=0, talkdistance=0},
  81. {id=100401, name="精灵·安吉拉", mapId=1004, x=173, y=125, appr=22, content="", openPanel={{"dev/ui/NPC/Panel/KLNPCShop/KLNPCShopPanel","1"}}, speak=20021},
  82. {id=100402, mapId=1004, x=167, y=118},
  83. {id=100403, name="工匠·尤达", mapId=1004, x=195, y=124, appr=21, content=""},
  84. {id=100404, name="合成·玛雅哥布林", mapId=1004, showInMinimap="玛雅哥布林", icon="img_minimap__npc", x=180, y=103, appr=31, content="", limitLv=1, openPanel={{"dev/outui/UISynthesis/Panel/KLUISynthesis/KLUISynthesisPanel"}}, speak=20020},
  85. {id=100405, name="仓库使者·塞弗特", mapId=1004, showInMinimap="仓库使者", icon="img_minimap__npc", x=172, y=96, appr=1, direction=2, content="", openPanel={{"dev/ui/Bag/Panel/KLDepots/KLDepotsPanel","table:x=-415;y=0"},{"dev/ui/Bag/Panel/KLUIBag/KLUIBagPanel"}}},
  86. {id=100406, name="恶魔广场守卫·卡隆", mapId=1004, showInMinimap="卡隆", icon="img_minimap__npc", x=171, y=105, appr=19, direction=2, content="", openPanel={{"dev/outui/Activity/Panel/KLActivityDetail/KLActivityDetailPanel","10001"}}},
  87. {id=100407, mapId=1004, x=165, y=84, direction=3},
  88. {id=100408, mapId=1004, x=202, y=130, direction=3},
  89. {id=105201, name="仓库使者·塞弗特", mapId=1052, x=50, y=229, appr=1, content="", openPanel={{"dev/ui/Bag/Panel/KLDepots/KLDepotsPanel","table:x=-415;y=0"},{"dev/ui/Bag/Panel/KLUIBag/KLUIBagPanel"}}},
  90. {id=105202, name="流浪商人·塞尔维亚", mapId=1052, x=44, y=229, appr=44, content=""},
  91. {id=105203, name="召唤师·摩尔塞", mapId=1052, x=36, y=216, appr=28, direction=3, content=""},
  92. {id=105204, mapId=1052, x=57, y=232, direction=3},
  93. {id=105205, mapId=1052, x=97, y=219},
  94. {id=105206, mapId=1052, x=44, y=167, direction=2},
  95. {id=100301, name="战盟使者·罗斯", mapId=1003, showInMinimap="战盟使者", icon="img_minimap__npc", x=215, y=45, appr=29},
  96. {id=100302, name="仓库使者·塞弗特", mapId=1003, showInMinimap="仓库使者", icon="img_minimap__npc", x=218, y=63, appr=1, content="", openPanel={{"dev/ui/Bag/Panel/KLDepots/KLDepotsPanel","table:x=-415;y=0"},{"dev/ui/Bag/Panel/KLUIBag/KLUIBagPanel"}}},
  97. {id=100303, name="武器商人·苏菲", mapId=1003, x=186, y=47, appr=45, direction=2, content=""},
  98. {id=100304, name="魔导师·露茜", mapId=1003, x=225, y=41, appr=46, direction=2, content=""},
  99. {id=100305, name="老板娘·莉娜", mapId=1003, x=226, y=25, appr=11, direction=2, size=200},
  100. {id=100306, name="血色城堡守卫·大天使的使者", mapId=1003, showInMinimap="大天使的使者", icon="img_minimap__npc", x=209, y=29, appr=51, content="", openPanel={{"dev/outui/Activity/Panel/KLActivityDetail/KLActivityDetailPanel","11001"}}, namey={0,-6,0}},
  101. {id=100307, name="圣导士塞维娜", mapId=1003, x=184, y=32, appr=43, direction=3, time=0, talkdistance=0},
  102. {id=100308, name="警卫队长", mapId=1003, x=198, y=46, appr=57, direction=3, time=0, talkdistance=0},
  103. {id=100309, mapId=1003, x=178, y=43},
  104. {id=100310, mapId=1003, x=219, y=72, direction=2},
  105. {id=100201, mapId=1002, x=105, y=240, direction=2},
  106. {id=100501, mapId=1005, x=211, y=81},
  107. {id=100801, mapId=1008, x=17, y=25, direction=2},
  108. {id=101201, name="受伤的大天使", mapId=1012, showInMinimap="受伤的大天使", icon="img_minimap__npc", x=10, y=9, appr=50, direction=2, openPanel={{"dev/outui/Activity/Panel/KLBloodTip/KLBloodTipPanel","101201"}}},
  109. {id=2100001, name="圣域传送员", mapId=21000, showInMinimap="圣域传送员", icon="img_minimap__npc", x=131, y=128, appr=43, content="", openPanel={{"dev/outui/ChallengeBoss/Panel/KLChallengeBossSanctuaryMap/KLChallengeBossSanctuaryMapPanel"}}},
  110. }
  111. local defaults = {name="幻影导师·凯蒂", mapId=1001, showInMinimap="", icon="", appr=12, direction=4, content="你好,勇士!我能为你提供些帮助", limitLv=0, openPanel={}, namey={0,0,0}, size=100, speak=0, time=1, talkdistance=2}
  112. local mt = {__index = defaults}
  113. for _, v in ipairs(cfg_npclist) do
  114. setmetatable(v, mt)
  115. end
  116. return cfg_npclist